1
0
mirror of https://github.com/acemod/ACE3.git synced 2024-08-30 18:23:18 +00:00

Pylons: Evaluate String Values from config ()

This commit is contained in:
Ozan Eğitmen 2017-10-24 19:22:02 +03:00 committed by jonpas
parent 914ea66b2f
commit e769d092af

@ -60,6 +60,7 @@ GVAR(comboBoxes) = [];
private _combo = _display ctrlCreate [QGVAR(CtrlCombo), -1];
private _picturePos = ctrlPosition (_display displayCtrl ID_PICTURE_AIRCRAFT);
private _uiPos = getArray (_x >> "UIposition");
MAP(_uiPos,if (_x isEqualType 0) then {_x} else {call compile _x}); // Handle string positions
_combo ctrlSetPosition [
(_picturePos select 0) + (_uiPos select 0),
(_picturePos select 1) + (_uiPos select 1),