ACE3/TO_MERGE/cse/gui/functions/fn_gui_hideSubMenuButtons.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

32 lines
937 B
Plaintext

/**
* fn_gui_hideSubMenuButtons.sqf
* @Descr: N/A
* @Author: Glowbal
*
* @Arguments: []
* @Return:
* @PublicAPI: false
*/
private ["_allAvailableMainButtons","_selectedMainMenuButton","_interactionDialog","_position","_placeEntry"];
disableSerialization;
_interactionDialog = uiNamespace getvariable "cse_interactionGUI";
_allAvailableMainButtons = 20;
_selectedMainMenuButton = 201;
_position = [100,100];
(_interactionDialog displayCtrl 112) ctrlSetPosition [_position select 0,(_position select 1) - 0.045];
(_interactionDialog displayCtrl 112) ctrlCommit 0;
for [{_x=0},{_x < _allAvailableMainButtons},{_x=_x+1}] do
{
private ["_entry"];
_entry = (_interactionDialog displayCtrl _selectedMainMenuButton);
_entry ctrlSetPosition _position;
_entry ctrlRemoveAllEventHandlers "ButtonClick";
_entry ctrlCommit 0;
_selectedMainMenuButton = _selectedMainMenuButton +1;
};
call cse_fnc_gui_hideSubSubMenuButtons;