ACE3/addons/optionsmenu/functions/fnc_onServerCategorySelectChanged.sqf

27 lines
525 B
Plaintext
Raw Normal View History

/*
* Author: Glowbal
* Changes which category is selected
*
* Arguments:
* None
*
* Return Value:
* None
*
* Example:
* [] call ACE_optionsmenu_fnc_onCategorySelectChanged
*
* Public: No
*/
#include "script_component.hpp"
2015-08-08 11:41:25 +00:00
private ["_settingsMenu", "_ctrlComboBox"];
disableSerialization;
_settingsMenu = uiNamespace getVariable 'ACE_serverSettingsMenu';
2015-08-08 11:41:25 +00:00
_ctrlComboBox = (_settingsMenu displayCtrl 14);
GVAR(currentCategorySelection) = lbCurSel _ctrlComboBox;
2015-08-11 09:15:55 +00:00
[true] call FUNC(serverSettingsMenuUpdateList);