2015-04-11 21:40:46 +00:00
|
|
|
/*
|
|
|
|
* Author: Ruthberg
|
|
|
|
* Updates all input fields based on the currently selected unit
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* Nothing
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* Nothing
|
|
|
|
*
|
|
|
|
* Example:
|
|
|
|
* call ace_atragmx_fnc_update_unit_selection
|
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
2015-04-06 13:51:59 +00:00
|
|
|
#include "script_component.hpp"
|
|
|
|
|
|
|
|
#define _dsp (uiNamespace getVariable "ATragMX_Display")
|
|
|
|
|
|
|
|
(_dsp displayCtrl 600) ctrlEnable true;
|
|
|
|
(_dsp displayCtrl 601) ctrlEnable true;
|
|
|
|
(_dsp displayCtrl 602) ctrlEnable true;
|
|
|
|
|
2015-04-08 09:05:28 +00:00
|
|
|
(_dsp displayCtrl 600 + GVAR(currentUnit)) ctrlEnable false;
|
2015-04-06 13:51:59 +00:00
|
|
|
|
2015-04-06 18:46:33 +00:00
|
|
|
[] call FUNC(update_gun);
|
|
|
|
[] call FUNC(update_atmosphere);
|
|
|
|
[] call FUNC(update_target);
|
|
|
|
[] call FUNC(update_result);
|