Add custom combo box control (#5661)

This commit is contained in:
Ozan Eğitmen 2017-10-24 16:39:15 +03:00 committed by jonpas
parent 53b8649d85
commit b45a7e2413
2 changed files with 9 additions and 1 deletions

View File

@ -57,7 +57,7 @@ if (["ace_fastroping"] call EFUNC(common,isModLoaded) && {_hasFRIES > 1}) then {
GVAR(comboBoxes) = [];
{
private _combo = _display ctrlCreate ["ctrlCombo", -1];
private _combo = _display ctrlCreate [QGVAR(CtrlCombo), -1];
private _picturePos = ctrlPosition (_display displayCtrl ID_PICTURE_AIRCRAFT);
private _uiPos = getArray (_x >> "UIposition");
_combo ctrlSetPosition [

View File

@ -1,3 +1,11 @@
// combo box that looks good + doesn't get cut off
class RscCombo;
class GVAR(CtrlCombo): RscCombo {
arrowEmpty = "\a3\3DEN\Data\Controls\ctrlCombo\arrowEmpty_ca.paa";
arrowFull = "\a3\3DEN\Data\Controls\ctrlCombo\arrowFull_ca.paa";
colorSelectBackground[] = {"(profileNamespace getVariable ['GUI_BCG_RGB_R', 0.13])","(profileNamespace getVariable ['GUI_BCG_RGB_G', 0.54])","(profileNamespace getVariable ['GUI_BCG_RGB_B', 0.21])",1};
};
class IGUIBack;
class RscCheckBox;
class RscListBox;