Quest xp on experience bar (#18)

* Add files via upload

* Add files via upload

* Add files via upload

* remove bandaide

* remove bandaide

Co-authored-by: Andrew <16847730+andrew6180@users.noreply.github.com>
This commit is contained in:
Anthony Narkevicius
2022-12-14 10:19:01 -08:00
committed by GitHub
parent 6313d7afbe
commit 2ce172c98c
3 changed files with 14 additions and 6 deletions
+1 -1
View File
@@ -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
+10 -2
View File
@@ -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
}
}
+1 -1
View File
@@ -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)