diff options
| author | hybrid <hybrid@hybridlabs.pro> | 2026-06-11 19:38:09 +0300 |
|---|---|---|
| committer | hybrid <hybrid@hybridlabs.pro> | 2026-06-11 19:38:09 +0300 |
| commit | a3a91d4f45b22fd487ecbc954ad979be5d03efdd (patch) | |
| tree | a554ab159a347dcd6c00ca1c7c26c1ec3ac0a6bd /Client/Functions/Client_UIGearFillTemplateList.sqf | |
| download | a2wf_chernarus-a3a91d4f45b22fd487ecbc954ad979be5d03efdd.tar.gz a2wf_chernarus-a3a91d4f45b22fd487ecbc954ad979be5d03efdd.tar.bz2 a2wf_chernarus-a3a91d4f45b22fd487ecbc954ad979be5d03efdd.zip | |
Diffstat (limited to 'Client/Functions/Client_UIGearFillTemplateList.sqf')
| -rw-r--r-- | Client/Functions/Client_UIGearFillTemplateList.sqf | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/Client/Functions/Client_UIGearFillTemplateList.sqf b/Client/Functions/Client_UIGearFillTemplateList.sqf new file mode 100644 index 0000000..25dc6cc --- /dev/null +++ b/Client/Functions/Client_UIGearFillTemplateList.sqf @@ -0,0 +1,31 @@ +Private ['_add','_currentUpgrades','_filler','_i','_listBox','_listCosts','_listNames','_listPictures','_listUpgrades','_listAllowed','_u'];
+_listCosts = _this select 0;
+_listNames = _this select 1;
+_listPictures = _this select 2;
+_listUpgrades = _this select 3;
+_listAllowed = _this select 4;
+_filler = _this select 5;
+_listBox = _this select 6;
+_u = 0;
+_i = 0;
+
+_currentUpgrades = (sideJoinedText) Call GetSideUpgrades;
+
+{
+ if ((_listUpgrades select _u) <= (_currentUpgrades select 13)) then {
+ _add = true;
+ if (gearRestriction && !gearInRange) then {
+ if !(_listAllowed select _u) then {_add = false};
+ };
+ if (_add) then {
+ lnbAddRow [_listBox,['$'+str (_listCosts Select _u),_x]];
+ lnbSetPicture [_listBox,[_i,0],_listPictures select _u];
+ lnbSetData [_listBox,[_i,0],_filler];
+ lnbSetValue [_listBox,[_i,0],_u];
+ _i = _i + 1;
+ };
+ };
+ _u = _u + 1;
+} forEach _listNames;
+
+lnbSetCurSelRow [_listBox,0]
\ No newline at end of file |
