ACE3/addons/microdagr/functions/fnc_appSettingsLBClick.sqf
PabstMirror 95d59a1b3a Headers
2015-03-11 02:06:07 -05:00

28 lines
592 B
Plaintext

/*
* Author: PabstMirror
* Handles double clicking on the setting listbox
*
* Arguments:
* 0: Setting List box (not used) <CONTROL>
* 1: Index <NUMBER>
*
* Return Value:
* Nothing
*
* Example:
* [settingList, 1] call ace_microdagr_fnc_appSettingsLBClick
*
* Public: No
*/
#include "script_component.hpp"
disableSerialization;
PARAMS_2(_control,_itemClicked);
switch (_itemClicked) do {
case (0): { GVAR(settingUseMils) = ! GVAR(settingUseMils)};
case (1): { GVAR(settingShowAllWaypointsOnMap) = ! GVAR(settingShowAllWaypointsOnMap)};
};
[] call FUNC(updateDisplay);