ACE3/addons/microdagr/functions/fnc_appSettingsLBClick.sqf

28 lines
592 B
Plaintext
Raw Normal View History

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