Skip to content

Commit

Permalink
Add config keys for keystone tooltips
Browse files Browse the repository at this point in the history
  • Loading branch information
Ghostopheles committed Jun 22, 2024
1 parent 4519cdc commit 2d6c35d
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
6 changes: 6 additions & 0 deletions Datamine/Localization/enUS.lua
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,12 @@ L["CONFIG_TOOLTIP_SHOW_ITEM_SPELL_NAME"] = "Show Item Spell";
L["CONFIG_TOOLTIP_SHOW_ITEM_SPELL_TOOLTIP"] = "Show item spell name and ID";
L["CONFIG_TOOLTIP_SHOW_ITEM_RELIC_BONUSES_NAME"] = "Show Relic Bonuses";
L["CONFIG_TOOLTIP_SHOW_ITEM_RELIC_BONUSES_TOOLTIP"] = "Show slotted relic bonuses";
L["CONFIG_TOOLTIP_SHOW_KEYSTONE_CM_ID_NAME"] = "Show Keystone Challenge Mode ID";
L["CONFIG_TOOLTIP_SHOW_KEYSTONE_CM_ID_TOOLTIP"] = "Show the challenge mode ID for keystone tooltips";
L["CONFIG_TOOLTIP_SHOW_KEYSTONE_LEVEL_NAME"] = "Show Keystone Level";
L["CONFIG_TOOLTIP_SHOW_KEYSTONE_LEVEL_TOOLTIP"] = "Show level for keystone tooltips";
L["CONFIG_TOOLTIP_SHOW_KEYSTONE_AFFIXES_NAME"] = "Show Keystone Affixes";
L["CONFIG_TOOLTIP_SHOW_KEYSTONE_AFFIXES_TOOLTIP"] = "Show affixes for keystone tooltips";

-- spell tooltips

Expand Down
14 changes: 13 additions & 1 deletion Datamine/Modules/Tooltips/Settings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,19 @@ local itemSettings = {
Name = "TooltipItemShowRelicBonuses",
LocKey = "ITEM_RELIC_BONUSES",
Default = false,
}
},
[11] = {
Name = "TooltipKeystoneShowChallengeModeID",
LocKey = "KEYSTONE_CM_ID",
},
[12] = {
Name = "TooltipKeystoneShowLevel",
LocKey = "KEYSTONE_LEVEL",
},
[13] = {
Name = "TooltipKeystoneShowAffixes",
LocKey = "KEYSTONE_AFFIXES",
},
};

RegisterSettingsTable(itemSettings);
Expand Down
1 change: 0 additions & 1 deletion Datamine/Modules/Tooltips/Tooltips.lua
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,6 @@ function Tooltips.OnTooltipSetItem(tooltip)
end
end
else
-- TODO: make config entries for these
if Tooltips.ShouldShow("TooltipKeystoneShowChallengeModeID") then
Tooltips.Append("ChallengeModeID", item.ChallengeModeID);
end
Expand Down

0 comments on commit 2d6c35d

Please sign in to comment.