2015-04-05 00:17:43 +00:00
|
|
|
/*
|
|
|
|
* Author: Glowbal
|
|
|
|
* Resets all server settings to default.
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* None
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* None
|
|
|
|
*
|
|
|
|
* Example:
|
|
|
|
* [] call ACE_optionsmenu_fnc_onListBoxSettingsChanged
|
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "script_component.hpp"
|
|
|
|
|
|
|
|
{
|
2017-10-10 14:39:59 +00:00
|
|
|
private _name = _x select 0;
|
|
|
|
private _default = _x select 7;
|
2015-04-05 00:17:43 +00:00
|
|
|
[MENU_TAB_SERVER_OPTIONS, _name, _default] call FUNC(updateSetting);
|
|
|
|
} forEach GVAR(serverSideOptions);
|
|
|
|
|
|
|
|
{
|
2017-10-10 14:39:59 +00:00
|
|
|
private _name = _x select 0;
|
|
|
|
private _default = _x select 7;
|
2015-04-05 00:17:43 +00:00
|
|
|
[MENU_TAB_SERVER_COLORS, _name, _default] call FUNC(updateSetting);
|
|
|
|
} forEach GVAR(serverSideColors);
|
|
|
|
|
|
|
|
{
|
2017-10-10 14:39:59 +00:00
|
|
|
private _name = _x select 0;
|
|
|
|
private _default = _x select 7;
|
2015-04-05 00:17:43 +00:00
|
|
|
[MENU_TAB_SERVER_VALUES, _name, _default] call FUNC(updateSetting);
|
|
|
|
} forEach GVAR(serverSideVakyes);
|
|
|
|
|
2017-10-10 14:39:59 +00:00
|
|
|
private _lastSelected = lnbCurSelRow 200;
|
2015-04-05 00:17:43 +00:00
|
|
|
[GVAR(optionMenu_openTab)] call FUNC(onserverListBoxShowSelectionChanged);
|
|
|
|
if (_lastSelected != -1) then {
|
|
|
|
lbSetCurSel [200, _lastSelected];
|
|
|
|
};
|