2018-09-17 19:19:29 +00:00
|
|
|
#include "script_component.hpp"
|
2015-04-11 21:40:46 +00:00
|
|
|
/*
|
|
|
|
* Author: Ruthberg
|
|
|
|
* Updates all input fields based on the currently selected target
|
|
|
|
*
|
|
|
|
* Arguments:
|
2017-06-08 13:31:51 +00:00
|
|
|
* None
|
2015-04-11 21:40:46 +00:00
|
|
|
*
|
|
|
|
* Return Value:
|
2017-06-08 13:31:51 +00:00
|
|
|
* None
|
2015-04-11 21:40:46 +00:00
|
|
|
*
|
|
|
|
* Example:
|
|
|
|
* call ace_atragmx_fnc_update_target_selection
|
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
2015-04-06 13:51:59 +00:00
|
|
|
|
2015-04-21 13:01:23 +00:00
|
|
|
{((uiNamespace getVariable "ATragMX_Display") displayCtrl _x) ctrlEnable true} forEach [500, 501, 502, 503];
|
2015-04-06 13:51:59 +00:00
|
|
|
|
2015-04-16 17:52:20 +00:00
|
|
|
((uiNamespace getVariable "ATragMX_Display") displayCtrl 500 + GVAR(currentTarget)) ctrlEnable false;
|
2015-04-06 13:51:59 +00:00
|
|
|
|
2015-04-16 17:52:20 +00:00
|
|
|
ctrlSetFocus ((uiNamespace getVariable "ATragMX_Display") displayCtrl 3000);
|
2015-04-06 13:51:59 +00:00
|
|
|
|
2015-04-06 18:46:33 +00:00
|
|
|
[] call FUNC(update_unit_selection);
|