More Locaization

This commit is contained in:
PabstMirror 2015-01-21 16:00:54 -06:00
parent c29acb4c68
commit a595b48d32
8 changed files with 245 additions and 268 deletions

View File

@ -29,7 +29,7 @@ if (!_badData) then {
}; };
if (_badData) then { if (_badData) then {
_settingValue = _default; _settingValue = _default;
systemChat format ["Bad Data in: ace_%1_%2", _typeString, _name]; systemChat format ["Bad Data in profile [ace_%1_%2] using default", _typeString, _name];
ERROR("Bad Value in profile"); ERROR("Bad Value in profile");
}; };

View File

@ -9,19 +9,17 @@
*/ */
#include "script_component.hpp" #include "script_component.hpp"
private ["_settingsMenu"]; private ["_settingsMenu", "_localizedHeader"];
PARAMS_1(_openTab); PARAMS_1(_openTab);
GVAR(optionMenu_openTab) = _openTab; GVAR(optionMenu_openTab) = _openTab;
// _textOptions = ["Menu Keybindings", "Action Keybindings", "Client Settings"];
disableSerialization; disableSerialization;
_settingsMenu = uiNamespace getVariable 'ACE_settingsMenu'; _settingsMenu = uiNamespace getVariable 'ACE_settingsMenu';
switch (GVAR(optionMenu_openTab)) do { switch (GVAR(optionMenu_openTab)) do {
case (MENU_TAB_OPTIONS): { case (MENU_TAB_OPTIONS): {
_localizedHeader = format ["%1: %2", ("Settings"), ("Client Options")]; _localizedHeader = format ["%1: %2", (localize "STR_ACE_OptionsMenu_OpenConfigMenu"), (localize "STR_ACE_OptionsMenu_TabOptions")];
ctrlSetText [13, _localizedHeader]; ctrlSetText [13, _localizedHeader];
lbClear 400; lbClear 400;
@ -35,7 +33,7 @@ case (MENU_TAB_OPTIONS): {
(_settingsMenu displayCtrl 413) ctrlShow false; (_settingsMenu displayCtrl 413) ctrlShow false;
}; };
case (MENU_TAB_COLORS): { case (MENU_TAB_COLORS): {
_localizedHeader = format ["%1: %2", ("Settings"), ("Colors")]; _localizedHeader = format ["%1: %2", (localize "STR_ACE_OptionsMenu_OpenConfigMenu"), (localize "STR_ACE_OptionsMenu_TabColors")];
ctrlSetText [13, _localizedHeader]; ctrlSetText [13, _localizedHeader];
lbClear 400; lbClear 400;

View File

@ -19,7 +19,6 @@ case (MENU_TAB_OPTIONS): {
if (_nameSelected == _name) exitwith { if (_nameSelected == _name) exitwith {
profileNamespace setvariable [(format ["ace_option_%1", _name]), (_x select 4)]; profileNamespace setvariable [(format ["ace_option_%1", _name]), (_x select 4)];
_saved = true; _saved = true;
systemChat str [(format ["ace_option_%1", _name]), (_x select 4)];
}; };
}foreach GVAR(clientSideOptions); }foreach GVAR(clientSideOptions);
}; };
@ -29,7 +28,6 @@ case (MENU_TAB_COLORS): {
if (_nameSelected == _name) exitwith { if (_nameSelected == _name) exitwith {
profileNamespace setvariable [(format ["ace_color_%1", _name]), (_x select 3)]; profileNamespace setvariable [(format ["ace_color_%1", _name]), (_x select 3)];
_saved = true; _saved = true;
systemChat str [(format ["ace_color_%1", _name]), (_x select 3)];
}; };
}foreach GVAR(clientSideColors); }foreach GVAR(clientSideColors);
}; };

View File

@ -47,19 +47,21 @@ if (count _collection > 0) then {
case (MENU_TAB_OPTIONS): { case (MENU_TAB_OPTIONS): {
_possibleValues = _setting select 3; _possibleValues = _setting select 3;
_settingsValue = _setting select 4; _settingsValue = _setting select 4;
lbClear 400; lbClear 400;
{ lbAdd [400, _x]; } foreach _possibleValues; { lbAdd [400, _x]; } foreach _possibleValues;
(_settingsMenu displayCtrl 400) lbSetCurSel _settingsValue; (_settingsMenu displayCtrl 400) lbSetCurSel _settingsValue;
}; };
case (MENU_TAB_COLORS): { case (MENU_TAB_COLORS): {
_currentColor = _setting select 3; _currentColor = _setting select 3;
{ {
sliderSetPosition [_x, (255 * (_currentColor select _forEachIndex))]; sliderSetPosition [_x, (255 * (_currentColor select _forEachIndex))];
} forEach [410, 411, 412, 413]; } forEach [410, 411, 412, 413];
}; };
}; };
}; } else { //no settings in list:
lbClear 400;
(_settingsMenu displayCtrl 250) ctrlSetText _localizedName;
(_settingsMenu displayCtrl 251) ctrlSetText _localizedDescription;
(_settingsMenu displayCtrl 300) ctrlSetText _entryName;
};

View File

@ -41,6 +41,5 @@ case (MENU_TAB_COLORS): {
}; };
}; };
if (_updateKeyView) then { if (_updateKeyView) then {
systemChat "Hare";
[] call FUNC(settingsMenuUpdateKeyView); [] call FUNC(settingsMenuUpdateKeyView);
}; };

View File

@ -36,10 +36,9 @@ case (MENU_TAB_COLORS): {
}; };
}; };
systemChat format ["%1: %2", _name, _changed];
if (_changed) then { if (_changed) then {
missionNameSpace setVariable [_name, _newValue]; missionNameSpace setVariable [_name, _newValue];
[_type, _name] call FUNC(saveToProfile); [_type, _name] call FUNC(saveToProfile);
["SettingChanged", [_name, _newValue]] call EFUNC(common,localEvent); ["SettingChanged", [_name, _newValue]] call EFUNC(common,localEvent);
TRACE_2("Variable Updated",_name,_newValue);
}; };

View File

@ -1,247 +1,226 @@
class ACE_settingsMenu { class ACE_settingsMenu {
idd = 145246; idd = 145246;
movingEnable = false; movingEnable = false;
onLoad = QUOTE(uiNamespace setVariable [ARR_2('ACE_settingsMenu', _this select 0)]; [] call FUNC(onSettingsMenuOpen);); onLoad = QUOTE(uiNamespace setVariable [ARR_2('ACE_settingsMenu', _this select 0)]; [] call FUNC(onSettingsMenuOpen););
onUnload = QUOTE(uiNamespace setVariable [ARR_2('ACE_settingsMenu', nil)]; saveProfileNamespace;); onUnload = QUOTE(uiNamespace setVariable [ARR_2('ACE_settingsMenu', nil)]; saveProfileNamespace;);
class controlsBackground {
class HeaderBackground: ACE_gui_backgroundBase {
idc = -1;
type = CT_STATIC;
x = "1 * (((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX + (safezoneW - ((safezoneW / safezoneH) min 1.2))/2)";
y = "1 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + (safezoneY + (safezoneH - (((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
w = "38 * (((safezoneW / safezoneH) min 1.2) / 40)";
h = "1 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
style = ST_LEFT + ST_SHADOW;
font = "PuristaMedium";
SizeEx = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 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 = "2.1 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + (safezoneY + (safezoneH - (((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
h = "2.5 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
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 = "4.8 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + (safezoneY + (safezoneH - (((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
h = "17.4 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
w = "25 * (((safezoneW / safezoneH) min 1.2) / 40)";
};
class RightBackground: LeftBackground {
x = "26.1 * (((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX + (safezoneW - ((safezoneW / safezoneH) min 1.2))/2)";
w = "12.9 * (((safezoneW / safezoneH) min 1.2) / 40)";
};
};
class controls { class controlsBackground {
class HeaderName { class HeaderBackground: ACE_gui_backgroundBase {
idc = 1; idc = -1;
type = CT_STATIC; type = CT_STATIC;
x = "1 * (((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX + (safezoneW - ((safezoneW / safezoneH) min 1.2))/2)"; x = "1 * (((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX + (safezoneW - ((safezoneW / safezoneH) min 1.2))/2)";
y = "1 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + (safezoneY + (safezoneH - (((safezoneW / safezoneH) min 1.2) / 1.2))/2)"; y = "1 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + (safezoneY + (safezoneH - (((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
w = "38 * (((safezoneW / safezoneH) min 1.2) / 40)"; w = "38 * (((safezoneW / safezoneH) min 1.2) / 40)";
h = "1 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25)"; h = "1 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
style = ST_LEFT + ST_SHADOW; style = ST_LEFT + ST_SHADOW;
font = "PuristaMedium"; font = "PuristaMedium";
SizeEx = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)"; SizeEx = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)";
colorText[] = {0.95, 0.95, 0.95, 0.75}; colorText[] = {0.95, 0.95, 0.95, 0.75};
colorBackground[] = {0,0,0,0}; 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 = "$STR_ACE_OptionsMenu_OpenConfigMenu"; text = "";
}; };
class CenterBackground: HeaderBackground {
y = "2.1 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + (safezoneY + (safezoneH - (((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
h = "2.5 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
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 = "4.8 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + (safezoneY + (safezoneH - (((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
h = "17.4 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
w = "25 * (((safezoneW / safezoneH) min 1.2) / 40)";
};
class RightBackground: LeftBackground {
x = "26.1 * (((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX + (safezoneW - ((safezoneW / safezoneH) min 1.2))/2)";
w = "12.9 * (((safezoneW / safezoneH) min 1.2) / 40)";
};
};
class controls {
class labelShow: ACE_gui_staticBase { class HeaderName {
idc = 12; idc = 1;
x = "2 * (((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX + (safezoneW - ((safezoneW / safezoneH) min 1.2))/2)"; type = CT_STATIC;
y = "2.3 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + (safezoneY + (safezoneH - (((safezoneW / safezoneH) min 1.2) / 1.2))/2)"; x = "1 * (((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX + (safezoneW - ((safezoneW / safezoneH) min 1.2))/2)";
w = "4 * (((safezoneW / safezoneH) min 1.2) / 40)"; y = "1 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + (safezoneY + (safezoneH - (((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
h = "1 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25)"; w = "38 * (((safezoneW / safezoneH) min 1.2) / 40)";
text = "Show:"; h = "1 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
}; style = ST_LEFT + ST_SHADOW;
class labelShow2: ACE_gui_staticBase { font = "PuristaMedium";
idc = 13; SizeEx = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)";
x = "2 * (((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX + (safezoneW - ((safezoneW / safezoneH) min 1.2))/2)"; colorText[] = {0.95, 0.95, 0.95, 0.75};
y = "3.4 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + (safezoneY + (safezoneH - (((safezoneW / safezoneH) min 1.2) / 1.2))/2)"; colorBackground[] = {0,0,0,0};
w = "30 * (((safezoneW / safezoneH) min 1.2) / 40)"; text = "$STR_ACE_OptionsMenu_OpenConfigMenu";
h = "1 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25)"; };
text = ""; class labelSubHeader: ACE_gui_staticBase {
}; idc = 13;
x = "2 * (((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX + (safezoneW - ((safezoneW / safezoneH) min 1.2))/2)";
class selectionAction_1: ACE_gui_buttonBase { y = "3.4 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + (safezoneY + (safezoneH - (((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
idc = 1000; w = "30 * (((safezoneW / safezoneH) min 1.2) / 40)";
text = "$STR_ACE_OptionsMenu_TabOptions"; h = "1 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
x = "1 * (((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX + (safezoneW - ((safezoneW / safezoneH) min 1.2))/2)"; text = "";
y = "2.1 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + (safezoneY + (safezoneH - (((safezoneW / safezoneH) min 1.2) / 1.2))/2)"; };
w = "9.5 * (((safezoneW / safezoneH) min 1.2) / 40)"; class selectionAction_1: ACE_gui_buttonBase {
h = "1 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25)"; idc = 1000;
animTextureNormal = "#(argb,8,8,3)color(0,0,0,0.9)"; text = "$STR_ACE_OptionsMenu_TabOptions";
animTextureDisabled = "#(argb,8,8,3)color(0,0,0,0.8)"; x = "1 * (((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX + (safezoneW - ((safezoneW / safezoneH) min 1.2))/2)";
animTextureOver = "#(argb,8,8,3)color(1,1,1,1)"; y = "2.1 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + (safezoneY + (safezoneH - (((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
animTextureFocused = "#(argb,8,8,3)color(1,1,1,1)"; w = "9.5 * (((safezoneW / safezoneH) min 1.2) / 40)";
animTexturePressed = "#(argb,8,8,3)color(1,1,1,1)"; h = "1 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
animTextureDefault = "#(argb,8,8,3)color(1,1,1,1)"; animTextureNormal = "#(argb,8,8,3)color(0,0,0,0.9)";
color[] = {1, 1, 1, 1}; animTextureDisabled = "#(argb,8,8,3)color(0,0,0,0.8)";
color2[] = {0,0,0, 1}; animTextureOver = "#(argb,8,8,3)color(1,1,1,1)";
colorBackgroundFocused[] = {1,1,1,1}; animTextureFocused = "#(argb,8,8,3)color(1,1,1,1)";
colorBackground[] = {1,1,1,1}; animTexturePressed = "#(argb,8,8,3)color(1,1,1,1)";
colorbackground2[] = {1,1,1,1}; animTextureDefault = "#(argb,8,8,3)color(1,1,1,1)";
colorDisabled[] = {0.5,0.5,0.5,0.8}; color[] = {1, 1, 1, 1};
colorFocused[] = {0,0,0,1}; color2[] = {0,0,0, 1};
periodFocus = 1; colorBackgroundFocused[] = {1,1,1,1};
periodOver = 1; colorBackground[] = {1,1,1,1};
action = QUOTE([MENU_TAB_OPTIONS] call FUNC(onListBoxShowSelectionChanged);); colorbackground2[] = {1,1,1,1};
}; colorDisabled[] = {0.5,0.5,0.5,0.8};
colorFocused[] = {0,0,0,1};
periodFocus = 1;
class selectionAction_2: selectionAction_1 { periodOver = 1;
idc = 1001; action = QUOTE([MENU_TAB_OPTIONS] call FUNC(onListBoxShowSelectionChanged););
text = "$STR_ACE_OptionsMenu_TabColors"; };
x = "10.5 * (((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX + (safezoneW - ((safezoneW / safezoneH) min 1.2))/2)"; class selectionAction_2: selectionAction_1 {
action = QUOTE([MENU_TAB_COLORS] call FUNC(onListBoxShowSelectionChanged);); idc = 1001;
}; text = "$STR_ACE_OptionsMenu_TabColors";
class selectionAction_3: selectionAction_1 { x = "10.5 * (((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX + (safezoneW - ((safezoneW / safezoneH) min 1.2))/2)";
idc = 1002; action = QUOTE([MENU_TAB_COLORS] call FUNC(onListBoxShowSelectionChanged););
text = "---"; };
x = "20 * (((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX + (safezoneW - ((safezoneW / safezoneH) min 1.2))/2)"; class selectionAction_3: selectionAction_1 {
action = ""; idc = 1002;
}; text = "---";
class selectionAction_4: selectionAction_1 { x = "20 * (((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX + (safezoneW - ((safezoneW / safezoneH) min 1.2))/2)";
idc = 1003; action = "";
text = "---"; };
x = "29.5 * (((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX + (safezoneW - ((safezoneW / safezoneH) min 1.2))/2)"; class selectionAction_4: selectionAction_1 {
action = ""; idc = 1003;
}; text = "---";
x = "29.5 * (((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX + (safezoneW - ((safezoneW / safezoneH) min 1.2))/2)";
class listBoxSettingsList: ACE_gui_listNBox { action = "";
idc = 200; };
x = "2 * (((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX + (safezoneW - ((safezoneW / safezoneH) min 1.2))/2)"; class listBoxSettingsList: ACE_gui_listNBox {
y = "5.5 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + (safezoneY + (safezoneH - (((safezoneW / safezoneH) min 1.2) / 1.2))/2)"; idc = 200;
w = "23 * (((safezoneW / safezoneH) min 1.2) / 40)"; x = "2 * (((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX + (safezoneW - ((safezoneW / safezoneH) min 1.2))/2)";
h = "10 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25)"; y = "5.5 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + (safezoneY + (safezoneH - (((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
SizeEx = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 0.7)"; w = "23 * (((safezoneW / safezoneH) min 1.2) / 40)";
colorBackground[] = {0, 0, 0, 0.9}; h = "10 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
colorSelectBackground[] = {0, 0, 0, 0.9}; SizeEx = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 0.7)";
columns[] = {0.0, 0.5}; colorBackground[] = {0, 0, 0, 0.9};
onLBSelChanged = QUOTE(_this call FUNC(settingsMenuUpdateKeyView)); colorSelectBackground[] = {0, 0, 0, 0.9};
}; columns[] = {0.0, 0.5};
onLBSelChanged = QUOTE(_this call FUNC(settingsMenuUpdateKeyView));
class labelTitle: ACE_gui_staticBase { };
idc = 250; class labelTitle: ACE_gui_staticBase {
x = "27.1 * (((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX + (safezoneW - ((safezoneW / safezoneH) min 1.2))/2)"; idc = 250;
y = "5.1 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + (safezoneY + (safezoneH - (((safezoneW / safezoneH) min 1.2) / 1.2))/2)"; x = "27.1 * (((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX + (safezoneW - ((safezoneW / safezoneH) min 1.2))/2)";
w = "10 * (((safezoneW / safezoneH) min 1.2) / 40)"; y = "5.1 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + (safezoneY + (safezoneH - (((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
h = "1 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25)"; w = "10 * (((safezoneW / safezoneH) min 1.2) / 40)";
text = ""; h = "1 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
SizeEx = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)"; text = "";
}; SizeEx = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)";
};
class labelKey: ACE_gui_staticBase { class labelKey: ACE_gui_staticBase { //Variable Name
idc = 300; idc = 300;
x = "27.1 * (((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX + (safezoneW - ((safezoneW / safezoneH) min 1.2))/2)"; x = "27.1 * (((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX + (safezoneW - ((safezoneW / safezoneH) min 1.2))/2)";
y = "6.2 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + (safezoneY + (safezoneH - (((safezoneW / safezoneH) min 1.2) / 1.2))/2)"; y = "6.2 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + (safezoneY + (safezoneH - (((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
w = "10 * (((safezoneW / safezoneH) min 1.2) / 40)"; w = "10 * (((safezoneW / safezoneH) min 1.2) / 40)";
h = "1 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25)"; h = "1 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
text = ""; text = "";
SizeEx = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 0.6)"; SizeEx = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 0.5)";
}; };
class Label2: labelKey {
class Label2: labelKey { idc = 301;
idc = 301; y = "7.3 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + (safezoneY + (safezoneH - (((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
y = "7.3 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + (safezoneY + (safezoneH - (((safezoneW / safezoneH) min 1.2) / 1.2))/2)"; text = "Setting:";
text = "Setting:"; SizeEx = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)";
SizeEx = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)"; };
}; class comboBox1: ACE_gui_comboBoxBase {
class comboBox1: ACE_gui_comboBoxBase { idc = 400;
idc = 400; x = "31.1 * (((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX + (safezoneW - ((safezoneW / safezoneH) min 1.2))/2)";
x = "31.1 * (((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX + (safezoneW - ((safezoneW / safezoneH) min 1.2))/2)"; y = "7.3 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + (safezoneY + (safezoneH - (((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
y = "7.3 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + (safezoneY + (safezoneH - (((safezoneW / safezoneH) min 1.2) / 1.2))/2)"; w = "7 * (((safezoneW / safezoneH) min 1.2) / 40)";
w = "7 * (((safezoneW / safezoneH) min 1.2) / 40)"; h = "1 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
h = "1 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25)"; onLBSelChanged = QUOTE( call FUNC(onListBoxSettingsChanged));
onLBSelChanged = QUOTE( call FUNC(onListBoxSettingsChanged)); };
}; class sliderBar1: RscXSliderH {
idc = 410;
class sliderBar1: RscXSliderH { x = "27.1 * (((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX + (safezoneW - ((safezoneW / safezoneH) min 1.2))/2)";
idc = 410; y = "7.3 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + (safezoneY + (safezoneH - (((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
x = "27.1 * (((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX + (safezoneW - ((safezoneW / safezoneH) min 1.2))/2)"; w = "11 * (((safezoneW / safezoneH) min 1.2) / 40)";
y = "7.3 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + (safezoneY + (safezoneH - (((safezoneW / safezoneH) min 1.2) / 1.2))/2)"; h = "0.75 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
w = "11 * (((safezoneW / safezoneH) min 1.2) / 40)"; onSliderPosChanged = QUOTE(_this call FUNC(onSliderPosChanged));
h = "0.75 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25)"; color[] = {1,0,0,0.4};
onSliderPosChanged = QUOTE(_this call FUNC(onSliderPosChanged)); colorActive[] = {1,0,0,1};
color[] = {1,0,0,0.4}; };
colorActive[] = {1,0,0,1}; class sliderBar2: sliderBar1 {
}; idc = 411;
class sliderBar2: sliderBar1 { y = "8.2 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + (safezoneY + (safezoneH - (((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
idc = 411; color[] = {0,1,0,0.4};
y = "8.2 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + (safezoneY + (safezoneH - (((safezoneW / safezoneH) min 1.2) / 1.2))/2)"; colorActive[] = {0,1,0,1};
color[] = {0,1,0,0.4}; };
colorActive[] = {0,1,0,1}; class sliderBar3: sliderBar1 {
}; idc = 412;
class sliderBar3: sliderBar1 { y = "9.1 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + (safezoneY + (safezoneH - (((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
idc = 412; color[] = {0,0,1,0.4};
y = "9.1 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + (safezoneY + (safezoneH - (((safezoneW / safezoneH) min 1.2) / 1.2))/2)"; colorActive[] = {0,0,1,1};
color[] = {0,0,1,0.4}; };
colorActive[] = {0,0,1,1}; class sliderBar4: sliderBar1 {
}; idc = 413;
class sliderBar4: sliderBar1 { y = "10 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + (safezoneY + (safezoneH - (((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
idc = 413; color[] = {1,1,1,0.4};
y = "10 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + (safezoneY + (safezoneH - (((safezoneW / safezoneH) min 1.2) / 1.2))/2)"; colorActive[] = {1,1,1,1};
color[] = {1,1,1,0.4}; };
colorActive[] = {1,1,1,1}; class labelDesc: ACE_gui_staticBase {
}; idc = 251;
x = "27.1 * (((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX + (safezoneW - ((safezoneW / safezoneH) min 1.2))/2)";
class labelDesc: ACE_gui_staticBase { y = "11 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + (safezoneY + (safezoneH - (((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
idc = 251; w = "11 * (((safezoneW / safezoneH) min 1.2) / 40)";
x = "27.1 * (((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX + (safezoneW - ((safezoneW / safezoneH) min 1.2))/2)"; h = "11 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
y = "11 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + (safezoneY + (safezoneH - (((safezoneW / safezoneH) min 1.2) / 1.2))/2)"; text = "";
w = "11 * (((safezoneW / safezoneH) min 1.2) / 40)"; style = ST_LEFT + ST_MULTI;
h = "11 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25)"; lineSpacing = 1;
text = ""; sizeEx = 0.03;
style = ST_LEFT + ST_MULTI; };
lineSpacing = 1; class actionClose: ACE_gui_buttonBase {
sizeEx = 0.03; idc = 10;
}; text = "$STR_DISP_CLOSE";
x = "1 * (((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX + (safezoneW - ((safezoneW / safezoneH) min 1.2))/2)";
class actionClose: ACE_gui_buttonBase { y = "22.3 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + (safezoneY + (safezoneH - (((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
idc = 10; w = "6 * (((safezoneW / safezoneH) min 1.2) / 40)";
text = "$STR_DISP_CLOSE"; h = "1 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
x = "1 * (((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX + (safezoneW - ((safezoneW / safezoneH) min 1.2))/2)"; animTextureNormal = "#(argb,8,8,3)color(0,0,0,0.8)";
y = "22.3 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + (safezoneY + (safezoneH - (((safezoneW / safezoneH) min 1.2) / 1.2))/2)"; animTextureDisabled = "#(argb,8,8,3)color(0,0,0,0.5)";
w = "6 * (((safezoneW / safezoneH) min 1.2) / 40)"; animTextureOver = "#(argb,8,8,3)color(1,1,1,1)";
h = "1 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25)"; animTextureFocused = "#(argb,8,8,3)color(1,1,1,1)";
animTextureNormal = "#(argb,8,8,3)color(0,0,0,0.8)"; animTexturePressed = "#(argb,8,8,3)color(1,1,1,1)";
animTextureDisabled = "#(argb,8,8,3)color(0,0,0,0.5)"; animTextureDefault = "#(argb,8,8,3)color(1,1,1,1)";
animTextureOver = "#(argb,8,8,3)color(1,1,1,1)"; color[] = {1, 1, 1, 1};
animTextureFocused = "#(argb,8,8,3)color(1,1,1,1)"; color2[] = {0,0,0, 1};
animTexturePressed = "#(argb,8,8,3)color(1,1,1,1)"; colorBackgroundFocused[] = {1,1,1,1};
animTextureDefault = "#(argb,8,8,3)color(1,1,1,1)"; colorBackground[] = {1,1,1,1};
color[] = {1, 1, 1, 1}; colorbackground2[] = {1,1,1,1};
color2[] = {0,0,0, 1}; colorDisabled[] = {0.5,0.5,0.5,0.8};
colorBackgroundFocused[] = {1,1,1,1}; colorFocused[] = {0,0,0,1};
colorBackground[] = {1,1,1,1}; periodFocus = 1;
colorbackground2[] = {1,1,1,1}; periodOver = 1;
colorDisabled[] = {0.5,0.5,0.5,0.8}; action = "closedialog 0;";
colorFocused[] = {0,0,0,1}; };
periodFocus = 1; class action_animation: actionClose {
periodOver = 1; idc = 1100;
action = "closedialog 0;"; text = "$STR_ACE_OptionsMenu_FixAnimation";
}; x = "7.5 * (((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX + (safezoneW - ((safezoneW / safezoneH) min 1.2))/2)";
// action = "if ([player] call ACE_fnc_canInteract && {animationState player == 'deadState' || animationState player == 'unconscious'} && {(vehicle player == player)}) then { [player, 'amovppnemstpsnonwnondnon'] call ACE_fnc_broadcastAnim; };";
class action_animation: actionClose { action = "hint 'todo???'";
idc = 1100; };
text = "$STR_ACE_OptionsMenu_FixAnimation"; class action_reset: actionClose {
x = "7.5 * (((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX + (safezoneW - ((safezoneW / safezoneH) min 1.2))/2)"; idc = 1100;
// action = "if ([player] call ACE_fnc_canInteract && {animationState player == 'deadState' || animationState player == 'unconscious'} && {(vehicle player == player)}) then { [player, 'amovppnemstpsnonwnondnon'] call ACE_fnc_broadcastAnim; };"; text = "$STR_ACE_OptionsMenu_ResetAll";
action = "hint 'todo???'"; x = "14 * (((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX + (safezoneW - ((safezoneW / safezoneH) min 1.2))/2)";
}; action = QUOTE([] call FUNC(resetSettings));
};
class action_reset: actionClose { };
idc = 1100;
text = "$STR_ACE_OptionsMenu_ResetAll";
x = "14 * (((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX + (safezoneW - ((safezoneW / safezoneH) min 1.2))/2)";
action = QUOTE([] call FUNC(resetSettings));
};
};
}; };

View File

@ -3,28 +3,30 @@
<Project name="ACE"> <Project name="ACE">
<Package name="OptionsMenu"> <Package name="OptionsMenu">
<Key ID="STR_ACE_OptionsMenu_OpenConfigMenu"> <Key ID="STR_ACE_OptionsMenu_OpenConfigMenu">
<English>ACE Options</English> <English>Configure ACE</English>
<German>ACE Optionen</German>
<Spanish>Opciones ACE</Spanish>
<Polish>Opcje ACE</Polish>
<Czech>ACE Nastavení</Czech>
<French>ACE Options</French>
<Russian>ACE Настройки</Russian>
<Portuguese>Opções do ACE</Portuguese>
<Hungarian>ACE Opciók</Hungarian>
<Italian>Opzioni ACE</Italian>
</Key> </Key>
<Key ID="STR_ACE_OptionsMenu_FixAnimation"> <Key ID="STR_ACE_OptionsMenu_FixAnimation">
<English>Fix Animation</English> <English>Fix Animation</English>
</Key> </Key>
<Key ID="STR_ACE_OptionsMenu_ResetAll"> <Key ID="STR_ACE_OptionsMenu_ResetAll">
<English>Reset All</English> <English>Reset All</English>
<German>Rücksetzen</German>
</Key> </Key>
<Key ID="STR_ACE_OptionsMenu_TabColors"> <Key ID="STR_ACE_OptionsMenu_TabColors">
<English>Colors</English> <English>Colors</English>
<German>Farben</German>
</Key> </Key>
<Key ID="STR_ACE_OptionsMenu_TabOptions"> <Key ID="STR_ACE_OptionsMenu_TabOptions">
<English>Options</English> <English>Options</English>
<German>Optionen</German>
<Spanish>Opciones</Spanish>
<Polish>Opcje</Polish>
<Czech>Nastavení</Czech>
<French>Options</French>
<Russian>Настройки</Russian>
<Portuguese>Opções</Portuguese>
<Hungarian>Opciók</Hungarian>
<Italian>Opzioni</Italian>
</Key> </Key>
</Package> </Package>
</Project> </Project>