mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
17 lines
648 B
Plaintext
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), ""];
|
||
|
};
|