ACE3/addons/atragmx/functions/fnc_update_unit_selection.sqf

32 lines
825 B
Plaintext
Raw Normal View History

/*
* 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
*/
#include "script_component.hpp"
2015-04-16 17:52:20 +00:00
((uiNamespace getVariable "ATragMX_Display") displayCtrl 600) ctrlEnable true;
((uiNamespace getVariable "ATragMX_Display") displayCtrl 601) ctrlEnable true;
((uiNamespace getVariable "ATragMX_Display") displayCtrl 602) ctrlEnable true;
2015-04-16 17:52:20 +00:00
((uiNamespace getVariable "ATragMX_Display") displayCtrl 600 + GVAR(currentUnit)) ctrlEnable false;
[] call FUNC(update_gun);
[] call FUNC(update_gun_ammo_data);
[] call FUNC(update_atmosphere);
[] call FUNC(update_atmo_env_data);
[] call FUNC(update_target);
[] call FUNC(update_target_data);
[] call FUNC(update_result);