Skip to content

Commit

Permalink
Fix AI/HC dismiss, remote control and garrison commands (#2257)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaj22 committed Feb 16, 2022
1 parent 8e485c2 commit 50326e9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions A3A/addons/core/dialogs.hpp
Expand Up @@ -1607,7 +1607,7 @@ class AI_management {
w = 0.175015 * safezoneW;
h = 0.0560125 * safezoneH;
tooltip = $STR_antistasi_dialogs_AI_management_AI_control_tooltip;
action = "closeDialog 0; if ((count groupselectedUnits player > 0) and (count hcSelected player > 0)) exitWith {[""AI Control"", ""You must select from HC or Squad Bars, not both.""] call A3A_fnc_customHint;}; if (count groupselectedUnits player == 1) then {nul = [groupselectedUnits player] spawn A3A_fnc_controlunit""}; if (count hcSelected player == 1) then {nul = [hcSelected player] spawn A3A_fnc_controlHCsquad"";};";
action = "closeDialog 0; if ((count groupselectedUnits player > 0) and (count hcSelected player > 0)) exitWith {[""AI Control"", ""You must select from HC or Squad Bars, not both.""] call A3A_fnc_customHint;}; if (count groupselectedUnits player == 1) then {nul = [groupselectedUnits player] spawn A3A_fnc_controlunit}; if (count hcSelected player == 1) then {nul = [hcSelected player] spawn A3A_fnc_controlHCsquad;};";
};
class 8slots_R1: A3A_core_BattleMenuRedButton
{
Expand Down Expand Up @@ -1651,7 +1651,7 @@ class AI_management {
w = 0.175015 * safezoneW;
h = 0.0560125 * safezoneH;
tooltip = $STR_antistasi_dialogs_AI_management_garrison_tooltip;
action = "closeDialog 0;if (count groupselectedUnits player > 0) then {nul = [groupselectedUnits player] spawn A3A_fnc_addToGarrison""} else {if (count (hcSelected player) > 0) then {nul = [hcSelected player] spawn A3A_fnc_addToGarrison""}}; if ((count groupselectedUnits player == 0) and (count hcSelected player == 0)) then {[""Garrison"", ""No units or squads selected""] call A3A_fnc_customHint;}";
action = "closeDialog 0;if (count groupselectedUnits player > 0) then {nul = [groupselectedUnits player] spawn A3A_fnc_addToGarrison} else {if (count (hcSelected player) > 0) then {nul = [hcSelected player] spawn A3A_fnc_addToGarrison}}; if ((count groupselectedUnits player == 0) and (count hcSelected player == 0)) then {[""Garrison"", ""No units or squads selected""] call A3A_fnc_customHint;}";
};
class 8slots_R3: A3A_core_BattleMenuRedButton
{
Expand All @@ -1673,7 +1673,7 @@ class AI_management {
w = 0.175015 * safezoneW;
h = 0.0560125 * safezoneH;
tooltip = $STR_antistasi_dialogs_AI_management_dismiss_units_tooltip;
action = "closeDialog 0;if (count groupselectedUnits player > 0) then {nul = [groupselectedUnits player] spawn A3A_fnc_dismissPlayerGroup""} else {if (count (hcSelected player) > 0) then {nul = [hcSelected player] spawn A3A_fnc_dismissSquad""}}; if ((count groupselectedUnits player == 0) and (count hcSelected player == 0)) then {[""Dismiss Squad"", ""No units or squads selected""] call A3A_fnc_customHint;}";
action = "closeDialog 0;if (count groupselectedUnits player > 0) then {nul = [groupselectedUnits player] spawn A3A_fnc_dismissPlayerGroup} else {if (count (hcSelected player) > 0) then {nul = [hcSelected player] spawn A3A_fnc_dismissSquad}}; if ((count groupselectedUnits player == 0) and (count hcSelected player == 0)) then {[""Dismiss Squad"", ""No units or squads selected""] call A3A_fnc_customHint;}";
};
class 8slots_R4: A3A_core_BattleMenuRedButton
{
Expand Down Expand Up @@ -1925,7 +1925,7 @@ class dismiss_menu {
w = 0.175015 * safezoneW;
h = 0.0560125 * safezoneH;
tooltip = $STR_antistasi_dialogs_dismiss_menu_dismiss_tooltip;
action = "closeDialog 0;if (count groupselectedUnits player > 0) then {nul = [groupselectedUnits player] spawn A3A_fnc_dismissPlayerGroup""} else {if (count (hcSelected player) > 0) then {nul = [hcSelected player] spawn A3A_fnc_dismissSquad""}}; if ((count groupselectedUnits player == 0) and (count hcSelected player == 0)) then {[""Garrison Squad"", ""No units or squads selected.""] call A3A_fnc_customHint;}";
action = "closeDialog 0;if (count groupselectedUnits player > 0) then {nul = [groupselectedUnits player] spawn A3A_fnc_dismissPlayerGroup} else {if (count (hcSelected player) > 0) then {nul = [hcSelected player] spawn A3A_fnc_dismissSquad}}; if ((count groupselectedUnits player == 0) and (count hcSelected player == 0)) then {[""Garrison Squad"", ""No units or squads selected.""] call A3A_fnc_customHint;}";
};
class HQ_button_Gstatic: A3A_core_BattleMenuRedButton
{
Expand All @@ -1936,7 +1936,7 @@ class dismiss_menu {
w = 0.175015 * safezoneW;
h = 0.0560125 * safezoneH;
tooltip = $STR_antistasi_dialogs_dismiss_menu_garrison_tooltip;
action = "closeDialog 0;if (count groupselectedUnits player > 0) then {nul = [groupselectedUnits player] spawn A3A_fnc_addToGarrison""} else {if (count (hcSelected player) > 0) then {nul = [hcSelected player] spawn A3A_fnc_addToGarrison""}}; if ((count groupselectedUnits player == 0) and (count hcSelected player == 0)) then {[""Garrison Static"", ""No units or squads selected.""] call A3A_fnc_customHint;}";
action = "closeDialog 0;if (count groupselectedUnits player > 0) then {nul = [groupselectedUnits player] spawn A3A_fnc_addToGarrison} else {if (count (hcSelected player) > 0) then {nul = [hcSelected player] spawn A3A_fnc_addToGarrison}}; if ((count groupselectedUnits player == 0) and (count hcSelected player == 0)) then {[""Garrison Static"", ""No units or squads selected.""] call A3A_fnc_customHint;}";
};
/*
class HQ_button_Gremove: A3A_core_BattleMenuRedButton
Expand Down

0 comments on commit 50326e9

Please sign in to comment.