Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arsenal - Add Incomplete Loadout Tooltips #10572

Merged
merged 5 commits into from
Jan 4, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions addons/arsenal/functions/fnc_fillLoadoutsList.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,11 @@ 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 {
LinkIsGrim marked this conversation as resolved.
Show resolved Hide resolved
private _unavailableItemsUnique = [];
{_unavailableItemsUnique pushBackUnique _x} forEach _unavailableItemsList;
SpicyBagpipes marked this conversation as resolved.
Show resolved Hide resolved
_contentPanelCtrl lnbSetTooltip [[_newRow, 1],(format ["Missing Items: %1",_unavailableItemsUnique])];
};
};
};

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 @@ -952,6 +952,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
Loading