mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
32 lines
937 B
Plaintext
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;
|