From a3a91d4f45b22fd487ecbc954ad979be5d03efdd Mon Sep 17 00:00:00 2001 From: hybrid Date: Thu, 11 Jun 2026 19:38:09 +0300 Subject: init --- Client/Functions/Client_UIChangeComboBuyUnits.sqf | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Client/Functions/Client_UIChangeComboBuyUnits.sqf (limited to 'Client/Functions/Client_UIChangeComboBuyUnits.sqf') 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 -- cgit v1.3.1