mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
20 lines
608 B
Plaintext
20 lines
608 B
Plaintext
/**
|
|
* fnc_addClientSideOptions.sqf
|
|
* @Descr: N/A
|
|
* @Author: Glowbal
|
|
*
|
|
* @Arguments: []
|
|
* @Return:
|
|
* @PublicAPI: false
|
|
*/
|
|
#include "script_component.hpp"
|
|
|
|
private ["_currentValue"];
|
|
PARAMS_5(_name,_localizedName,_localizedDescription,_possibleValues,_defaultValue);
|
|
|
|
GVAR(clientSideOptions) pushBack [_name, _localizedName, _localizedDescription, _possibleValues, -1, _defaultValue];
|
|
|
|
//Get the current setting from profile (or default) and set it:
|
|
_currentValue = [MENU_TAB_OPTIONS, _name, _defaultValue] call FUNC(loadFromProfile);
|
|
[MENU_TAB_OPTIONS, _name, _currentValue] call FUNC(updateSetting);
|