From 2d6c35d3c78bf284c986696be1926125e807ebb4 Mon Sep 17 00:00:00 2001 From: Ghostopheles Date: Sat, 22 Jun 2024 11:07:35 -0500 Subject: [PATCH] Add config keys for keystone tooltips --- Datamine/Localization/enUS.lua | 6 ++++++ Datamine/Modules/Tooltips/Settings.lua | 14 +++++++++++++- Datamine/Modules/Tooltips/Tooltips.lua | 1 - 3 files changed, 19 insertions(+), 2 deletions(-) diff --git a/Datamine/Localization/enUS.lua b/Datamine/Localization/enUS.lua index 9e19be5..6b12cc5 100644 --- a/Datamine/Localization/enUS.lua +++ b/Datamine/Localization/enUS.lua @@ -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 diff --git a/Datamine/Modules/Tooltips/Settings.lua b/Datamine/Modules/Tooltips/Settings.lua index 260423a..f948e31 100644 --- a/Datamine/Modules/Tooltips/Settings.lua +++ b/Datamine/Modules/Tooltips/Settings.lua @@ -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); diff --git a/Datamine/Modules/Tooltips/Tooltips.lua b/Datamine/Modules/Tooltips/Tooltips.lua index 6d0306e..0a25eaa 100644 --- a/Datamine/Modules/Tooltips/Tooltips.lua +++ b/Datamine/Modules/Tooltips/Tooltips.lua @@ -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