2015-01-21 11:43:58 +00:00
|
|
|
/**
|
|
|
|
* fnc_addClientSideOptions.sqf
|
|
|
|
* @Descr: N/A
|
|
|
|
* @Author: Glowbal
|
|
|
|
*
|
|
|
|
* @Arguments: []
|
|
|
|
* @Return:
|
|
|
|
* @PublicAPI: false
|
|
|
|
*/
|
|
|
|
#include "script_component.hpp"
|
|
|
|
|
2015-01-21 22:27:53 +00:00
|
|
|
private ["_currentValue"];
|
2015-01-21 11:43:58 +00:00
|
|
|
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);
|