ACE3/addons/atragmx/functions/fnc_update_target_selection.sqf

28 lines
801 B
Plaintext
Raw Normal View History

/*
* Author: Ruthberg
* Updates all input fields based on the currently selected target
*
* Arguments:
* Nothing
*
* Return Value:
* Nothing
*
* Example:
* call ace_atragmx_fnc_update_target_selection
*
* Public: No
*/
#include "script_component.hpp"
2015-04-16 17:52:20 +00:00
((uiNamespace getVariable "ATragMX_Display") displayCtrl 500) ctrlEnable true;
((uiNamespace getVariable "ATragMX_Display") displayCtrl 501) ctrlEnable true;
((uiNamespace getVariable "ATragMX_Display") displayCtrl 502) ctrlEnable true;
((uiNamespace getVariable "ATragMX_Display") displayCtrl 503) ctrlEnable true;
2015-04-16 17:52:20 +00:00
((uiNamespace getVariable "ATragMX_Display") displayCtrl 500 + GVAR(currentTarget)) ctrlEnable false;
2015-04-16 17:52:20 +00:00
ctrlSetFocus ((uiNamespace getVariable "ATragMX_Display") displayCtrl 3000);
[] call FUNC(update_unit_selection);