mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Added Force setting
This commit is contained in:
parent
62d7ea0b03
commit
a7cd36bc3e
@ -13,6 +13,12 @@ class ACE_Settings {
|
||||
description = "$STR_ACE_NameTags_ShowPlayerNames_Desc";
|
||||
values[] = {"$STR_ACE_NameTags_Disabled", "$STR_ACE_NameTags_Enabled", "$STR_ACE_NameTags_OnlyCursor", "$STR_ACE_NameTags_OnlyOnKeypress", "$STR_ACE_NameTags_OnlyCursorAndKeypress"};
|
||||
};
|
||||
class GVAR(showPlayerNamesForce) {
|
||||
value = 0;
|
||||
typeName = "BOOL";
|
||||
displayName = "$STR_ACE_NameTags_ShowPlayerNamesForce";
|
||||
description = "$STR_ACE_NameTags_ShowPlayerNamesForce_Desc";
|
||||
};
|
||||
class GVAR(showPlayerRanks) {
|
||||
value = 1;
|
||||
typeName = "BOOL";
|
||||
|
@ -40,6 +40,12 @@ class CfgVehicles {
|
||||
};
|
||||
};
|
||||
};
|
||||
class showPlayerNamesForce {
|
||||
displayName = "$STR_ACE_NameTags_ShowPlayerNamesForce";
|
||||
description = "$STR_ACE_NameTags_ShowPlayerNamesForce_Desc";
|
||||
typeName = "BOOL";
|
||||
defaultValue = 0;
|
||||
};
|
||||
class playerNamesViewDistance {
|
||||
displayName = "$STR_ACE_NameTags_PlayerNamesViewDistance_DisplayName";
|
||||
description = "$STR_ACE_NameTags_PlayerNamesViewDistance_Description";
|
||||
|
@ -20,10 +20,14 @@ if !(_activated) exitWith {};
|
||||
|
||||
GVAR(Module) = true;
|
||||
|
||||
[_logic, QGVAR(showPlayerNames), "showPlayerNames" ] call EFUNC(common,readSettingFromModule);
|
||||
[_logic, QGVAR(playerNamesViewDistance), "playerNamesViewDistance" ] call EFUNC(common,readSettingFromModule);
|
||||
[_logic, QGVAR(ShowNamesForAI), "ShowNamesForAI" ] call EFUNC(common,readSettingFromModule);
|
||||
[_logic, QGVAR(showVehicleCrewInfo), "showVehicleCrewInfo" ] call EFUNC(common,readSettingFromModule);
|
||||
[_logic, QGVAR(showCursorTagForVehicles), "showCursorTagForVehicles" ] call EFUNC(common,readSettingFromModule);
|
||||
[_logic, QGVAR(showPlayerNamesForce), "showPlayerNamesForce" ] call EFUNC(common,readSettingFromModule);
|
||||
|
||||
if (GVAR(showPlayerNamesForce)) then {
|
||||
[_logic, QGVAR(showPlayerNames), "showPlayerNames" ] call EFUNC(common,readSettingFromModule);
|
||||
};
|
||||
|
||||
diag_log text "[ACE]: NameTags Module Initialized.";
|
||||
|
@ -25,6 +25,12 @@
|
||||
<Italian>Mostra i nomi dei giocatori</Italian>
|
||||
<Russian>Показывать имена игроков (включить имена)</Russian>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_NameTags_ShowPlayerNamesForce">
|
||||
<English>Force show player names setting</English>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_NameTags_ShowPlayerNamesForce_Desc">
|
||||
<English>Force name tags option, or by default allows players to choose it on their own. Default: Do Not Force</English>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_NameTags_ShowPlayerNamesOnlyOnCursor">
|
||||
<English>Show player name only on cursor (requires player names)</English>
|
||||
<Polish>Pokaż imiona graczy tylko pod kursorem (wymagana opcja Pokaż imiona graczy)</Polish>
|
||||
|
Loading…
Reference in New Issue
Block a user