diff --git a/ElvUI/Modules/DataBars/Experience.lua b/ElvUI/Modules/DataBars/Experience.lua index 211989e..4162a1b 100644 --- a/ElvUI/Modules/DataBars/Experience.lua +++ b/ElvUI/Modules/DataBars/Experience.lua @@ -180,7 +180,7 @@ function mod:ExperienceBar_UpdateDimensions() self.expBar.questBar:SetOrientation(self.db.experience.orientation) self.expBar.questBar:SetRotatesTexture(self.db.experience.orientation ~= "HORIZONTAL") - local color = self.db.experience.questXP.color or {r=0,g=1,b=0,a=0.4} + local color = self.db.experience.questXP.color self.expBar.questBar:SetStatusBarColor(color.r, color.g, color.b, color.a) if self.expBar.bubbles then @@ -329,4 +329,4 @@ function mod:ExperienceBar_Load() E:CreateMover(self.expBar, "ExperienceBarMover", L["Experience Bar"], nil, nil, nil, nil, nil, "databars,experience") self:ExperienceBar_Toggle() -end \ No newline at end of file +end diff --git a/ElvUI/Settings/Profile.lua b/ElvUI/Settings/Profile.lua index 417821f..36640a9 100644 --- a/ElvUI/Settings/Profile.lua +++ b/ElvUI/Settings/Profile.lua @@ -123,7 +123,14 @@ P.databars = { orientation = "VERTICAL", hideAtMaxLevel = true, hideInVehicle = false, - hideInCombat = false + hideInCombat = false, + showBubbles = false, + questXP = { + color = {r = 0, g = 1, b = 0, a = 0.4}, + tooltip = true, + questCurrentZoneOnly = false, + questCompletedOnly = false + } }, reputation = { enable = false, @@ -136,7 +143,8 @@ P.databars = { mouseover = false, orientation = "VERTICAL", hideInVehicle = false, - hideInCombat = false + hideInCombat = false, + showBubbles = false } } diff --git a/ElvUI_OptionsUI/DataBars.lua b/ElvUI_OptionsUI/DataBars.lua index a794f35..71135fb 100644 --- a/ElvUI_OptionsUI/DataBars.lua +++ b/ElvUI_OptionsUI/DataBars.lua @@ -151,7 +151,7 @@ E.Options.args.databars = { name = L["Quest XP Color"], hasAlpha = true, get = function(info) - local t = mod.db.experience.questXP.color or {r=0,g=1,b=0,a=0.4} + local t = mod.db.experience.questXP.color return t.r, t.g, t.b, t.a, 0, 1, 0, 0.4 end, set = function(info, r, g, b, a) @@ -293,4 +293,4 @@ E.Options.args.databars = { } } } -} \ No newline at end of file +}