Added Force setting

This commit is contained in:
jonpas 2015-05-15 16:52:27 +02:00
parent 62d7ea0b03
commit a7cd36bc3e
4 changed files with 23 additions and 1 deletions

View File

@ -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";

View File

@ -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";

View File

@ -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.";

View File

@ -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>