Skip to content
This repository has been archived by the owner on May 24, 2022. It is now read-only.

Fortify - Fix budget hint showing for all sides with tool setting #133

Merged
merged 1 commit into from
Aug 7, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions addons/fortify/XEH_postInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ if (isServer) then {
if (!hasInterface) exitWith {};

GVAR(isPlacing) = PLACE_CANCEL;
["ace_interactMenuOpened", {GVAR(isPlacing) = PLACE_CANCEL;}] call CBA_fnc_addEventHandler;
["ace_interactMenuOpened", {GVAR(isPlacing) = PLACE_CANCEL}] call CBA_fnc_addEventHandler;

GVAR(objectRotationX) = 0;
GVAR(objectRotationY) = 0;
Expand All @@ -24,7 +24,7 @@ GVAR(objectRotationZ) = 0;

[QGVAR(sideBudgetHint), {
params ["_side"];
if (_side isEqualTo side group ace_player && {GVAR(settingHint) isEqualTo 2} || {GVAR(settingHint) isEqualTo 1 && "ACE_Fortify" in (items ace_player)}) then {
if (_side isEqualTo side group ACE_player && {GVAR(settingHint) isEqualTo 2 || {GVAR(settingHint) isEqualTo 1 && {"ACE_Fortify" in (items ACE_player)}}}) then {
private _budget = [_side] call FUNC(getBudget);
TRACE_2("sideBudgetHint",_side,_budget);
[format ["%1 $%2", localize LSTRING(Budget), _budget]] call ACEFUNC(common,displayTextStructured);
Expand Down
2 changes: 1 addition & 1 deletion addons/fortify/stringtable.xml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
<Chinesesimp>显示预算更新</Chinesesimp>
</Key>
<Key ID="STR_ACEX_Fortify_settingHintDesc">
<English>Controls when updates to budget is shown in a hint display</English>
<English>Controls when budget update hints are shown</English>
<Chinese>決定預算變更時是否會顯示提示</Chinese>
<Chinesesimp>决定预算变更时是否会显示提示</Chinesesimp>
</Key>
Expand Down