Skip to content

Commit e3fc779

Browse files
committed
Port ExpRep from NexEnhance.
1 parent 7f16a52 commit e3fc779

10 files changed

Lines changed: 937 additions & 597 deletions

File tree

KkthnxUI/Config/GUI/Categories/Misc.lua

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,16 @@ function B.CreateMiscCategory()
7272
-- Questing, Dialog & Objective Tracker
7373
local questingSection = GUI:AddSection(miscCategory, L["GUI.Section.QuestingDialog"])
7474
GUI:CreateSwitch(questingSection, "Misc.ExpRep", L["Display Exp/Rep Bar"], L["Misc.ExpRep Desc"])
75+
local expRested = GUI:CreateSwitch(questingSection, "Misc.ExpRepShowRested", L["Show Rested Overlay"], L["Misc.ExpRepShowRested Desc"])
76+
GUI:DependsOn(expRested, "Misc.ExpRep", true)
77+
local expFade = GUI:CreateSwitch(questingSection, "Misc.ExpRepFade", L["Fade Exp/Rep Bar"], L["Misc.ExpRepFade Desc"])
78+
GUI:DependsOn(expFade, "Misc.ExpRep", true)
79+
local expFadeOpacity = GUI:CreateSlider(questingSection, "Misc.ExpRepFadeOpacity", L["Faded Opacity"], 0, 100, 5, L["Misc.ExpRepFadeOpacity Desc"])
80+
GUI:DependsOn(expFadeOpacity, "Misc.ExpRepFade", true)
81+
local expFadeCombat = GUI:CreateSwitch(questingSection, "Misc.ExpRepFadeCombat", L["Show Exp/Rep in Combat"], L["Misc.ExpRepFadeCombat Desc"])
82+
GUI:DependsOn(expFadeCombat, "Misc.ExpRepFade", true)
83+
local expFadeTarget = GUI:CreateSwitch(questingSection, "Misc.ExpRepFadeTarget", L["Show Exp/Rep with Target"], L["Misc.ExpRepFadeTarget Desc"])
84+
GUI:DependsOn(expFadeTarget, "Misc.ExpRepFade", true)
7585
GUI:CreateSwitch(questingSection, "Misc.QuestTool", L["Quest Tips"], L["Misc.QuestTool Desc"])
7686
GUI:CreateSwitch(questingSection, "Misc.ShowWowHeadLinks", L["Show Wowhead Links Above Questlog Frame"], L["Misc.ShowWowHeadLinks Desc"])
7787
GUI:CreateSwitch(questingSection, "Misc.NoTalkingHead", L["Remove And Hide The TalkingHead Frame"], L["Misc.NoTalkingHead Desc"])

KkthnxUI/Config/Settings.lua

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,11 @@ C["Misc"] = {
359359
ColorPicker = false,
360360
EnhancedMail = false,
361361
ExpRep = true,
362+
ExpRepShowRested = true,
363+
ExpRepFade = false,
364+
ExpRepFadeOpacity = 0,
365+
ExpRepFadeCombat = true,
366+
ExpRepFadeTarget = false,
362367
GemEnchantInfo = false,
363368
MissingEnchant = false,
364369
HideBanner = false,

KkthnxUI/KkthnxUI.toc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
## Version: 10.7.1
77
## OptionalDeps: DevTool
88
## IconTexture: Interface\AddOns\KkthnxUI\Media\KkthnxUI_Spell_Icon
9-
## X-Support: TWW
9+
## X-Support: Midnight
1010
## SavedVariables: KkthnxUIDB
1111
## X-Curse-Project-ID: 95528
1212
## X-Wago-ID: lQNlqP6e

KkthnxUI/Locales/enUS.lua

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1330,6 +1330,14 @@ L["EasyMarking Key Modifier"] = "EasyMarking Key Modifier"
13301330
L["Max Camera Zoom Level"] = "Max Camera Zoom Level"
13311331
L["Mute Annoying Sounds"] = "Mute Annoying Sounds"
13321332
L["Display Exp/Rep Bar"] = "Display Exp/Rep Bar (Minimap)"
1333+
L["Show Rested Overlay"] = "Show Rested Overlay"
1334+
L["Fade Exp/Rep Bar"] = "Fade Exp/Rep Bar"
1335+
L["Faded Opacity"] = "Faded Opacity"
1336+
L["Show Exp/Rep in Combat"] = "Show Exp/Rep in Combat"
1337+
L["Show Exp/Rep with Target"] = "Show Exp/Rep with Target"
1338+
L["Housing Experience"] = "Housing Experience"
1339+
L["Endeavor Progress"] = "Endeavor Progress"
1340+
L["Send to party chat"] = "Send to party chat"
13331341
L["Quest Tips"] = "Quest Tips for World Quests"
13341342
L["Flask / Rune Check"] = "Flask / Rune Check"
13351343
L["Marker Bar Size"] = "Marker Bar Size"
@@ -1485,7 +1493,12 @@ L["Misc.AFKCamera Desc"] = "Enables automatic camera movement when you go AFK"
14851493
L["Misc.TradeTabs Desc"] = "Adds convenient tabs to the trade skill frame similar to the spellbook"
14861494
L["Misc.MuteSounds Desc"] = "Mutes specific annoying sound effects in the game"
14871495
L["Misc.EnhancedMail Desc"] = "Enhances the mailbox with features similar to the Postal addon"
1488-
L["Misc.ExpRep Desc"] = "Shows experience and reputation bars near the minimap"
1496+
L["Misc.ExpRep Desc"] = "Shows a single Exp/Rep bar under the minimap (XP, housing, reputation, honor, or Azerite)."
1497+
L["Misc.ExpRepShowRested Desc"] = "Show the rested-experience overlay while levelling."
1498+
L["Misc.ExpRepFade Desc"] = "Fade the bar out and reveal it on mouseover."
1499+
L["Misc.ExpRepFadeOpacity Desc"] = "Opacity of the bar when faded out (0 = fully hidden)."
1500+
L["Misc.ExpRepFadeCombat Desc"] = "Keep the bar fully visible while in combat."
1501+
L["Misc.ExpRepFadeTarget Desc"] = "Keep the bar fully visible while you have a target or focus."
14891502
L["Misc.QuestTool Desc"] = "Provides helpful tips and information for quests and world quests"
14901503
L["Misc.ShowWowHeadLinks Desc"] = "Displays helpful Wowhead links above the quest log frame"
14911504
L["Misc.NoTalkingHead Desc"] = "Completely removes the talking head frame from quest interactions"

KkthnxUI/Modules/Miscellaneous/Core.lua

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -181,18 +181,7 @@ function Module:UpdateAutoBubbles()
181181
enableAutoBubbles()
182182
end
183183

184-
function Module:UpdateExpRepBar()
185-
local bar = _G.KKUI_ExpRepBar
186-
if C["Misc"].ExpRep then
187-
if bar then
188-
bar:Show()
189-
else
190-
Module:CreateExpbar()
191-
end
192-
elseif bar then
193-
bar:Hide()
194-
end
195-
end
184+
-- UpdateExpRepBar lives in Elements/ExpRep.lua (enable, fade, rested refresh).
196185

197186
function Module:UpdateMuteSounds()
198187
if Module.updateMutedSounds then

0 commit comments

Comments
 (0)