Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revise toggle include crew keybind #396

Merged
merged 2 commits into from
Nov 27, 2018
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,28 @@
"Achilles_id_toggleIncludeCrew",
localize "STR_AMAE_KEY_TOGGLEINCLUDECREW",
{
missionNamespace setVariable ["Achilles_var_toggleCrewOnSpawn", true];
if (isNil "Achilles_var_toggleCrewOnSpawn") then
{
missionNamespace setVariable ["Achilles_var_toggleCrewOnSpawn", true];
((findDisplay 312) displayCtrl 2801) cbSetChecked false;
}
else
{
missionNamespace setVariable ["Achilles_var_toggleCrewOnSpawn", nil];
((findDisplay 312) displayCtrl 2801) cbSetChecked true;
};
},
{
missionNamespace setVariable ["Achilles_var_toggleCrewOnSpawn", nil];
if (isNil "Achilles_var_toggleCrewOnSpawn") then
{
missionNamespace setVariable ["Achilles_var_toggleCrewOnSpawn", true];
((findDisplay 312) displayCtrl 2801) cbSetChecked false;
}
else
{
missionNamespace setVariable ["Achilles_var_toggleCrewOnSpawn", nil];
((findDisplay 312) displayCtrl 2801) cbSetChecked true;
};
},
[DIK_LMENU, [false, false, false]]
[0x0, [false, false, false]]
] call CBA_fnc_addKeybind;