ACE3/TO_MERGE/ace/arty_computers/gyk-37/fnc_selectObserver.sqf

17 lines
648 B
Plaintext

//fnc_selectObserver.sqf
#include "script_component.hpp"
_observers = GVAR(currentComputer) getVariable [QGVAR(observers), []];
_index = lbCurSel (_this select 0);
_val = lbValue [(_this select 0), _index];
if(_val >= 0) then {
_data = _observers select _val;
_observerName = ctrlSetText [(_this select 1), (_data select 0)];
_observerGrid = ctrlSetText [(_this select 2), (_data select 1)];
_observerAlt = ctrlSetText [(_this select 3), (_data select 2)];
} else {
_observerName = ctrlSetText [(_this select 1), ""];
_observerGrid = ctrlSetText [(_this select 2), ""];
_observerAlt = ctrlSetText [(_this select 3), ""];
};