minor bugfixes
This commit is contained in:
parent
6da33b6c68
commit
673dc72b3b
@ -151,14 +151,12 @@ function Auras:Test(unit)
|
|||||||
self:AURA_FADE(unit,AURA_TYPE_DEBUFF)
|
self:AURA_FADE(unit,AURA_TYPE_DEBUFF)
|
||||||
self:AURA_GAIN(unit,AURA_TYPE_DEBUFF, 6770, spellName, icon, self.auras[spellName].duration, GetTime() + self.auras[spellName].duration)
|
self:AURA_GAIN(unit,AURA_TYPE_DEBUFF, 6770, spellName, icon, self.auras[spellName].duration, GetTime() + self.auras[spellName].duration)
|
||||||
elseif (unit == "arena3") then
|
elseif (unit == "arena3") then
|
||||||
spellName, _, icon = GetSpellInfo(17)
|
spellName, _, icon = GetSpellInfo(31224)
|
||||||
self:AURA_FADE(unit, AURA_TYPE_BUFF)
|
|
||||||
self:AURA_GAIN(unit,AURA_TYPE_BUFF, 17, spellName, icon, self.auras[spellName].duration, GetTime() + self.auras[spellName].duration)
|
|
||||||
self:AURA_FADE(unit,AURA_TYPE_DEBUFF)
|
|
||||||
spellName, _, icon = GetSpellInfo(6770)
|
|
||||||
self:AURA_FADE(unit, AURA_TYPE_BUFF)
|
self:AURA_FADE(unit, AURA_TYPE_BUFF)
|
||||||
|
self:AURA_GAIN(unit,AURA_TYPE_BUFF, 31224, spellName, icon, self.auras[spellName].duration, GetTime() + self.auras[spellName].duration)
|
||||||
|
spellName, _, icon = GetSpellInfo(18425)
|
||||||
self:AURA_FADE(unit, AURA_TYPE_DEBUFF)
|
self:AURA_FADE(unit, AURA_TYPE_DEBUFF)
|
||||||
self:AURA_GAIN(unit,AURA_TYPE_DEBUFF, 6770, spellName, icon, self.auras[spellName].duration, GetTime() + self.auras[spellName].duration)
|
self:AURA_GAIN(unit,AURA_TYPE_DEBUFF, 18425, spellName, icon, self.auras[spellName].duration, GetTime() + self.auras[spellName].duration)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -267,6 +265,13 @@ function Auras:GetOptions()
|
|||||||
step = 0.1,
|
step = 0.1,
|
||||||
order = 4,
|
order = 4,
|
||||||
}),
|
}),
|
||||||
|
}
|
||||||
|
},
|
||||||
|
font = {
|
||||||
|
type = "group",
|
||||||
|
name = L["Font"],
|
||||||
|
order = 2,
|
||||||
|
args = {
|
||||||
auraFont = Gladdy:option({
|
auraFont = Gladdy:option({
|
||||||
type = "select",
|
type = "select",
|
||||||
name = L["Font"],
|
name = L["Font"],
|
||||||
@ -291,12 +296,12 @@ function Auras:GetOptions()
|
|||||||
order = 7,
|
order = 7,
|
||||||
hasAlpha = true,
|
hasAlpha = true,
|
||||||
}),
|
}),
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
border = {
|
border = {
|
||||||
type = "group",
|
type = "group",
|
||||||
name = "Border",
|
name = "Border",
|
||||||
order = 2,
|
order = 3,
|
||||||
args = {
|
args = {
|
||||||
headerAuras = {
|
headerAuras = {
|
||||||
type = "header",
|
type = "header",
|
||||||
|
@ -203,6 +203,11 @@ function Classicon:GetOptions()
|
|||||||
name = L["Icon size"],
|
name = L["Icon size"],
|
||||||
order = 1,
|
order = 1,
|
||||||
args = {
|
args = {
|
||||||
|
header = {
|
||||||
|
type = "header",
|
||||||
|
name = L["Icon size"],
|
||||||
|
order = 1,
|
||||||
|
},
|
||||||
classIconSize = Gladdy:option({
|
classIconSize = Gladdy:option({
|
||||||
type = "range",
|
type = "range",
|
||||||
name = L["Icon size"],
|
name = L["Icon size"],
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
local string_gsub, floor, pairs = string.gsub, math.floor, pairs
|
local string_gsub, floor, pairs = string.gsub, math.floor, pairs
|
||||||
local CreateFrame = CreateFrame
|
local CreateFrame, SetPortraitTexture = CreateFrame, SetPortraitTexture
|
||||||
local UnitHealthMax, UnitHealth, UnitGUID = UnitHealthMax, UnitHealth, UnitGUID
|
local UnitHealthMax, UnitHealth, UnitGUID = UnitHealthMax, UnitHealth, UnitGUID
|
||||||
|
|
||||||
local Gladdy = LibStub("Gladdy")
|
local Gladdy = LibStub("Gladdy")
|
||||||
local L = Gladdy.L
|
local L = Gladdy.L
|
||||||
local Pets = Gladdy:NewModule("Pets", nil, {
|
local Pets = Gladdy:NewModule("Pets", nil, {
|
||||||
petEnabled = true,
|
petEnabled = true,
|
||||||
petWidth = 100,
|
petWidth = 128,
|
||||||
petHeight = 20,
|
petHeight = 20,
|
||||||
petPortraitEnabled = true,
|
petPortraitEnabled = true,
|
||||||
petPortraitBorderStyle = "Interface\\AddOns\\Gladdy\\Images\\Border_rounded_blp",
|
petPortraitBorderStyle = "Interface\\AddOns\\Gladdy\\Images\\Border_rounded_blp",
|
||||||
@ -21,8 +21,8 @@ local Pets = Gladdy:NewModule("Pets", nil, {
|
|||||||
petHealthBarFontColor = { r = 1, g = 1, b = 1, a = 1 },
|
petHealthBarFontColor = { r = 1, g = 1, b = 1, a = 1 },
|
||||||
petHealthBarFontSize = 12,
|
petHealthBarFontSize = 12,
|
||||||
petHealthPercentage = true,
|
petHealthPercentage = true,
|
||||||
petXOffset = 50,
|
petXOffset = 1,
|
||||||
petYOffset = 0,
|
petYOffset = -62,
|
||||||
})
|
})
|
||||||
|
|
||||||
function Pets:Initialize()
|
function Pets:Initialize()
|
||||||
@ -124,6 +124,7 @@ function Pets:Test(unitId)
|
|||||||
petFrame.healthBar.hp:SetMinMaxValues(0, 6200)
|
petFrame.healthBar.hp:SetMinMaxValues(0, 6200)
|
||||||
petFrame.healthBar.hp:SetValue(2000)
|
petFrame.healthBar.hp:SetValue(2000)
|
||||||
Pets:SetHealthText(petFrame.healthBar, 2000, 6200)
|
Pets:SetHealthText(petFrame.healthBar, 2000, 6200)
|
||||||
|
SetPortraitTexture(petFrame.healthBar.portrait, "player")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -374,7 +375,7 @@ function Pets:GetOptions()
|
|||||||
desc = L["Width of the bar"],
|
desc = L["Width of the bar"],
|
||||||
order = 4,
|
order = 4,
|
||||||
min = 10,
|
min = 10,
|
||||||
max = 100,
|
max = 300,
|
||||||
step = 1,
|
step = 1,
|
||||||
}),
|
}),
|
||||||
petHealthBarTexture = option({
|
petHealthBarTexture = option({
|
||||||
|
@ -451,7 +451,7 @@ function TotemPlates:GetOptions()
|
|||||||
args = {
|
args = {
|
||||||
header = {
|
header = {
|
||||||
type = "header",
|
type = "header",
|
||||||
name = L["Icon"],
|
name = L["Font"],
|
||||||
order = 1,
|
order = 1,
|
||||||
},
|
},
|
||||||
npTremorFont = Gladdy:option({
|
npTremorFont = Gladdy:option({
|
||||||
|
Loading…
Reference in New Issue
Block a user