ACE3/TO_MERGE/cse/gui/radialmenu/fn_closeRadialSecondRing_gui.sqf
Thomas Kooi db6f30fcc9 Added cse_gui source
Does not include the Icon pack. When using the UI it may throw up some missing .paa file errors. Replacements will need to be found if we want to use those.
2015-01-12 23:23:51 +01:00

30 lines
942 B
Plaintext

/**
* fn_closeRadialSecondRing_gui.sqf
* @Descr: Closes the second ring from the radial menu
* @Author: Glowbal
*
* @Arguments: []
* @Return: void
* @PublicAPI: true
*/
private ["_numberOf","_target","_menuName","_entryToSwitchTo", "_entries"];
[ObjNull, []] call cse_fnc_setRadialSecondRing_GUI;
private ["_numberOf","_entries","_entryToSwitchTo","_target","_menuName"];
if (isnil "CSE_RADIAL_SUB_MENU_GUI") then {
CSE_RADIAL_SUB_MENU_GUI = [];
};
_numberOf = count CSE_RADIAL_SUB_MENU_GUI - 1;
if (_numberOf < 0) then {
_numberOf = 0;
};
if (count CSE_RADIAL_SUB_MENU_GUI == 0) exitwith {};
_entryToSwitchTo = CSE_RADIAL_SUB_MENU_GUI select _numberOf;
_target = _entryToSwitchTo select 0;
_menuName = _entryToSwitchTo select 1;
_entries = _entryToSwitchTo select 2;
[_target, _entries] call cse_fnc_setRadialMenuOptions_GUI;
[_menuName] call cse_fnc_setRadialMenuName_GUI;
[-1, false] call cse_fnc_setRadialOptionSelected_GUI;