Medical - Add new setting to hide self-interaction actions (#6756)

* Medical - Hide self interaction menu if disabled

* Add new setting
This commit is contained in:
PabstMirror 2019-01-11 20:58:13 -06:00 committed by GitHub
parent 59aa38185a
commit 188aabe699
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 2 deletions

View File

@ -3,7 +3,7 @@ class Medical {
runOnHover = 1;
exceptions[] = {"isNotInside", "isNotSwimming", "isNotSitting"};
statement = QUOTE([ARR_3(_target, true, 0)] call DFUNC(displayPatientInformation));
condition = "true";
condition = QUOTE(GVAR(menuTypeStyleSelf));
icon = QPATHTOF(UI\icons\medical_cross.paa);
class ACE_Head {

View File

@ -299,7 +299,15 @@ class ACE_Settings {
description = CSTRING(menuTypeDescription);
typeName = "SCALAR";
value = 0;
values[] = {CSTRING(useSelection), CSTRING(useRadial), "Disabled"};
values[] = {CSTRING(useSelection), CSTRING(useRadial), ECSTRING(common,Disabled)};
isClientSettable = 1;
};
class GVAR(menuTypeStyleSelf) {
category = CSTRING(Category_Medical);
displayName = CSTRING(menuTypeDisplaySelf);
description = CSTRING(menuTypeDescriptionSelf);
typeName = "BOOL";
value = 1;
isClientSettable = 1;
};
class GVAR(delayUnconCaptive) {

View File

@ -3177,6 +3177,12 @@
<Chinesesimp>选择你喜欢的选单样式; 预设为3D选项或放射状</Chinesesimp>
<Chinese>選擇你喜歡的選單樣式; 預設為3D選項或放射狀</Chinese>
</Key>
<Key ID="STR_ACE_Medical_menuTypeDisplaySelf">
<English>Show medical interaction for self</English>
</Key>
<Key ID="STR_ACE_Medical_menuTypeDisplaySelf">
<English>Show the self interaction medical actions</English>
</Key>
<Key ID="STR_ACE_Medical_useSelection">
<English>Selections (3d)</English>
<Polish>Pozycje (3D)</Polish>