ACE3/TO_MERGE/cse/gui/radialmenu/fn_setRadialMenuName_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

24 lines
634 B
Plaintext

/**
* fn_setRadialMenuName_gui.sqf
* @Descr: N/A
* @Author: Glowbal
*
* @Arguments: []
* @Return:
* @PublicAPI: false
*/
private ["_menuName", "_buttonName", "_display", "_countOf"];
_menuName = [_this, 0, "Main Menu",[""]] call BIS_fnc_Param;
ctrlSetText [1, _menuName];
if (count CSE_RADIAL_SUB_MENU_GUI > 1) then {
_countOf = (count CSE_RADIAL_SUB_MENU_GUI) - 2;
_buttonName = "Return to " + ((CSE_RADIAL_SUB_MENU_GUI select _countOf) select 1);
} else {
_buttonName = "Close Menu";
};
disableSerialization;
_display = uiNamespace getvariable "CSE_RADIAL_MENU";
(_display displayCtrl 2315) ctrlSetTooltip _buttonName;