From d113445fef05588b4a7d5ff6cafc762108cacbc8 Mon Sep 17 00:00:00 2001 From: Bjanski Date: Thu, 28 Jul 2016 10:57:16 +0200 Subject: [PATCH] Added ExAd_fnc_createCombo --- mpmissions/Exile.Altis/ExAdClient/XM8/CfgFunctions.cpp | 1 + .../ExAdClient/XM8/Functions/fn_createCombo.sqf | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 mpmissions/Exile.Altis/ExAdClient/XM8/Functions/fn_createCombo.sqf diff --git a/mpmissions/Exile.Altis/ExAdClient/XM8/CfgFunctions.cpp b/mpmissions/Exile.Altis/ExAdClient/XM8/CfgFunctions.cpp index 575ebbf..5c99c30 100644 --- a/mpmissions/Exile.Altis/ExAdClient/XM8/CfgFunctions.cpp +++ b/mpmissions/Exile.Altis/ExAdClient/XM8/CfgFunctions.cpp @@ -23,6 +23,7 @@ file = "ExAdClient\XM8\Functions"; class createBackgroundGUI {}; class createButton {}; class createCheckBox {}; + class createCombo {}; class createCtrlGrp {}; class createEdit {}; class createExtraApps {}; diff --git a/mpmissions/Exile.Altis/ExAdClient/XM8/Functions/fn_createCombo.sqf b/mpmissions/Exile.Altis/ExAdClient/XM8/Functions/fn_createCombo.sqf new file mode 100644 index 0000000..cdc6e4b --- /dev/null +++ b/mpmissions/Exile.Altis/ExAdClient/XM8/Functions/fn_createCombo.sqf @@ -0,0 +1,9 @@ +params ["_display","_parent","_idc","_position","_actionOnSelChanged","_tooltip","_ctrl"]; + +_ctrl = _display ctrlCreate ["RscCombo",_idc,_parent]; +_ctrl ctrlSetPosition _position; +_ctrl ctrlSetEventHandler ["LBSelChanged",_actionOnSelChanged]; +_ctrl ctrlSetTooltip _tooltip; +_ctrl ctrlCommit 0; + +_ctrl \ No newline at end of file