2015-03-06 17:15:32 +00:00
|
|
|
/*
|
|
|
|
* Author: Glowbal
|
2015-03-14 18:10:25 +00:00
|
|
|
* Resets all settings to default.
|
2015-03-06 17:15:32 +00:00
|
|
|
*
|
|
|
|
* Arguments:
|
2015-03-14 18:10:25 +00:00
|
|
|
* None
|
2015-03-06 17:15:32 +00:00
|
|
|
*
|
|
|
|
* Return Value:
|
2015-03-14 18:10:25 +00:00
|
|
|
* None
|
|
|
|
*
|
|
|
|
* Example:
|
|
|
|
* [] call ACE_optionsmenu_fnc_onListBoxSettingsChanged
|
2015-03-06 17:15:32 +00:00
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
|
2015-01-21 11:43:58 +00:00
|
|
|
#include "script_component.hpp"
|
|
|
|
|
2015-01-21 22:27:53 +00:00
|
|
|
private ["_name", "_default", "_lastSelected"];
|
2015-01-21 11:43:58 +00:00
|
|
|
|
2015-01-21 19:53:05 +00:00
|
|
|
{
|
2015-03-06 18:57:45 +00:00
|
|
|
_name = _x select 0;
|
|
|
|
_default = _x select 7;
|
|
|
|
[MENU_TAB_OPTIONS, _name, _default] call FUNC(updateSetting);
|
2015-01-21 22:27:53 +00:00
|
|
|
} forEach GVAR(clientSideOptions);
|
2015-01-21 11:43:58 +00:00
|
|
|
|
2015-01-21 19:53:05 +00:00
|
|
|
{
|
2015-03-06 18:57:45 +00:00
|
|
|
_name = _x select 0;
|
|
|
|
_default = _x select 7;
|
|
|
|
[MENU_TAB_COLORS, _name, _default] call FUNC(updateSetting);
|
2015-01-21 19:53:05 +00:00
|
|
|
} forEach GVAR(clientSideColors);
|
2015-01-21 11:43:58 +00:00
|
|
|
|
|
|
|
_lastSelected = lbCurSel 200;
|
|
|
|
[GVAR(optionMenu_openTab)] call FUNC(onListBoxShowSelectionChanged);
|
|
|
|
if (_lastSelected != -1) then {
|
2015-03-06 18:57:45 +00:00
|
|
|
lbSetCurSel [200, _lastSelected];
|
2015-01-21 11:43:58 +00:00
|
|
|
};
|