Cleanup / private vars

This commit is contained in:
PabstMirror 2015-04-16 19:46:42 -05:00
parent 53af014eab
commit 1729c781bd
9 changed files with 451 additions and 442 deletions

View File

@ -21,7 +21,7 @@ class ACE_Settings {
isClientSettable = 1;
displayName = "$STR_ACE_Inventory_SettingName";
description = "$STR_ACE_Inventory_SettingDescription";
values[] = {"Normal (Default Size)", "Medium", "Bigger"};
values[] = {"$str_medium", "$str_large", "$str_very_large"};
};
};

View File

@ -16,6 +16,8 @@
#include "script_component.hpp"
private ["_compiledConfig", "_name", "_typeName", "_isClientSetable", "_localizedName", "_localizedDescription", "_possibleValues", "_defaultValue", "_value", "_compiledConfigEntry"];
_compiledConfig = "
";
{
@ -52,6 +54,10 @@ class %1 {
typeName = %3;
force = 1;
};", _name, _value, format['"%1"', _typeName]];
//clipboard seems to be getting cuttoff, so do a backup dump to rpt:
diag_log text _compiledConfigEntry;
_compiledConfig = _compiledConfig + _compiledConfigEntry;
};
} forEach EGVAR(common,settings);

View File

@ -16,28 +16,28 @@
#include "script_component.hpp"
private ["_settingIndex", "_inputText"];
private ["_settingIndex", "_inputText", "_setting", "_settingName", "_convertedValue"];
_settingIndex = lbCurSel 200; //Index of left list
_inputText = ctrlText 414; //Index of right drop down
switch (GVAR(optionMenu_openTab)) do {
case (MENU_TAB_SERVER_VALUES): {
if ((_settingIndex >= 0) && (_settingIndex < (count GVAR(serverSideValues)))) then {
try {
_setting = (GVAR(serverSideValues) select _settingIndex);
_settingName = _setting select 0;
if ((_settingIndex >= 0) && (_settingIndex < (count GVAR(serverSideValues)))) then {
try {
_setting = (GVAR(serverSideValues) select _settingIndex);
_settingName = _setting select 0;
_convertedValue = switch (toUpper (_setting select 1)) do {
_convertedValue = switch (toUpper (_setting select 1)) do {
case "STRING": {format ['"%1"', _inputText]};
case "ARRAY": {format [call compile "[%1]", _inputText]};
case "SCALAR": {parseNumber _inputText;};
default {throw "Error"};
default {throw "Error"};
};
[MENU_TAB_SERVER_VALUES, _settingName, _convertedValue] call FUNC(updateSetting);
} catch {
};
[MENU_TAB_SERVER_VALUES, _settingName, _convertedValue] call FUNC(updateSetting);
} catch {
};
[false] call FUNC(serverSettingsMenuUpdateList);
};
[false] call FUNC(serverSettingsMenuUpdateList);
};
};

View File

@ -16,6 +16,8 @@
#include "script_component.hpp"
private ["_name", "_typeName", "_isClientSetable", "_localizedName", "_localizedDescription", "_possibleValues", "_defaultValue", "_setting", "_menu", "_settingsMenu"];
if (GVAR(serverConfigGeneration) == 0 || isMultiplayer) exitwith {closeDialog 145246;};
// Filter only user setable setting
@ -54,7 +56,6 @@ GVAR(serverSideValues) = [];
//Delay a frame
[{ [MENU_TAB_SERVER_OPTIONS] call FUNC(onServerListBoxShowSelectionChanged) }, []] call EFUNC(common,execNextFrame);
private "_menu";
disableSerialization;
_menu = uiNamespace getvariable "ACE_serverSettingsMenu";
(_menu displayCtrl 1003) ctrlEnable false;

View File

@ -16,9 +16,12 @@
#include "script_component.hpp"
private ["_setting", "_menu"];
// Filter only user setable setting
GVAR(clientSideOptions) = [];
GVAR(clientSideColors) = [];
{
// If the setting is user setable and not forced
if ((_x select 2) && !(_x select 6)) then {
@ -40,7 +43,6 @@ GVAR(clientSideColors) = [];
//Delay a frame
[{ [MENU_TAB_OPTIONS] call FUNC(onListBoxShowSelectionChanged) }, []] call EFUNC(common,execNextFrame);
private "_menu";
disableSerialization;
_menu = uiNamespace getvariable "ACE_settingsMenu";
(_menu displayCtrl 1002) ctrlEnable false;

View File

@ -16,7 +16,7 @@
#include "script_component.hpp"
private ["_settingsMenu", "_ctrlList", "_collection", "_settingIndex", "_setting", "_entryName", "_localizedName", "_localizedDescription", "_possibleValues", "_settingsValue", "_currentColor"];
private ["_settingsMenu", "_ctrlList", "_collection", "_settingIndex", "_setting", "_entryName", "_localizedName", "_localizedDescription", "_possibleValues", "_settingsValue", "_currentColor", "_expectedType"];
disableSerialization;
_settingsMenu = uiNamespace getVariable 'ACE_serverSettingsMenu';

View File

@ -16,7 +16,7 @@
#include "script_component.hpp"
private ["_settingsMenu", "_ctrlList", "_settingsText", "_color", "_settingsColor", "_updateKeyView"];
private ["_settingsMenu", "_ctrlList", "_settingsText", "_color", "_settingsColor", "_updateKeyView", "_settingsValue"];
DEFAULT_PARAM(0,_updateKeyView,true);
disableSerialization;

View File

@ -16,7 +16,7 @@
#include "script_component.hpp"
private ["_settingsMenu", "_ctrlList", "_settingsText", "_color", "_settingsColor", "_updateKeyView"];
private ["_settingsMenu", "_ctrlList", "_settingsText", "_color", "_settingsColor", "_updateKeyView", "_settingsValue"];
DEFAULT_PARAM(0,_updateKeyView,true);
disableSerialization;

View File

@ -1,8 +1,8 @@
class ACE_settingsMenu {
idd = 145246;
movingEnable = false;
onLoad = QUOTE(uiNamespace setVariable [ARR_2('ACE_settingsMenu', _this select 0)]; [] call FUNC(onSettingsMenuOpen););
onUnload = QUOTE(uiNamespace setVariable [ARR_2('ACE_settingsMenu', nil)]; saveProfileNamespace;);
idd = 145246;
movingEnable = false;
onLoad = QUOTE(uiNamespace setVariable [ARR_2('ACE_settingsMenu', _this select 0)]; [] call FUNC(onSettingsMenuOpen););
onUnload = QUOTE(uiNamespace setVariable [ARR_2('ACE_settingsMenu', nil)]; saveProfileNamespace;);
#define SIZEX (((safezoneW / safezoneH) min 1.2))
#define SIZEY (SIZEX / 1.2)
@ -20,433 +20,433 @@ class ACE_settingsMenu {
#define Y_PART(num) QUOTE(linearConversion [ARR_5(0, 2, (missionNamespace getVariable [ARR_2(QUOTE(QGVAR(optionMenuDisplaySize)), 0)]), Y_ORIGINAL(num), Y_MAKEITBIGGA(num))])
#define W_PART(num) QUOTE(linearConversion [ARR_5(0, 2, (missionNamespace getVariable [ARR_2(QUOTE(QGVAR(optionMenuDisplaySize)), 0)]), W_ORIGINAL(num), W_MAKEITBIGGA(num))])
#define H_PART(num) QUOTE(linearConversion [ARR_5(0, 2, (missionNamespace getVariable [ARR_2(QUOTE(QGVAR(optionMenuDisplaySize)), 0)]), H_ORIGINAL(num), H_MAKEITBIGGA(num))])
class controlsBackground {
class HeaderBackground: ACE_gui_backgroundBase {
idc = -1;
type = CT_STATIC;
x = X_PART(1);
y = Y_PART(1);
w = W_PART(38);
h = H_PART(1);
style = ST_LEFT + ST_SHADOW;
font = "PuristaMedium";
SizeEx = H_PART(1);
colorText[] = {0.95, 0.95, 0.95, 0.75};
colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.69])","(profilenamespace getvariable ['GUI_BCG_RGB_G',0.75])","(profilenamespace getvariable ['GUI_BCG_RGB_B',0.5])", "(profilenamespace getvariable ['GUI_BCG_RGB_A',0.9])"};
text = "";
};
class CenterBackground: HeaderBackground {
y = Y_PART(2.1);
h = H_PART(2.5);
text = "";
colorText[] = {0, 0, 0, "(profilenamespace getvariable ['GUI_BCG_RGB_A',0.9])"};
colorBackground[] = {0,0,0,"(profilenamespace getvariable ['GUI_BCG_RGB_A',0.9])"};
};
class LeftBackground: CenterBackground {
y = Y_PART(4.8);
h = H_PART(17.4);
w = W_PART(25);
};
class RightBackground: LeftBackground {
x = X_PART(26.1);
w = W_PART(12.9);
};
class RightBackgroundHeader: RightBackground {
h = H_PART(1.4);
colorBackground[] = {0,0,0,1};
};
};
class controls {
class HeaderName {
idc = 1;
type = CT_STATIC;
x = X_PART(1);
y = Y_PART(1);
w = W_PART(38);
h = H_PART(1);
style = ST_LEFT + ST_SHADOW;
font = "PuristaMedium";
SizeEx = H_PART(1);
colorText[] = {0.95, 0.95, 0.95, 0.75};
colorBackground[] = {0,0,0,0};
text = "$STR_ACE_OptionsMenu_OpenConfigMenu";
class controlsBackground {
class HeaderBackground: ACE_gui_backgroundBase {
idc = -1;
type = CT_STATIC;
x = X_PART(1);
y = Y_PART(1);
w = W_PART(38);
h = H_PART(1);
style = ST_LEFT + ST_SHADOW;
font = "PuristaMedium";
SizeEx = H_PART(1);
colorText[] = {0.95, 0.95, 0.95, 0.75};
colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.69])","(profilenamespace getvariable ['GUI_BCG_RGB_G',0.75])","(profilenamespace getvariable ['GUI_BCG_RGB_B',0.5])", "(profilenamespace getvariable ['GUI_BCG_RGB_A',0.9])"};
text = "";
};
class CenterBackground: HeaderBackground {
y = Y_PART(2.1);
h = H_PART(2.5);
text = "";
colorText[] = {0, 0, 0, "(profilenamespace getvariable ['GUI_BCG_RGB_A',0.9])"};
colorBackground[] = {0,0,0,"(profilenamespace getvariable ['GUI_BCG_RGB_A',0.9])"};
};
class LeftBackground: CenterBackground {
y = Y_PART(4.8);
h = H_PART(17.4);
w = W_PART(25);
};
class RightBackground: LeftBackground {
x = X_PART(26.1);
w = W_PART(12.9);
};
class RightBackgroundHeader: RightBackground {
h = H_PART(1.4);
colorBackground[] = {0,0,0,1};
};
};
class labelSubHeader: ACE_gui_staticBase {
idc = 13;
x = X_PART(2);
y = Y_PART(3.4);
w = W_PART(30);
h = H_PART(1);
text = "";
class controls {
class HeaderName {
idc = 1;
type = CT_STATIC;
x = X_PART(1);
y = Y_PART(1);
w = W_PART(38);
h = H_PART(1);
style = ST_LEFT + ST_SHADOW;
font = "PuristaMedium";
SizeEx = H_PART(1);
colorText[] = {0.95, 0.95, 0.95, 0.75};
colorBackground[] = {0,0,0,0};
text = "$STR_ACE_OptionsMenu_OpenConfigMenu";
};
class labelSubHeader: ACE_gui_staticBase {
idc = 13;
x = X_PART(2);
y = Y_PART(3.4);
w = W_PART(30);
h = H_PART(1);
text = "";
};
class selectionAction_1: ACE_gui_buttonBase {
idc = 1000;
text = "$STR_ACE_OptionsMenu_TabOptions";
x = X_PART(1);
y = Y_PART(2.1);
w = W_PART(9.5);
h = H_PART(1);
animTextureNormal = "#(argb,8,8,3)color(0,0,0,0.9)";
animTextureDisabled = "#(argb,8,8,3)color(0,0,0,0.8)";
animTextureOver = "#(argb,8,8,3)color(1,1,1,1)";
animTextureFocused = "#(argb,8,8,3)color(1,1,1,1)";
animTexturePressed = "#(argb,8,8,3)color(1,1,1,1)";
animTextureDefault = "#(argb,8,8,3)color(1,1,1,1)";
color[] = {1, 1, 1, 1};
color2[] = {0,0,0, 1};
colorBackgroundFocused[] = {1,1,1,1};
colorBackground[] = {1,1,1,1};
colorbackground2[] = {1,1,1,1};
colorDisabled[] = {1,1,1,1};
colorFocused[] = {0,0,0,1};
periodFocus = 1;
periodOver = 1;
action = QUOTE([MENU_TAB_OPTIONS] call FUNC(onListBoxShowSelectionChanged););
SizeEx = H_PART(1);
Size = H_PART(1);
};
class selectionAction_2: selectionAction_1 {
idc = 1001;
text = "$STR_ACE_OptionsMenu_TabColors";
x = X_PART(10.5);
action = QUOTE([MENU_TAB_COLORS] call FUNC(onListBoxShowSelectionChanged););
};
class selectionAction_3: selectionAction_1 {
idc = 1002;
text = "";
x = X_PART(20);
action = "";
};
class selectionAction_4: selectionAction_1 {
idc = 1003;
text = "";
x = X_PART(29.5);
action = "";
};
class listBoxSettingsList: ACE_gui_listNBox {
idc = 200;
x = X_PART(2);
y = Y_PART(5.5);
w = W_PART(23);
h = H_PART(15);
SizeEx = H_ORIGINAL(0.8);
colorBackground[] = {0, 0, 0, 0.9};
colorSelectBackground[] = {0, 0, 0, 0.9};
columns[] = {0.0, 0.6};
onLBSelChanged = QUOTE(_this call FUNC(settingsMenuUpdateKeyView));
};
class labelTitle: ACE_gui_staticBase {
idc = 250;
x = X_PART(27.1);
y = Y_PART(5.1);
w = W_PART(11);
h = H_PART(1);
text = "";
SizeEx = H_PART(1);
};
class labelKey: ACE_gui_staticBase { //Variable Name
idc = 300;
x = X_PART(27.1);
y = Y_PART(6.2);
w = W_PART(11);
h = H_PART(1);
text = "";
SizeEx = H_PART(0.65);
};
class Label2: labelKey {
idc = 301;
y = Y_PART(7.3);
text = "$STR_ACE_OptionsMenu_Setting";
SizeEx = H_PART(1);
};
class comboBox1: ACE_gui_comboBoxBase {
idc = 400;
x = X_PART(31.1);
y = Y_PART(7.3);
w = W_PART(7);
h = H_PART(1);
onLBSelChanged = QUOTE( call FUNC(onListBoxSettingsChanged));
SizeEx = H_PART(0.9);
};
class sliderBar1: RscXSliderH {
idc = 410;
x = X_PART(27.1);
y = Y_PART(7.3);
w = W_PART(11);
h = H_PART(0.75);
onSliderPosChanged = QUOTE(_this call FUNC(onSliderPosChanged));
color[] = {1,0,0,0.4};
colorActive[] = {1,0,0,1};
};
class sliderBar2: sliderBar1 {
idc = 411;
y = Y_PART(8.2);
color[] = {0,1,0,0.4};
colorActive[] = {0,1,0,1};
};
class sliderBar3: sliderBar1 {
idc = 412;
y = Y_PART(9.1);
color[] = {0,0,1,0.4};
colorActive[] = {0,0,1,1};
};
class sliderBar4: sliderBar1 {
idc = 413;
y = Y_PART(10);
color[] = {1,1,1,0.4};
colorActive[] = {1,1,1,1};
};
class labelDesc: ACE_gui_staticBase {
idc = 251;
x = X_PART(27.1);
y = Y_PART(11);
w = W_PART(11);
h = H_PART(11);
text = "";
style = ST_LEFT + ST_MULTI;
lineSpacing = 1;
SizeEx = H_PART(0.8);
};
class actionClose: ACE_gui_buttonBase {
idc = 10;
text = "$STR_DISP_CLOSE";
x = X_PART(1);
y = Y_PART(22.3);
w = W_PART(7.5);
h = H_PART(1);
style = ST_LEFT;
animTextureNormal = "#(argb,8,8,3)color(0,0,0,0.8)";
animTextureDisabled = "#(argb,8,8,3)color(0,0,0,0.5)";
animTextureOver = "#(argb,8,8,3)color(1,1,1,1)";
animTextureFocused = "#(argb,8,8,3)color(1,1,1,1)";
animTexturePressed = "#(argb,8,8,3)color(1,1,1,1)";
animTextureDefault = "#(argb,8,8,3)color(1,1,1,1)";
color[] = {1, 1, 1, 1};
color2[] = {0,0,0, 1};
colorBackgroundFocused[] = {1,1,1,1};
colorBackground[] = {1,1,1,1};
colorbackground2[] = {1,1,1,1};
colorDisabled[] = {0.5,0.5,0.5,0.8};
colorFocused[] = {0,0,0,1};
periodFocus = 1;
periodOver = 1;
action = "closedialog 0;";
SizeEx = H_PART(1);
Size = H_PART(1);
};
class action_reset: actionClose {
idc = 1100;
text = "$STR_ACE_OptionsMenu_ResetAll";
x = X_PART(9.5);
action = QUOTE([] call FUNC(resetSettings));
};
class action_exportServerConfig: actionClose {
idc = 1102;
text = "$STR_ACE_OptionsMenu_OpenExport";
x = X_PART(18);
action = QUOTE(if (GVAR(serverConfigGeneration) > 0) then {createDialog 'ACE_serverSettingsMenu'; });
};
};
class selectionAction_1: ACE_gui_buttonBase {
idc = 1000;
text = "$STR_ACE_OptionsMenu_TabOptions";
x = X_PART(1);
y = Y_PART(2.1);
w = W_PART(9.5);
h = H_PART(1);
animTextureNormal = "#(argb,8,8,3)color(0,0,0,0.9)";
animTextureDisabled = "#(argb,8,8,3)color(0,0,0,0.8)";
animTextureOver = "#(argb,8,8,3)color(1,1,1,1)";
animTextureFocused = "#(argb,8,8,3)color(1,1,1,1)";
animTexturePressed = "#(argb,8,8,3)color(1,1,1,1)";
animTextureDefault = "#(argb,8,8,3)color(1,1,1,1)";
color[] = {1, 1, 1, 1};
color2[] = {0,0,0, 1};
colorBackgroundFocused[] = {1,1,1,1};
colorBackground[] = {1,1,1,1};
colorbackground2[] = {1,1,1,1};
colorDisabled[] = {1,1,1,1};
colorFocused[] = {0,0,0,1};
periodFocus = 1;
periodOver = 1;
action = QUOTE([MENU_TAB_OPTIONS] call FUNC(onListBoxShowSelectionChanged););
SizeEx = H_PART(1);
Size = H_PART(1);
};
class selectionAction_2: selectionAction_1 {
idc = 1001;
text = "$STR_ACE_OptionsMenu_TabColors";
x = X_PART(10.5);
action = QUOTE([MENU_TAB_COLORS] call FUNC(onListBoxShowSelectionChanged););
};
class selectionAction_3: selectionAction_1 {
idc = 1002;
text = "";
x = X_PART(20);
action = "";
};
class selectionAction_4: selectionAction_1 {
idc = 1003;
text = "";
x = X_PART(29.5);
action = "";
};
class listBoxSettingsList: ACE_gui_listNBox {
idc = 200;
x = X_PART(2);
y = Y_PART(5.5);
w = W_PART(23);
h = H_PART(15);
SizeEx = H_ORIGINAL(0.8);
colorBackground[] = {0, 0, 0, 0.9};
colorSelectBackground[] = {0, 0, 0, 0.9};
columns[] = {0.0, 0.6};
onLBSelChanged = QUOTE(_this call FUNC(settingsMenuUpdateKeyView));
};
class labelTitle: ACE_gui_staticBase {
idc = 250;
x = X_PART(27.1);
y = Y_PART(5.1);
w = W_PART(11);
h = H_PART(1);
text = "";
SizeEx = H_PART(1);
};
class labelKey: ACE_gui_staticBase { //Variable Name
idc = 300;
x = X_PART(27.1);
y = Y_PART(6.2);
w = W_PART(11);
h = H_PART(1);
text = "";
SizeEx = H_PART(0.65);
};
class Label2: labelKey {
idc = 301;
y = Y_PART(7.3);
text = "$STR_ACE_OptionsMenu_Setting";
SizeEx = H_PART(1);
};
class comboBox1: ACE_gui_comboBoxBase {
idc = 400;
x = X_PART(31.1);
y = Y_PART(7.3);
w = W_PART(7);
h = H_PART(1);
onLBSelChanged = QUOTE( call FUNC(onListBoxSettingsChanged));
SizeEx = H_PART(0.9);
};
class sliderBar1: RscXSliderH {
idc = 410;
x = X_PART(27.1);
y = Y_PART(7.3);
w = W_PART(11);
h = H_PART(0.75);
onSliderPosChanged = QUOTE(_this call FUNC(onSliderPosChanged));
color[] = {1,0,0,0.4};
colorActive[] = {1,0,0,1};
};
class sliderBar2: sliderBar1 {
idc = 411;
y = Y_PART(8.2);
color[] = {0,1,0,0.4};
colorActive[] = {0,1,0,1};
};
class sliderBar3: sliderBar1 {
idc = 412;
y = Y_PART(9.1);
color[] = {0,0,1,0.4};
colorActive[] = {0,0,1,1};
};
class sliderBar4: sliderBar1 {
idc = 413;
y = Y_PART(10);
color[] = {1,1,1,0.4};
colorActive[] = {1,1,1,1};
};
class labelDesc: ACE_gui_staticBase {
idc = 251;
x = X_PART(27.1);
y = Y_PART(11);
w = W_PART(11);
h = H_PART(11);
text = "";
style = ST_LEFT + ST_MULTI;
lineSpacing = 1;
SizeEx = H_PART(0.8);
};
class actionClose: ACE_gui_buttonBase {
idc = 10;
text = "$STR_DISP_CLOSE";
x = X_PART(1);
y = Y_PART(22.3);
w = W_PART(7.5);
h = H_PART(1);
style = ST_LEFT;
animTextureNormal = "#(argb,8,8,3)color(0,0,0,0.8)";
animTextureDisabled = "#(argb,8,8,3)color(0,0,0,0.5)";
animTextureOver = "#(argb,8,8,3)color(1,1,1,1)";
animTextureFocused = "#(argb,8,8,3)color(1,1,1,1)";
animTexturePressed = "#(argb,8,8,3)color(1,1,1,1)";
animTextureDefault = "#(argb,8,8,3)color(1,1,1,1)";
color[] = {1, 1, 1, 1};
color2[] = {0,0,0, 1};
colorBackgroundFocused[] = {1,1,1,1};
colorBackground[] = {1,1,1,1};
colorbackground2[] = {1,1,1,1};
colorDisabled[] = {0.5,0.5,0.5,0.8};
colorFocused[] = {0,0,0,1};
periodFocus = 1;
periodOver = 1;
action = "closedialog 0;";
SizeEx = H_PART(1);
Size = H_PART(1);
};
class action_reset: actionClose {
idc = 1100;
text = "$STR_ACE_OptionsMenu_ResetAll";
x = X_PART(9.5);
action = QUOTE([] call FUNC(resetSettings));
};
class action_exportServerConfig: actionClose {
idc = 1102;
text = "$STR_ACE_OptionsMenu_OpenExport";
x = X_PART(18);
action = QUOTE(if (GVAR(serverConfigGeneration) > 0) then {createDialog 'ACE_serverSettingsMenu'; });
};
};
};
class ACE_serverSettingsMenu: ACE_settingsMenu {
onLoad = QUOTE(uiNamespace setVariable [ARR_2('ACE_serverSettingsMenu', _this select 0)]; [] call FUNC(onServerSettingsMenuOpen););
onUnload = QUOTE(uiNamespace setVariable [ARR_2('ACE_serverSettingsMenu', nil)];);
class controls: controls {
class HeaderName {
idc = 1;
type = CT_STATIC;
x = X_PART(1);
y = Y_PART(1);
w = W_PART(38);
h = H_PART(1);
style = ST_LEFT + ST_SHADOW;
font = "PuristaMedium";
SizeEx = H_PART(1);
colorText[] = {0.95, 0.95, 0.95, 0.75};
colorBackground[] = {0,0,0,0};
text = "$STR_ACE_OptionsMenu_OpenConfigMenu";
class controls: controls {
class HeaderName {
idc = 1;
type = CT_STATIC;
x = X_PART(1);
y = Y_PART(1);
w = W_PART(38);
h = H_PART(1);
style = ST_LEFT + ST_SHADOW;
font = "PuristaMedium";
SizeEx = H_PART(1);
colorText[] = {0.95, 0.95, 0.95, 0.75};
colorBackground[] = {0,0,0,0};
text = "$STR_ACE_OptionsMenu_OpenConfigMenu";
};
class labelSubHeader: ACE_gui_staticBase {
idc = 13;
x = X_PART(2);
y = Y_PART(3.4);
w = W_PART(30);
h = H_PART(1);
text = "";
};
class selectionAction_1: ACE_gui_buttonBase {
idc = 1000;
text = "$STR_ACE_OptionsMenu_TabOptions";
x = X_PART(1);
y = Y_PART(2.1);
w = W_PART(9.5);
h = H_PART(1);
animTextureNormal = "#(argb,8,8,3)color(0,0,0,0.9)";
animTextureDisabled = "#(argb,8,8,3)color(0,0,0,0.8)";
animTextureOver = "#(argb,8,8,3)color(1,1,1,1)";
animTextureFocused = "#(argb,8,8,3)color(1,1,1,1)";
animTexturePressed = "#(argb,8,8,3)color(1,1,1,1)";
animTextureDefault = "#(argb,8,8,3)color(1,1,1,1)";
color[] = {1, 1, 1, 1};
color2[] = {0,0,0, 1};
colorBackgroundFocused[] = {1,1,1,1};
colorBackground[] = {1,1,1,1};
colorbackground2[] = {1,1,1,1};
colorDisabled[] = {1,1,1,1};
colorFocused[] = {0,0,0,1};
periodFocus = 1;
periodOver = 1;
action = QUOTE([MENU_TAB_SERVER_OPTIONS] call FUNC(onServerListBoxShowSelectionChanged););
};
class selectionAction_2: selectionAction_1 {
idc = 1001;
text = "$STR_ACE_OptionsMenu_TabColors";
x = X_PART(10.5);
action = QUOTE([MENU_TAB_SERVER_COLORS] call FUNC(onServerListBoxShowSelectionChanged););
};
class selectionAction_3: selectionAction_1 {
idc = 1002;
text = "$STR_ACE_OptionsMenu_TabValues";
x = X_PART(20);
action = QUOTE([MENU_TAB_SERVER_VALUES] call FUNC(onServerListBoxShowSelectionChanged););
};
class selectionAction_4: selectionAction_1 {
idc = 1003;
text = "";
x = X_PART(29.5);
action = "";
};
class listBoxSettingsList: ACE_gui_listNBox {
idc = 200;
x = X_PART(2);
y = Y_PART(5.5);
w = W_PART(23);
h = H_PART(15);
SizeEx = H_ORIGINAL(0.8);
colorBackground[] = {0, 0, 0, 0.9};
colorSelectBackground[] = {0, 0, 0, 0.9};
columns[] = {0.0, 0.6};
onLBSelChanged = QUOTE(_this call FUNC(serverSettingsMenuUpdateKeyView));
};
class labelTitle: ACE_gui_staticBase {
idc = 250;
x = X_PART(27.1);
y = Y_PART(5.1);
w = W_PART(11);
h = H_PART(1);
text = "";
SizeEx = H_PART(1);
};
class labelKey: ACE_gui_staticBase { //Variable Name
idc = 300;
x = X_PART(27.1);
y = Y_PART(6.2);
w = W_PART(11);
h = H_PART(1);
text = "";
SizeEx = H_PART(0.65);
};
class Label2: labelKey {
idc = 301;
y = Y_PART(7.3);
text = "$STR_ACE_OptionsMenu_Setting";
SizeEx = H_PART(1);
};
class comboBox1: ACE_gui_comboBoxBase {
idc = 400;
x = X_PART(31.1);
y = Y_PART(7.3);
w = W_PART(7);
h = H_PART(1);
onLBSelChanged = QUOTE( call FUNC(onListBoxSettingsChanged));
SizeEx = H_PART(0.9);
};
class sliderBar1: RscXSliderH {
idc = 410;
x = X_PART(27.1);
y = Y_PART(7.3);
w = W_PART(11);
h = H_PART(0.75);
onSliderPosChanged = QUOTE(_this call FUNC(onSliderPosChanged));
color[] = {1,0,0,0.4};
colorActive[] = {1,0,0,1};
};
class sliderBar2: sliderBar1 {
idc = 411;
y = Y_PART(8.2);
color[] = {0,1,0,0.4};
colorActive[] = {0,1,0,1};
};
class sliderBar3: sliderBar1 {
idc = 412;
y = Y_PART(9.1);
color[] = {0,0,1,0.4};
colorActive[] = {0,0,1,1};
};
class sliderBar4: sliderBar1 {
idc = 413;
y = Y_PART(10);
color[] = {1,1,1,0.4};
colorActive[] = {1,1,1,1};
};
class inputField1: ACE_gui_editBase {
idc = 414;
x = X_PART(27.1);
y = Y_PART(7.3);
w = W_PART(11);
h = H_PART(0.75);
};
class inputFieldTypeLabel: ACE_gui_staticBase {
idc = 415;
x = X_PART(27.1);
y = Y_PART(8.2);
w = W_PART(11);
h = H_PART(0.75);
text = "";
style = ST_LEFT + ST_MULTI;
lineSpacing = 1;
SizeEx = H_PART(0.8);
};
class saveInputButton: selectionAction_1 {
idc = 416;
text = "$STR_ACE_OptionsMenu_SaveInput";
x = X_PART(27.1);
y = Y_PART(9.1);
w = W_PART(11);
h = H_PART(1);
action = QUOTE([] call FUNC(onServerSaveInputField););
};
class labelDesc: ACE_gui_staticBase {
idc = 251;
x = X_PART(27.1);
y = Y_PART(11);
w = W_PART(11);
h = H_PART(11);
text = "";
style = ST_LEFT + ST_MULTI;
lineSpacing = 1;
SizeEx = H_PART(0.8);
};
class actionClose;
class action_reset: actionClose {
idc = 1100;
text = "$STR_ACE_OptionsMenu_ResetAll";
x = X_PART(26.1);
action = QUOTE([] call FUNC(serverResetSettings));
};
class action_exportServerConfig: actionClose {
idc = 1101;
text = "$STR_ACE_OptionsMenu_Export";
x = X_PART(1);
action = QUOTE([] call FUNC(exportSettings));
};
class action_toggleIncludeClientSettings: actionClose {
idc = 1102;
text = "$STR_ACE_OptionsMenu_inClientSettings";
x = X_PART(9);
action = QUOTE([] call FUNC(toggleIncludeClientSettings));
};
};
class labelSubHeader: ACE_gui_staticBase {
idc = 13;
x = X_PART(2);
y = Y_PART(3.4);
w = W_PART(30);
h = H_PART(1);
text = "";
};
class selectionAction_1: ACE_gui_buttonBase {
idc = 1000;
text = "$STR_ACE_OptionsMenu_TabOptions";
x = X_PART(1);
y = Y_PART(2.1);
w = W_PART(9.5);
h = H_PART(1);
animTextureNormal = "#(argb,8,8,3)color(0,0,0,0.9)";
animTextureDisabled = "#(argb,8,8,3)color(0,0,0,0.8)";
animTextureOver = "#(argb,8,8,3)color(1,1,1,1)";
animTextureFocused = "#(argb,8,8,3)color(1,1,1,1)";
animTexturePressed = "#(argb,8,8,3)color(1,1,1,1)";
animTextureDefault = "#(argb,8,8,3)color(1,1,1,1)";
color[] = {1, 1, 1, 1};
color2[] = {0,0,0, 1};
colorBackgroundFocused[] = {1,1,1,1};
colorBackground[] = {1,1,1,1};
colorbackground2[] = {1,1,1,1};
colorDisabled[] = {1,1,1,1};
colorFocused[] = {0,0,0,1};
periodFocus = 1;
periodOver = 1;
action = QUOTE([MENU_TAB_SERVER_OPTIONS] call FUNC(onServerListBoxShowSelectionChanged););
};
class selectionAction_2: selectionAction_1 {
idc = 1001;
text = "$STR_ACE_OptionsMenu_TabColors";
x = X_PART(10.5);
action = QUOTE([MENU_TAB_SERVER_COLORS] call FUNC(onServerListBoxShowSelectionChanged););
};
class selectionAction_3: selectionAction_1 {
idc = 1002;
text = "$STR_ACE_OptionsMenu_TabValues";
x = X_PART(20);
action = QUOTE([MENU_TAB_SERVER_VALUES] call FUNC(onServerListBoxShowSelectionChanged););
};
class selectionAction_4: selectionAction_1 {
idc = 1003;
text = "";
x = X_PART(29.5);
action = "";
};
class listBoxSettingsList: ACE_gui_listNBox {
idc = 200;
x = X_PART(2);
y = Y_PART(5.5);
w = W_PART(23);
h = H_PART(15);
SizeEx = H_PART(0.8);
colorBackground[] = {0, 0, 0, 0.9};
colorSelectBackground[] = {0, 0, 0, 0.9};
columns[] = {0.0, 0.6};
onLBSelChanged = QUOTE(_this call FUNC(serverSettingsMenuUpdateKeyView));
};
class labelTitle: ACE_gui_staticBase {
idc = 250;
x = X_PART(27.1);
y = Y_PART(5.1);
w = W_PART(11);
h = H_PART(1);
text = "";
SizeEx = H_PART(1);
};
class labelKey: ACE_gui_staticBase { //Variable Name
idc = 300;
x = X_PART(27.1);
y = Y_PART(6.2);
w = W_PART(11);
h = H_PART(1);
text = "";
SizeEx = H_PART(0.65);
};
class Label2: labelKey {
idc = 301;
y = Y_PART(7.3);
text = "$STR_ACE_OptionsMenu_Setting";
SizeEx = H_PART(1);
};
class comboBox1: ACE_gui_comboBoxBase {
idc = 400;
x = X_PART(31.1);
y = Y_PART(7.3);
w = W_PART(7);
h = H_PART(1);
onLBSelChanged = QUOTE( call FUNC(onListBoxSettingsChanged));
SizeEx = H_PART(0.9);
};
class sliderBar1: RscXSliderH {
idc = 410;
x = X_PART(27.1);
y = Y_PART(7.3);
w = W_PART(11);
h = H_PART(0.75);
onSliderPosChanged = QUOTE(_this call FUNC(onSliderPosChanged));
color[] = {1,0,0,0.4};
colorActive[] = {1,0,0,1};
};
class sliderBar2: sliderBar1 {
idc = 411;
y = Y_PART(8.2);
color[] = {0,1,0,0.4};
colorActive[] = {0,1,0,1};
};
class sliderBar3: sliderBar1 {
idc = 412;
y = Y_PART(9.1);
color[] = {0,0,1,0.4};
colorActive[] = {0,0,1,1};
};
class sliderBar4: sliderBar1 {
idc = 413;
y = Y_PART(10);
color[] = {1,1,1,0.4};
colorActive[] = {1,1,1,1};
};
class inputField1: ACE_gui_editBase {
idc = 414;
x = X_PART(27.1);
y = Y_PART(7.3);
w = W_PART(11);
h = H_PART(0.75);
};
class inputFieldTypeLabel: ACE_gui_staticBase {
idc = 415;
x = X_PART(27.1);
y = Y_PART(8.2);
w = W_PART(11);
h = H_PART(0.75);
text = "";
style = ST_LEFT + ST_MULTI;
lineSpacing = 1;
SizeEx = H_PART(0.8);
};
class saveInputButton: selectionAction_1 {
idc = 416;
text = "$STR_ACE_OptionsMenu_SaveInput";
x = X_PART(27.1);
y = Y_PART(9.1);
w = W_PART(11);
h = H_PART(1);
action = QUOTE([] call FUNC(onServerSaveInputField););
};
class labelDesc: ACE_gui_staticBase {
idc = 251;
x = X_PART(27.1);
y = Y_PART(11);
w = W_PART(11);
h = H_PART(11);
text = "";
style = ST_LEFT + ST_MULTI;
lineSpacing = 1;
SizeEx = H_PART(0.8);
};
class actionClose;
class action_reset: actionClose {
idc = 1100;
text = "$STR_ACE_OptionsMenu_ResetAll";
x = X_PART(26.1);
action = QUOTE([] call FUNC(serverResetSettings));
};
class action_exportServerConfig: actionClose {
idc = 1101;
text = "$STR_ACE_OptionsMenu_Export";
x = X_PART(1);
action = QUOTE([] call FUNC(exportSettings));
};
class action_toggleIncludeClientSettings: actionClose {
idc = 1102;
text = "$STR_ACE_OptionsMenu_inClientSettings";
x = X_PART(9);
action = QUOTE([] call FUNC(toggleIncludeClientSettings));
};
};
};