Indentation

This commit is contained in:
Glowbal 2015-03-06 19:57:45 +01:00
parent 8687f8d073
commit fd44f7bca6
2 changed files with 19 additions and 19 deletions

View File

@ -17,18 +17,18 @@ private ["_newColor", "_settingIndex"];
_settingIndex = lbCurSel 200; _settingIndex = lbCurSel 200;
switch (GVAR(optionMenu_openTab)) do { switch (GVAR(optionMenu_openTab)) do {
case (MENU_TAB_COLORS): { case (MENU_TAB_COLORS): {
_newColor = []; _newColor = [];
{ {
_newColor pushBack ((sliderPosition _x) / 255); _newColor pushBack ((sliderPosition _x) / 255);
} forEach [410, 411, 412, 413]; } forEach [410, 411, 412, 413];
if ((_settingIndex >= 0) && (_settingIndex < (count GVAR(clientSideColors)))) then { if ((_settingIndex >= 0) && (_settingIndex < (count GVAR(clientSideColors)))) then {
_settingIndex = (GVAR(clientSideColors) select _settingIndex) select 0; _settingIndex = (GVAR(clientSideColors) select _settingIndex) select 0;
[MENU_TAB_COLORS, _settingIndex, _newColor] call FUNC(updateSetting); [MENU_TAB_COLORS, _settingIndex, _newColor] call FUNC(updateSetting);
}; };
[false] call FUNC(settingsMenuUpdateList); [false] call FUNC(settingsMenuUpdateList);
}; };
default {}; default {};
}; };

View File

@ -15,19 +15,19 @@
private ["_name", "_default", "_lastSelected"]; private ["_name", "_default", "_lastSelected"];
{ {
_name = _x select 0; _name = _x select 0;
_default = _x select 7; _default = _x select 7;
[MENU_TAB_OPTIONS, _name, _default] call FUNC(updateSetting); [MENU_TAB_OPTIONS, _name, _default] call FUNC(updateSetting);
} forEach GVAR(clientSideOptions); } forEach GVAR(clientSideOptions);
{ {
_name = _x select 0; _name = _x select 0;
_default = _x select 7; _default = _x select 7;
[MENU_TAB_COLORS, _name, _default] call FUNC(updateSetting); [MENU_TAB_COLORS, _name, _default] call FUNC(updateSetting);
} forEach GVAR(clientSideColors); } forEach GVAR(clientSideColors);
_lastSelected = lbCurSel 200; _lastSelected = lbCurSel 200;
[GVAR(optionMenu_openTab)] call FUNC(onListBoxShowSelectionChanged); [GVAR(optionMenu_openTab)] call FUNC(onListBoxShowSelectionChanged);
if (_lastSelected != -1) then { if (_lastSelected != -1) then {
lbSetCurSel [200, _lastSelected]; lbSetCurSel [200, _lastSelected];
}; };