mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
4f08d0d006
Conflicts: addons/optionsmenu/functions/fnc_onListBoxSettingsChanged.sqf addons/optionsmenu/functions/fnc_onListBoxShowSelectionChanged.sqf addons/optionsmenu/functions/fnc_onSettingsMenuOpen.sqf addons/optionsmenu/functions/fnc_onSliderPosChanged.sqf addons/optionsmenu/functions/fnc_resetSettings.sqf addons/optionsmenu/functions/fnc_settingsMenuUpdateKeyView.sqf addons/optionsmenu/functions/fnc_settingsMenuUpdateList.sqf addons/optionsmenu/functions/fnc_updateSetting.sqf addons/optionsmenu/gui/settingsMenu.hpp
63 lines
1.9 KiB
Plaintext
63 lines
1.9 KiB
Plaintext
/*
|
|
* Author: Glowbal
|
|
* Changes which tab is open (options or colors)
|
|
*
|
|
* Arguments:
|
|
* The tab to open (defined in script_component) <NUMBER>
|
|
*
|
|
* Return Value:
|
|
* None
|
|
*
|
|
* Example:
|
|
* [MENU_TAB_COLORS] call ACE_optionsmenu_fnc_onListBoxShowSelectionChanged
|
|
*
|
|
* Public: No
|
|
*/
|
|
|
|
#include "script_component.hpp"
|
|
|
|
private ["_settingsMenu", "_localizedHeader"];
|
|
|
|
PARAMS_1(_openTab);
|
|
GVAR(optionMenu_openTab) = _openTab;
|
|
|
|
disableSerialization;
|
|
_settingsMenu = uiNamespace getVariable 'ACE_settingsMenu';
|
|
|
|
switch (GVAR(optionMenu_openTab)) do {
|
|
case (MENU_TAB_OPTIONS): {
|
|
_localizedHeader = format ["%1: %2", (localize "STR_ACE_OptionsMenu_OpenConfigMenu"), (localize "STR_ACE_OptionsMenu_TabOptions")];
|
|
ctrlSetText [13, _localizedHeader];
|
|
lbClear 400;
|
|
|
|
(_settingsMenu displayCtrl 301) ctrlShow true;
|
|
|
|
(_settingsMenu displayCtrl 400) ctrlShow true;
|
|
(_settingsMenu displayCtrl 410) ctrlShow false;
|
|
(_settingsMenu displayCtrl 411) ctrlShow false;
|
|
(_settingsMenu displayCtrl 412) ctrlShow false;
|
|
(_settingsMenu displayCtrl 413) ctrlShow false;
|
|
};
|
|
case (MENU_TAB_COLORS): {
|
|
_localizedHeader = format ["%1: %2", (localize "STR_ACE_OptionsMenu_OpenConfigMenu"), (localize "STR_ACE_OptionsMenu_TabColors")];
|
|
ctrlSetText [13, _localizedHeader];
|
|
|
|
lbClear 400;
|
|
|
|
(_settingsMenu displayCtrl 301) ctrlShow false;
|
|
|
|
(_settingsMenu displayCtrl 400) ctrlShow false;
|
|
(_settingsMenu displayCtrl 410) ctrlShow true;
|
|
(_settingsMenu displayCtrl 411) ctrlShow true;
|
|
(_settingsMenu displayCtrl 412) ctrlShow true;
|
|
(_settingsMenu displayCtrl 413) ctrlShow true;
|
|
|
|
(_settingsMenu displayCtrl 410) sliderSetRange [0, 255];
|
|
(_settingsMenu displayCtrl 411) sliderSetRange [0, 255];
|
|
(_settingsMenu displayCtrl 412) sliderSetRange [0, 255];
|
|
(_settingsMenu displayCtrl 413) sliderSetRange [0, 255];
|
|
};
|
|
};
|
|
|
|
[true] call FUNC(settingsMenuUpdateList);
|