mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Added blur background client setting
This commit is contained in:
parent
67308ab00d
commit
00acbaf44d
@ -4,7 +4,7 @@ class ACE_Settings {
|
|||||||
typeName = "BOOL";
|
typeName = "BOOL";
|
||||||
isClientSettable = 1;
|
isClientSettable = 1;
|
||||||
displayName = "$STR_ACE_Interact_Menu_AlwaysUseCursorSelfInteraction";
|
displayName = "$STR_ACE_Interact_Menu_AlwaysUseCursorSelfInteraction";
|
||||||
};
|
};
|
||||||
class GVAR(cursorKeepCentered) {
|
class GVAR(cursorKeepCentered) {
|
||||||
value = 0;
|
value = 0;
|
||||||
typeName = "BOOL";
|
typeName = "BOOL";
|
||||||
@ -54,7 +54,7 @@ class ACE_Settings {
|
|||||||
isClientSettable = 1;
|
isClientSettable = 1;
|
||||||
displayName = "$STR_ACE_Interact_textSize";
|
displayName = "$STR_ACE_Interact_textSize";
|
||||||
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 = 2;
|
value = 2;
|
||||||
typeName = "SCALAR";
|
typeName = "SCALAR";
|
||||||
@ -69,4 +69,11 @@ class ACE_Settings {
|
|||||||
isClientSettable = 1;
|
isClientSettable = 1;
|
||||||
displayName = "$STR_ACE_Interact_Menu_ActionOnKeyRelease";
|
displayName = "$STR_ACE_Interact_Menu_ActionOnKeyRelease";
|
||||||
};
|
};
|
||||||
|
class GVAR(blurScreen) {
|
||||||
|
value = 0;
|
||||||
|
typeName = "BOOL";
|
||||||
|
isClientSettable = 1;
|
||||||
|
displayName = "$STR_ACE_Interact_Menu_blurScreen";
|
||||||
|
description = "$STR_ACE_Interact_Menu_blurScreenDesc";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
@ -62,3 +62,6 @@ addMissionEventHandler ["Draw3D", DFUNC(render)];
|
|||||||
|
|
||||||
// disable firing while the interact menu is is is opened
|
// disable firing while the interact menu is is is opened
|
||||||
["playerChanged", {_this call FUNC(handlePlayerChanged)}] call EFUNC(common,addEventHandler);
|
["playerChanged", {_this call FUNC(handlePlayerChanged)}] call EFUNC(common,addEventHandler);
|
||||||
|
|
||||||
|
["interactMenuOpened", { if (GVAR(blurScreen)) then {[QGVAR(blurScreen), true] call EFUNC(common,blurScreen);}; }] call EFUNC(common,addEventHandler);
|
||||||
|
["interactMenuClosed", { if (GVAR(blurScreen)) then {[QGVAR(blurScreen), false] call EFUNC(common,blurScreen);}; }] call EFUNC(common,addEventHandler);
|
||||||
|
@ -217,5 +217,11 @@
|
|||||||
<Hungarian>Körvonal</Hungarian>
|
<Hungarian>Körvonal</Hungarian>
|
||||||
<Italian>Contorno</Italian>
|
<Italian>Contorno</Italian>
|
||||||
</Key>
|
</Key>
|
||||||
|
<Key ID="STR_ACE_Interact_Menu_blurScreen">
|
||||||
|
<English>Blur screen on interaction</English>
|
||||||
|
</Key>
|
||||||
|
<Key ID="STR_ACE_Interact_Menu_blurScreenDesc">
|
||||||
|
<English>Blur the background while the interaction menu is open.</English>
|
||||||
|
</Key>
|
||||||
</Package>
|
</Package>
|
||||||
</Project>
|
</Project>
|
||||||
|
Loading…
Reference in New Issue
Block a user