2015-01-11 16:42:31 +00:00
|
|
|
// by commy2
|
2015-01-17 20:32:34 +00:00
|
|
|
#include "script_component.hpp"
|
2015-01-11 16:42:31 +00:00
|
|
|
|
2015-05-15 08:06:11 +00:00
|
|
|
PARAMS_1(_show);
|
2015-01-11 16:42:31 +00:00
|
|
|
|
|
|
|
disableSerialization;
|
2015-01-17 20:32:34 +00:00
|
|
|
|
|
|
|
private ["_control"];
|
|
|
|
_control = (uiNamespace getVariable ["ACE_dlgSoldier", displayNull]) displayCtrl 187;
|
2015-01-11 16:42:31 +00:00
|
|
|
|
|
|
|
if (isNull _control) exitWith {};
|
|
|
|
|
|
|
|
if (_show) then {
|
2015-05-15 13:41:41 +00:00
|
|
|
private "_config";
|
|
|
|
_config = configFile >> "RscInGameUI" >> "RscUnitInfoSoldier" >> "WeaponInfoControlsGroupLeft" >> "controls" >> "CA_ModeTexture";
|
2015-01-11 16:42:31 +00:00
|
|
|
|
2015-05-15 13:41:41 +00:00
|
|
|
_control ctrlSetPosition [getNumber (_config >> "x"), getNumber (_config >> "y"), getNumber (_config >> "w"), getNumber (_config >> "h")];
|
|
|
|
_control ctrlCommit 0;
|
2015-01-11 16:42:31 +00:00
|
|
|
} else {
|
2015-05-15 13:41:41 +00:00
|
|
|
_control ctrlSetPosition [0, 0, 0, 0];
|
|
|
|
_control ctrlCommit 0;
|
2015-01-11 16:42:31 +00:00
|
|
|
};
|