Add categories to help splash

This commit is contained in:
SilentSpike 2015-07-24 17:50:33 +01:00
parent bafb261c01
commit e4aee1da2c
2 changed files with 16 additions and 1 deletions

View File

@ -104,9 +104,17 @@ switch (toLower _mode) do {
[FUNC(handleToolbar), 0, _display] call CBA_fnc_addPerFrameHandler; [FUNC(handleToolbar), 0, _display] call CBA_fnc_addPerFrameHandler;
// Populate the help splash // Populate the help splash
private "_help";
_help = (_display displayCtrl IDC_HELP) controlsGroupCtrl IDC_HELP_LIST;
{ {
((_display displayCtrl IDC_HELP) controlsGroupCtrl IDC_HELP_LIST) lnbAddRow _x; // Add space before category titles
if (count _x == 1) then {
_help lnbAddRow [""];
};
_help lnbAddRow _x;
} forEach [ } forEach [
[localize LSTRING(uiControls),""],
[localize LSTRING(uiToggleHelp),"H"], [localize LSTRING(uiToggleHelp),"H"],
[localize LSTRING(uiToggleMap),"M"], [localize LSTRING(uiToggleMap),"M"],
[localize LSTRING(uiToggleUnits),"1"], [localize LSTRING(uiToggleUnits),"1"],
@ -129,6 +137,7 @@ switch (toLower _mode) do {
[localize LSTRING(freeCamNextVis),"N"], [localize LSTRING(freeCamNextVis),"N"],
[localize LSTRING(freeCamPrevVis),"Ctrl + N"], [localize LSTRING(freeCamPrevVis),"Ctrl + N"],
[localize LSTRING(otherControls)],
[localize LSTRING(nextCam),"Up"], [localize LSTRING(nextCam),"Up"],
[localize LSTRING(prevCam),"Down"], [localize LSTRING(prevCam),"Down"],
[localize LSTRING(nextUnit),"Right"], [localize LSTRING(nextUnit),"Right"],

View File

@ -144,6 +144,9 @@
<English>Previous Vision Mode</English> <English>Previous Vision Mode</English>
</Key> </Key>
<Key ID="STR_ACE_Spectator_uiControls">
<English>Interface Controls</English>
</Key>
<Key ID="STR_ACE_Spectator_uiToggleInterface"> <Key ID="STR_ACE_Spectator_uiToggleInterface">
<English>Toggle Interface</English> <English>Toggle Interface</English>
</Key> </Key>
@ -166,6 +169,9 @@
<English>Toggle Help</English> <English>Toggle Help</English>
</Key> </Key>
<Key ID="STR_ACE_Spectator_otherControls">
<English>Other Controls</English>
</Key>
<Key ID="STR_ACE_Spectator_nextCam"> <Key ID="STR_ACE_Spectator_nextCam">
<English>Next Camera</English> <English>Next Camera</English>
</Key> </Key>