2018-09-17 19:19:29 +00:00
|
|
|
#include "script_component.hpp"
|
2016-11-02 12:56:59 +00:00
|
|
|
/*
|
|
|
|
* Author: Ruthberg
|
|
|
|
* Updates the truing drop input method
|
|
|
|
*
|
|
|
|
* Arguments:
|
2017-06-08 13:31:51 +00:00
|
|
|
* None
|
2016-11-02 12:56:59 +00:00
|
|
|
*
|
|
|
|
* Return Value:
|
2017-06-08 13:31:51 +00:00
|
|
|
* None
|
2016-11-02 12:56:59 +00:00
|
|
|
*
|
|
|
|
* Example:
|
|
|
|
* call ace_atragmx_fnc_update_truing_drop_selection
|
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
|
|
|
|
#define __dsp (uiNamespace getVariable "ATragMX_Display")
|
|
|
|
|
|
|
|
(__dsp displayCtrl 18009) ctrlEnable true;
|
|
|
|
(__dsp displayCtrl 18010) ctrlEnable true;
|
|
|
|
|
|
|
|
if (GVAR(truingDropMode) == 0) then {
|
|
|
|
(__dsp displayCtrl 18009) ctrlEnable false;
|
|
|
|
{
|
|
|
|
(__dsp displayCtrl _x) ctrlEnable true;
|
|
|
|
} forEach [18011, 18013, 18016];
|
|
|
|
{
|
|
|
|
(__dsp displayCtrl _x) ctrlEnable false;
|
|
|
|
} forEach [18012, 18014, 18017];
|
|
|
|
ctrlSetFocus (__dsp displayCtrl 18011);
|
|
|
|
} else {
|
|
|
|
(__dsp displayCtrl 18010) ctrlEnable false;
|
|
|
|
{
|
|
|
|
(__dsp displayCtrl _x) ctrlEnable true;
|
|
|
|
} forEach [18012, 18014, 18017];
|
|
|
|
{
|
|
|
|
(__dsp displayCtrl _x) ctrlEnable false;
|
|
|
|
} forEach [18011, 18013, 18016];
|
|
|
|
ctrlSetFocus (__dsp displayCtrl 18012);
|
|
|
|
};
|
|
|
|
|
|
|
|
[] call FUNC(update_truing_drop_data);
|