mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
742626ff1a
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
28 lines
588 B
Plaintext
28 lines
588 B
Plaintext
#include "..\script_component.hpp"
|
|
/*
|
|
* Author: PabstMirror
|
|
* Handles double clicking on the setting listbox
|
|
*
|
|
* Arguments:
|
|
* 0: Setting List box (not used) <CONTROL>
|
|
* 1: Index <NUMBER>
|
|
*
|
|
* Return Value:
|
|
* None
|
|
*
|
|
* Example:
|
|
* [settingList, 1] call ace_microdagr_fnc_appSettingsLBClick
|
|
*
|
|
* Public: No
|
|
*/
|
|
|
|
disableSerialization;
|
|
params ["", "_itemClicked"];
|
|
|
|
switch (_itemClicked) do {
|
|
case (0): { GVAR(settingUseMils) = ! GVAR(settingUseMils)};
|
|
case (1): { GVAR(settingShowAllWaypointsOnMap) = ! GVAR(settingShowAllWaypointsOnMap)};
|
|
};
|
|
|
|
[] call FUNC(updateDisplay);
|