mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
45 lines
1.1 KiB
Plaintext
45 lines
1.1 KiB
Plaintext
/**
|
|
* fnc_settingsMenuUpdateList.sqf
|
|
* @Descr: N/A
|
|
* @Author: Glowbal
|
|
*
|
|
* @Arguments: []
|
|
* @Return:
|
|
* @PublicAPI: false
|
|
*/
|
|
#include "script_component.hpp"
|
|
|
|
private ["_settingsMenu","_ctrlList","_collection","_keyBindingText","_keybinding", "_updateKeyView"];
|
|
disableSerialization;
|
|
|
|
_updateKeyView = [_this, 0, true, [true]] call BIS_fnc_Param;
|
|
|
|
_settingsMenu = uiNamespace getVariable 'ACE_settingsMenu';
|
|
_ctrlList = _settingsMenu displayCtrl 200;
|
|
lbclear _ctrlList;
|
|
|
|
switch (GVAR(optionMenu_openTab)) do {
|
|
case (MENU_TAB_OPTIONS): {
|
|
{
|
|
_settingsText = ((_x select 3) select (_x select 4));
|
|
_ctrlList lbadd (_x select 1);
|
|
_ctrlList lbadd (_settingsText);
|
|
}foreach GVAR(clientSideOptions);
|
|
};
|
|
case (MENU_TAB_COLORS): {
|
|
{
|
|
_color = +(_x select 3);
|
|
{
|
|
_color set [_forEachIndex, ((round (_x * 100))/100)];
|
|
} forEach _color;
|
|
|
|
_settingsColor = str _color;
|
|
_ctrlList lbadd (_x select 1);
|
|
_ctrlList lbadd (_settingsColor);
|
|
_ctrlList lnbSetColor [[_forEachIndex, 1], (_x select 3)];
|
|
}foreach GVAR(clientSideColors);
|
|
};
|
|
};
|
|
if (_updateKeyView) then {
|
|
[] call FUNC(settingsMenuUpdateKeyView);
|
|
}; |