diff options
| author | hybrid <hybrid@hybridlabs.pro> | 2026-06-11 19:53:22 +0300 |
|---|---|---|
| committer | hybrid <hybrid@hybridlabs.pro> | 2026-06-11 19:53:22 +0300 |
| commit | c055d44dcdb87e8db49fb23e632fc086aa44cce6 (patch) | |
| tree | 7ac98d865915930bebc86b36b512a859c31538e5 /Client/Functions/Client_UIChangeComboBuyUnits.sqf | |
| download | a2wf_zargabad-c055d44dcdb87e8db49fb23e632fc086aa44cce6.tar.gz a2wf_zargabad-c055d44dcdb87e8db49fb23e632fc086aa44cce6.tar.bz2 a2wf_zargabad-c055d44dcdb87e8db49fb23e632fc086aa44cce6.zip | |
init
Diffstat (limited to 'Client/Functions/Client_UIChangeComboBuyUnits.sqf')
| -rw-r--r-- | Client/Functions/Client_UIChangeComboBuyUnits.sqf | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Client/Functions/Client_UIChangeComboBuyUnits.sqf b/Client/Functions/Client_UIChangeComboBuyUnits.sqf new file mode 100644 index 0000000..6867d89 --- /dev/null +++ b/Client/Functions/Client_UIChangeComboBuyUnits.sqf @@ -0,0 +1,15 @@ +Private['_get','_lb','_type'];
+_lb = _this select 0;
+_type = _this select 1;
+
+lbClear _lb;
+{
+ lbAdd [_lb,_x];
+} forEach (Format["WFBE_%1%2FACTIONS",sideJoinedText,_type] Call GetNamespace);
+
+_get = Format["WFBE_%1%2CURRENTFACTIONSELECTED",sideJoinedText,_type] Call GetNamespace;
+if (isNil '_get') then {
+ lbSetCurSel [_lb,0];
+} else {
+ lbSetCurSel [_lb,_get];
+};
\ No newline at end of file |
