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:
committed by
GitHub
parent
6313d7afbe
commit
2ce172c98c
@@ -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
|
||||
end
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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 = {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user