mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Localization
This commit is contained in:
parent
9aa2e3130a
commit
11aafe013b
@ -5,11 +5,11 @@ if (!hasInterface) exitWith {};
|
|||||||
|
|
||||||
GVAR(ParsedTextCached) = [];
|
GVAR(ParsedTextCached) = [];
|
||||||
|
|
||||||
//Setup text/shadow color matrix
|
//Setup text/shadow/size/color settings matrix
|
||||||
[] call FUNC(setupTextColors);
|
[] call FUNC(setupTextColors);
|
||||||
["SettingChanged", {
|
["SettingChanged", {
|
||||||
PARAMS_1(_name);
|
PARAMS_1(_name);
|
||||||
if ((_name == QGVAR(colorTextMax)) || {_name == QGVAR(colorTextMin)} || {_name == QGVAR(colorShadowMax)} || {_name == QGVAR(colorShadowMin)}) then {
|
if (_name in [QGVAR(colorTextMax), QGVAR(colorTextMin), QGVAR(colorShadowMax), QGVAR(colorShadowMin), QGVAR(textSize), QGVAR(shadowSetting)]) then {
|
||||||
[] call FUNC(setupTextColors);
|
[] call FUNC(setupTextColors);
|
||||||
};
|
};
|
||||||
}] call EFUNC(common,addEventhandler);
|
}] call EFUNC(common,addEventhandler);
|
||||||
|
@ -72,17 +72,16 @@ class ACE_Settings {
|
|||||||
value = 2;
|
value = 2;
|
||||||
typeName = "SCALAR";
|
typeName = "SCALAR";
|
||||||
isClientSettable = 1;
|
isClientSettable = 1;
|
||||||
displayName = "Interaction Text Size";
|
displayName = "$STR_ACE_Interact_textSize";
|
||||||
description = "Interaction Text Size 2";
|
|
||||||
values[] = {"$str_very_small", "$str_small", "$str_medium", "$str_large", "$str_very_large"};
|
values[] = {"$str_very_small", "$str_small", "$str_medium", "$str_large", "$str_very_large"};
|
||||||
};
|
};
|
||||||
class GVAR(shadowSetting) {
|
class GVAR(shadowSetting) {
|
||||||
value = 1;
|
value = 2;
|
||||||
typeName = "SCALAR";
|
typeName = "SCALAR";
|
||||||
isClientSettable = 1;
|
isClientSettable = 1;
|
||||||
displayName = "Text Shadow";
|
displayName = "$STR_ACE_Interact_shadowSetting";
|
||||||
description = "Interaction Text Size 2";
|
description = "$STR_ACE_Interact_shadowSettingDescription";
|
||||||
values[] = {"Disabled", "Enabled", "Outline"};
|
values[] = {"$STR_A3_OPTIONS_DISABLED", "$STR_A3_OPTIONS_ENABLED", "$STR_ACE_Interact_shadowOutline"};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
*/
|
*/
|
||||||
#include "script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
private ["_menuInSelectedPath", "_path", "_menuDepth", "_x", "_offset", "_newPos", "_forEachIndex", "_player", "_pos", "_shadowColor", "_target", "_textColor"];
|
private ["_menuInSelectedPath", "_path", "_menuDepth", "_x", "_offset", "_newPos", "_forEachIndex", "_player", "_pos", "_target", "_textSettings"];
|
||||||
|
|
||||||
EXPLODE_4_PVT(_this,_parentPath,_action,_sPos,_angles);
|
EXPLODE_4_PVT(_this,_parentPath,_action,_sPos,_angles);
|
||||||
EXPLODE_3_PVT(_action,_actionData,_activeChildren,_actionObject);
|
EXPLODE_3_PVT(_action,_actionData,_activeChildren,_actionObject);
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
*/
|
*/
|
||||||
#include "script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
|
private ["_menuDepth", "_mixColor", "_pathCount", "_row", "_shadowColor", "_textColor", "_textSize"];
|
||||||
|
|
||||||
//Mixes 2 colors (number arrays) and makes a color string "#AARRGGBB" for structured text
|
//Mixes 2 colors (number arrays) and makes a color string "#AARRGGBB" for structured text
|
||||||
_mixColor = {
|
_mixColor = {
|
||||||
|
@ -115,5 +115,17 @@
|
|||||||
<English>Keeps cursor centered and pans the option menu around. Useful if screen size is limited.</English>
|
<English>Keeps cursor centered and pans the option menu around. Useful if screen size is limited.</English>
|
||||||
<French>Garde le curseur au milieu et dispose le menu des options autour. Utile si la taille de l'écran est limitée.</French>
|
<French>Garde le curseur au milieu et dispose le menu des options autour. Utile si la taille de l'écran est limitée.</French>
|
||||||
</Key>
|
</Key>
|
||||||
|
<Key ID="STR_ACE_Interact_textSize">
|
||||||
|
<English>Interaction Text Size</English>
|
||||||
|
</Key>
|
||||||
|
<Key ID="STR_ACE_Interact_shadowSetting">
|
||||||
|
<English>Interaction Text Shadow</English>
|
||||||
|
</Key>
|
||||||
|
<Key ID="STR_ACE_Interact_shadowSettingDescription">
|
||||||
|
<English>Allows controlling the text's shadow. Outline ignores custom shadow colors.</English>
|
||||||
|
</Key>
|
||||||
|
<Key ID="STR_ACE_Interact_shadowOutline">
|
||||||
|
<English>Outline</English>
|
||||||
|
</Key>
|
||||||
</Package>
|
</Package>
|
||||||
</Project>
|
</Project>
|
Loading…
Reference in New Issue
Block a user