From e4aee1da2c86ab8da63abe33329627e5c50efb9b Mon Sep 17 00:00:00 2001 From: SilentSpike Date: Fri, 24 Jul 2015 17:50:33 +0100 Subject: [PATCH] Add categories to help splash --- addons/spectator/functions/fnc_handleInterface.sqf | 11 ++++++++++- addons/spectator/stringtable.xml | 6 ++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/addons/spectator/functions/fnc_handleInterface.sqf b/addons/spectator/functions/fnc_handleInterface.sqf index d19ca8a06d..5730ee7dba 100644 --- a/addons/spectator/functions/fnc_handleInterface.sqf +++ b/addons/spectator/functions/fnc_handleInterface.sqf @@ -104,9 +104,17 @@ switch (toLower _mode) do { [FUNC(handleToolbar), 0, _display] call CBA_fnc_addPerFrameHandler; // 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 [ + [localize LSTRING(uiControls),""], [localize LSTRING(uiToggleHelp),"H"], [localize LSTRING(uiToggleMap),"M"], [localize LSTRING(uiToggleUnits),"1"], @@ -129,6 +137,7 @@ switch (toLower _mode) do { [localize LSTRING(freeCamNextVis),"N"], [localize LSTRING(freeCamPrevVis),"Ctrl + N"], + [localize LSTRING(otherControls)], [localize LSTRING(nextCam),"Up"], [localize LSTRING(prevCam),"Down"], [localize LSTRING(nextUnit),"Right"], diff --git a/addons/spectator/stringtable.xml b/addons/spectator/stringtable.xml index e7ab835557..3f0df59804 100644 --- a/addons/spectator/stringtable.xml +++ b/addons/spectator/stringtable.xml @@ -144,6 +144,9 @@ Previous Vision Mode + + Interface Controls + Toggle Interface @@ -166,6 +169,9 @@ Toggle Help + + Other Controls + Next Camera