Separated interface configuration.
This commit is contained in:
15
L2J_Mobius_3.0_Helios/dist/game/config/Interface.ini
vendored
Normal file
15
L2J_Mobius_3.0_Helios/dist/game/config/Interface.ini
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
# ---------------------------------------------------------------------------
|
||||
# Interface Settings
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
# Enable L2jMobius GUI when OS supports it.
|
||||
# Provides access to admin commands without the need to be online.
|
||||
# Warning! Do not disable if you use Gameserver.exe
|
||||
# because server will run in the background!
|
||||
# Default: True
|
||||
EnableGUI = True
|
||||
|
||||
# Dark theme.
|
||||
# Use a dark version of the Nimbus theme.
|
||||
# Default: True
|
||||
DarkTheme = True
|
@@ -142,23 +142,6 @@ UrgentPacketThreadCoreSize = 40
|
||||
ThreadsForLoading = False
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Look and feel
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
# Enable L2jMobius GUI when OS supports it.
|
||||
# Provides access to admin commands without the need to be online.
|
||||
# Warning! Do not disable if you use Gameserver.exe
|
||||
# because server will run in the background!
|
||||
# Default: True
|
||||
EnableGUI = True
|
||||
|
||||
# Dark theme.
|
||||
# Use a dark version of the Nimbus theme.
|
||||
# Default: True
|
||||
DarkTheme = True
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Dead Lock Detector (separate thread for detecting deadlocks)
|
||||
# ---------------------------------------------------------------------------
|
||||
|
15
L2J_Mobius_3.0_Helios/dist/login/config/Interface.ini
vendored
Normal file
15
L2J_Mobius_3.0_Helios/dist/login/config/Interface.ini
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
# ---------------------------------------------------------------------------
|
||||
# Interface Settings
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
# Enable L2jMobius GUI when OS supports it.
|
||||
# Provides access to admin commands without the need to be online.
|
||||
# Warning! Do not disable if you use Gameserver.exe
|
||||
# because server will run in the background!
|
||||
# Default: True
|
||||
EnableGUI = True
|
||||
|
||||
# Dark theme.
|
||||
# Use a dark version of the Nimbus theme.
|
||||
# Default: True
|
||||
DarkTheme = True
|
@@ -54,23 +54,6 @@ Password =
|
||||
MaximumDbConnections = 5
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Look and feel
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
# Enable L2jMobius GUI when OS supports it.
|
||||
# Provides access to admin commands without the need to be online.
|
||||
# Warning! Do not disable if you use Gameserver.exe
|
||||
# because server will run in the background!
|
||||
# Default: True
|
||||
EnableGUI = True
|
||||
|
||||
# Dark theme.
|
||||
# Use a dark version of the Nimbus theme.
|
||||
# Default: True
|
||||
DarkTheme = True
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Automatic Database Backup Settings
|
||||
# ---------------------------------------------------------------------------
|
||||
|
@@ -86,6 +86,7 @@ public class Config
|
||||
// Config File Definitions
|
||||
// --------------------------------------------------
|
||||
public static final String GEOENGINE_CONFIG_FILE = "./config/GeoEngine.ini";
|
||||
public static final String INTERFACE_CONFIG_FILE = "./config/Interface.ini";
|
||||
public static final String OLYMPIAD_CONFIG_FILE = "./config/Olympiad.ini";
|
||||
public static final String SIEGE_CONFIG_FILE = "./config/Siege.ini";
|
||||
public static final String FORTSIEGE_CONFIG_FILE = "./config/FortSiege.ini";
|
||||
@@ -97,11 +98,11 @@ public class Config
|
||||
private static final String GENERAL_CONFIG_FILE = "./config/General.ini";
|
||||
private static final String GRACIASEEDS_CONFIG_FILE = "./config/GraciaSeeds.ini";
|
||||
private static final String GRANDBOSS_CONFIG_FILE = "./config/GrandBoss.ini";
|
||||
public static final String LOGIN_CONFIG_FILE = "./config/LoginServer.ini";
|
||||
private static final String LOGIN_CONFIG_FILE = "./config/LoginServer.ini";
|
||||
private static final String NPC_CONFIG_FILE = "./config/NPC.ini";
|
||||
private static final String PVP_CONFIG_FILE = "./config/PVP.ini";
|
||||
private static final String RATES_CONFIG_FILE = "./config/Rates.ini";
|
||||
public static final String SERVER_CONFIG_FILE = "./config/Server.ini";
|
||||
private static final String SERVER_CONFIG_FILE = "./config/Server.ini";
|
||||
private static final String TELNET_CONFIG_FILE = "./config/Telnet.ini";
|
||||
private static final String TRAINING_CAMP_CONFIG_FILE = "./config/TrainingCamp.ini";
|
||||
private static final String CHAT_FILTER_FILE = "./config/chatfilter.txt";
|
||||
@@ -451,8 +452,6 @@ public class Config
|
||||
public static int INSTANT_THREAD_POOL_COUNT;
|
||||
public static int IO_PACKET_THREAD_CORE_SIZE;
|
||||
public static boolean THREADS_FOR_LOADING;
|
||||
public static boolean ENABLE_GUI;
|
||||
public static boolean DARK_THEME;
|
||||
public static boolean DEADLOCK_DETECTOR;
|
||||
public static int DEADLOCK_CHECK_INTERVAL;
|
||||
public static boolean RESTART_ON_DEADLOCK;
|
||||
@@ -1350,6 +1349,9 @@ public class Config
|
||||
public static int L2JBRASIL_DUALBOXES_ALLOWED;
|
||||
public static boolean ALLOW_L2JBRASIL_GAME_SERVER_REPORT;
|
||||
|
||||
public static boolean ENABLE_GUI;
|
||||
public static boolean DARK_THEME;
|
||||
|
||||
/**
|
||||
* This class initializes all global variables for configuration.<br>
|
||||
* If the key doesn't appear in properties file, a default value is set by this class. {@link #SERVER_CONFIG_FILE} (properties file) for configuring your server.
|
||||
|
@@ -186,11 +186,11 @@ public class GameServer
|
||||
final long serverLoadStart = Chronos.currentTimeMillis();
|
||||
|
||||
// GUI
|
||||
final PropertiesParser serverSettings = new PropertiesParser(Config.SERVER_CONFIG_FILE);
|
||||
Config.ENABLE_GUI = serverSettings.getBoolean("EnableGUI", true);
|
||||
final PropertiesParser interfaceSettings = new PropertiesParser(Config.INTERFACE_CONFIG_FILE);
|
||||
Config.ENABLE_GUI = interfaceSettings.getBoolean("EnableGUI", true);
|
||||
if (Config.ENABLE_GUI && !GraphicsEnvironment.isHeadless())
|
||||
{
|
||||
Config.DARK_THEME = serverSettings.getBoolean("DarkTheme", true);
|
||||
Config.DARK_THEME = interfaceSettings.getBoolean("DarkTheme", true);
|
||||
System.out.println("GameServer: Running in GUI mode.");
|
||||
new Gui();
|
||||
}
|
||||
|
@@ -64,11 +64,11 @@ public class LoginServer
|
||||
private LoginServer() throws Exception
|
||||
{
|
||||
// GUI
|
||||
final PropertiesParser serverSettings = new PropertiesParser(Config.LOGIN_CONFIG_FILE);
|
||||
Config.ENABLE_GUI = serverSettings.getBoolean("EnableGUI", true);
|
||||
final PropertiesParser interfaceSettings = new PropertiesParser(Config.INTERFACE_CONFIG_FILE);
|
||||
Config.ENABLE_GUI = interfaceSettings.getBoolean("EnableGUI", true);
|
||||
if (Config.ENABLE_GUI && !GraphicsEnvironment.isHeadless())
|
||||
{
|
||||
Config.DARK_THEME = serverSettings.getBoolean("DarkTheme", true);
|
||||
Config.DARK_THEME = interfaceSettings.getBoolean("DarkTheme", true);
|
||||
System.out.println("LoginServer: Running in GUI mode.");
|
||||
new Gui();
|
||||
}
|
||||
|
Reference in New Issue
Block a user