mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
34 lines
684 B
Plaintext
34 lines
684 B
Plaintext
/*
|
|
* Author: Glowbal
|
|
* Sets all client side settings back to default.
|
|
*
|
|
* Arguments:
|
|
*
|
|
* Return Value:
|
|
* NONE
|
|
*
|
|
* Public: No
|
|
*/
|
|
|
|
#include "script_component.hpp"
|
|
|
|
private ["_name", "_default", "_lastSelected"];
|
|
|
|
{
|
|
_name = _x select 0;
|
|
_default = _x select 7;
|
|
[MENU_TAB_OPTIONS, _name, _default] call FUNC(updateSetting);
|
|
} forEach GVAR(clientSideOptions);
|
|
|
|
{
|
|
_name = _x select 0;
|
|
_default = _x select 7;
|
|
[MENU_TAB_COLORS, _name, _default] call FUNC(updateSetting);
|
|
} forEach GVAR(clientSideColors);
|
|
|
|
_lastSelected = lbCurSel 200;
|
|
[GVAR(optionMenu_openTab)] call FUNC(onListBoxShowSelectionChanged);
|
|
if (_lastSelected != -1) then {
|
|
lbSetCurSel [200, _lastSelected];
|
|
};
|