mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
16 lines
668 B
Plaintext
16 lines
668 B
Plaintext
//fnc_selectKnownPoint.sqf
|
|
#include "script_component.hpp"
|
|
|
|
_knownPoints = GVAR(currentComputer) getVariable [QGVAR(knownPoints), []];
|
|
_index = lbCurSel (_this select 0);
|
|
_val = (lbValue [(_this select 0), _index]);
|
|
if(_val >= 0) then {
|
|
_data = _knownPoints select _val;
|
|
_knownPointName = ctrlSetText [(_this select 1), (_data select 0)];
|
|
_knownPointGrid = ctrlSetText [(_this select 2), (_data select 1)];
|
|
_knownPointAlt = ctrlSetText [(_this select 3), (_data select 2)];
|
|
} else {
|
|
_knownPointName = ctrlSetText [(_this select 1), ""];
|
|
_knownPointGrid = ctrlSetText [(_this select 2), ""];
|
|
_knownPointAlt = ctrlSetText [(_this select 3), ""];
|
|
}; |