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:SetOrientation(self.db.experience.orientation)
|
||||||
self.expBar.questBar:SetRotatesTexture(self.db.experience.orientation ~= "HORIZONTAL")
|
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)
|
self.expBar.questBar:SetStatusBarColor(color.r, color.g, color.b, color.a)
|
||||||
|
|
||||||
if self.expBar.bubbles then
|
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")
|
E:CreateMover(self.expBar, "ExperienceBarMover", L["Experience Bar"], nil, nil, nil, nil, nil, "databars,experience")
|
||||||
self:ExperienceBar_Toggle()
|
self:ExperienceBar_Toggle()
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -123,7 +123,14 @@ P.databars = {
|
|||||||
orientation = "VERTICAL",
|
orientation = "VERTICAL",
|
||||||
hideAtMaxLevel = true,
|
hideAtMaxLevel = true,
|
||||||
hideInVehicle = false,
|
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 = {
|
reputation = {
|
||||||
enable = false,
|
enable = false,
|
||||||
@@ -136,7 +143,8 @@ P.databars = {
|
|||||||
mouseover = false,
|
mouseover = false,
|
||||||
orientation = "VERTICAL",
|
orientation = "VERTICAL",
|
||||||
hideInVehicle = false,
|
hideInVehicle = false,
|
||||||
hideInCombat = false
|
hideInCombat = false,
|
||||||
|
showBubbles = false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -151,7 +151,7 @@ E.Options.args.databars = {
|
|||||||
name = L["Quest XP Color"],
|
name = L["Quest XP Color"],
|
||||||
hasAlpha = true,
|
hasAlpha = true,
|
||||||
get = function(info)
|
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
|
return t.r, t.g, t.b, t.a, 0, 1, 0, 0.4
|
||||||
end,
|
end,
|
||||||
set = function(info, r, g, b, a)
|
set = function(info, r, g, b, a)
|
||||||
@@ -293,4 +293,4 @@ E.Options.args.databars = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user