Skip to content

Commit

Permalink
Arsenal - Add Incomplete Loadout Tooltips (#10572)
Browse files Browse the repository at this point in the history
Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
  • Loading branch information
3 people authored Jan 4, 2025
1 parent c888760 commit 183a8d4
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
4 changes: 4 additions & 0 deletions addons/arsenal/functions/fnc_fillLoadoutsList.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,10 @@ if (GVAR(currentLoadoutsTab) != IDC_buttonSharedLoadouts) then {
} else {
if (_unavailableItemsList isNotEqualTo []) then {
_contentPanelCtrl lnbSetColor [[_newRow, 1], [1, 1, 1, 0.25]]; // Gray

if (GVAR(unavailableItemsTooltip)) then {
_contentPanelCtrl lnbSetTooltip [[_newRow, 0], format ["Missing Items: %1", _unavailableItemsList arrayIntersect _unavailableItemsList]];
};
};
};

Expand Down
8 changes: 8 additions & 0 deletions addons/arsenal/initSettings.inc.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@ private _category = LLSTRING(settingCategory);
[[0, 1, 2], [ELSTRING(common,Disabled), ELSTRING(common,Enabled), LSTRING(DLCRequirement)], 1]
] call CBA_fnc_addSetting;

[
QGVAR(unavailableItemsTooltip),
"CHECKBOX",
LLSTRING(unavailableItemsTooltip),
_category,
false
] call CBA_fnc_addSetting;

[
QGVAR(fontHeight),
"SLIDER",
Expand Down
3 changes: 3 additions & 0 deletions addons/arsenal/stringtable.xml
Original file line number Diff line number Diff line change
Expand Up @@ -958,6 +958,9 @@
<Chinesesimp>反转摄影机控制</Chinesesimp>
<Turkish>Kamera kontrollerini ters çevir</Turkish>
</Key>
<Key ID="STR_ACE_Arsenal_unavailableItemsTooltip">
<English>Unavailable Items Tooltip</English>
</Key>
<Key ID="STR_ACE_Arsenal_loadoutDeleted">
<English>The following loadout was deleted:</English>
<Czech>Tato sada vybavení byla smazána:</Czech>
Expand Down

0 comments on commit 183a8d4

Please sign in to comment.