mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 22:51:53 -05:00
Bugfixes & improved RoundBar texture
This commit is contained in:
@ -74,6 +74,9 @@ function IceBarElement.prototype:GetOptions()
|
|||||||
self:Redraw()
|
self:Redraw()
|
||||||
end,
|
end,
|
||||||
validate = { "Left", "Right" },
|
validate = { "Left", "Right" },
|
||||||
|
disabled = function()
|
||||||
|
return not self.moduleSettings.enabled
|
||||||
|
end,
|
||||||
order = 30
|
order = 30
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -92,6 +95,9 @@ function IceBarElement.prototype:GetOptions()
|
|||||||
self.moduleSettings.offset = value
|
self.moduleSettings.offset = value
|
||||||
self:Redraw()
|
self:Redraw()
|
||||||
end,
|
end,
|
||||||
|
disabled = function()
|
||||||
|
return not self.moduleSettings.enabled
|
||||||
|
end,
|
||||||
order = 31
|
order = 31
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -101,6 +107,9 @@ function IceBarElement.prototype:GetOptions()
|
|||||||
name = '|c' .. self.configColor .. 'Text Settings|r',
|
name = '|c' .. self.configColor .. 'Text Settings|r',
|
||||||
desc = 'Settings related to texts',
|
desc = 'Settings related to texts',
|
||||||
order = 32,
|
order = 32,
|
||||||
|
disabled = function()
|
||||||
|
return not self.moduleSettings.enabled
|
||||||
|
end,
|
||||||
args = {
|
args = {
|
||||||
fontsize = {
|
fontsize = {
|
||||||
type = 'range',
|
type = 'range',
|
||||||
@ -368,8 +377,6 @@ function IceBarElement.prototype:SetScale(texture, scale)
|
|||||||
else
|
else
|
||||||
texture:SetTexCoord(0, 1, 1-scale, 1)
|
texture:SetTexCoord(0, 1, 1-scale, 1)
|
||||||
end
|
end
|
||||||
|
|
||||||
self.full = (scale == 1)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
@ -385,7 +392,7 @@ function IceBarElement.prototype:UpdateBar(scale, color, alpha)
|
|||||||
if (self.combat) then
|
if (self.combat) then
|
||||||
self.alpha = self.settings.alphaic
|
self.alpha = self.settings.alphaic
|
||||||
self.backgroundAlpha = self.settings.alphaicbg
|
self.backgroundAlpha = self.settings.alphaicbg
|
||||||
elseif (self.target or (scale < 1)) then
|
elseif (self.target or self:UseTargetAlpha(scale)) then
|
||||||
self.alpha = self.settings.alphaTarget
|
self.alpha = self.settings.alphaTarget
|
||||||
self.backgroundAlpha = self.settings.alphaTargetbg
|
self.backgroundAlpha = self.settings.alphaTargetbg
|
||||||
else
|
else
|
||||||
@ -400,6 +407,10 @@ function IceBarElement.prototype:UpdateBar(scale, color, alpha)
|
|||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
function IceBarElement.prototype:UseTargetAlpha(scale)
|
||||||
|
return (scale and (scale < 1))
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
-- Bottom line 1
|
-- Bottom line 1
|
||||||
function IceBarElement.prototype:SetBottomText1(text, color)
|
function IceBarElement.prototype:SetBottomText1(text, color)
|
||||||
|
@ -73,14 +73,13 @@ end
|
|||||||
function IceCore.prototype:Enable()
|
function IceCore.prototype:Enable()
|
||||||
self.settings = self.db.account
|
self.settings = self.db.account
|
||||||
|
|
||||||
IceElement.Alpha = self.settings.bar
|
|
||||||
self:DrawFrame()
|
self:DrawFrame()
|
||||||
|
|
||||||
for i = 1, table.getn(self.elements) do
|
for i = 1, table.getn(self.elements) do
|
||||||
self.elements[i]:SetDatabase(self.settings)
|
self.elements[i]:SetDatabase(self.settings)
|
||||||
self.elements[i]:Create(self.IceHUDFrame)
|
self.elements[i]:Create(self.IceHUDFrame)
|
||||||
if (self.elements[i]:IsEnabled()) then
|
if (self.elements[i]:IsEnabled()) then
|
||||||
self.elements[i]:Enable()
|
self.elements[i]:Enable(true)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -91,7 +90,7 @@ end
|
|||||||
function IceCore.prototype:Disable()
|
function IceCore.prototype:Disable()
|
||||||
for i = 1, table.getn(self.elements) do
|
for i = 1, table.getn(self.elements) do
|
||||||
if (self.elements[i]:IsEnabled()) then
|
if (self.elements[i]:IsEnabled()) then
|
||||||
self.elements[i]:Disable()
|
self.elements[i]:Disable(true)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -71,17 +71,24 @@ function IceElement.prototype:IsEnabled()
|
|||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
function IceElement.prototype:Enable()
|
function IceElement.prototype:Enable(core)
|
||||||
|
if (not core) then
|
||||||
|
self.moduleSettings.enabled = true
|
||||||
|
end
|
||||||
self.frame:Show()
|
self.frame:Show()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
function IceElement.prototype:Disable()
|
function IceElement.prototype:Disable(core)
|
||||||
|
if (not core) then
|
||||||
|
self.moduleSettings.enabled = false
|
||||||
|
end
|
||||||
self.frame:Hide()
|
self.frame:Hide()
|
||||||
self:UnregisterAllEvents()
|
self:UnregisterAllEvents()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
-- inherting classes should override this and provide
|
-- inherting classes should override this and provide
|
||||||
-- make sure they refresh any changes made to them
|
-- make sure they refresh any changes made to them
|
||||||
function IceElement.prototype:Redraw()
|
function IceElement.prototype:Redraw()
|
||||||
@ -104,7 +111,7 @@ function IceElement.prototype:GetOptions()
|
|||||||
set = function(value)
|
set = function(value)
|
||||||
self.moduleSettings.enabled = value
|
self.moduleSettings.enabled = value
|
||||||
if (value) then
|
if (value) then
|
||||||
self:Enable()
|
self:Enable(true)
|
||||||
else
|
else
|
||||||
self:Disable()
|
self:Disable()
|
||||||
end
|
end
|
||||||
@ -129,6 +136,9 @@ function IceElement.prototype:GetOptions()
|
|||||||
self.moduleSettings.scale = value
|
self.moduleSettings.scale = value
|
||||||
self:Redraw()
|
self:Redraw()
|
||||||
end,
|
end,
|
||||||
|
disabled = function()
|
||||||
|
return not self.moduleSettings.enabled
|
||||||
|
end,
|
||||||
order = 21
|
order = 21
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
## Interface: 11100
|
## Interface: 11200
|
||||||
## Author: Iceroth
|
## Author: Iceroth
|
||||||
## Name: IceHUD
|
## Name: IceHUD
|
||||||
## Title: IceHUD |cff7fff7f -Ace2-|r
|
## Title: IceHUD |cff7fff7f -Ace2-|r
|
||||||
|
@ -42,8 +42,8 @@ end
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
function CastBar.prototype:Enable()
|
function CastBar.prototype:Enable(core)
|
||||||
CastBar.super.prototype.Enable(self)
|
CastBar.super.prototype.Enable(self, core)
|
||||||
|
|
||||||
self:RegisterEvent("SPELLCAST_START", "CastStart")
|
self:RegisterEvent("SPELLCAST_START", "CastStart")
|
||||||
self:RegisterEvent("SPELLCAST_STOP", "CastStop")
|
self:RegisterEvent("SPELLCAST_STOP", "CastStop")
|
||||||
@ -63,8 +63,8 @@ function CastBar.prototype:Enable()
|
|||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
function CastBar.prototype:Disable()
|
function CastBar.prototype:Disable(core)
|
||||||
CastBar.super.prototype.Disable(self)
|
CastBar.super.prototype.Disable(self, core)
|
||||||
|
|
||||||
CastingBarFrame:RegisterEvent("SPELLCAST_START");
|
CastingBarFrame:RegisterEvent("SPELLCAST_START");
|
||||||
CastingBarFrame:RegisterEvent("SPELLCAST_STOP");
|
CastingBarFrame:RegisterEvent("SPELLCAST_STOP");
|
||||||
|
@ -35,6 +35,9 @@ function ComboPoints.prototype:GetOptions()
|
|||||||
min = -300,
|
min = -300,
|
||||||
max = 200,
|
max = 200,
|
||||||
step = 10,
|
step = 10,
|
||||||
|
disabled = function()
|
||||||
|
return not self.moduleSettings.enabled
|
||||||
|
end,
|
||||||
order = 31
|
order = 31
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -52,6 +55,9 @@ function ComboPoints.prototype:GetOptions()
|
|||||||
min = 10,
|
min = 10,
|
||||||
max = 40,
|
max = 40,
|
||||||
step = 1,
|
step = 1,
|
||||||
|
disabled = function()
|
||||||
|
return not self.moduleSettings.enabled
|
||||||
|
end,
|
||||||
order = 32
|
order = 32
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -67,6 +73,9 @@ function ComboPoints.prototype:GetOptions()
|
|||||||
self:Redraw()
|
self:Redraw()
|
||||||
end,
|
end,
|
||||||
validate = { "Numeric", "Graphical" },
|
validate = { "Numeric", "Graphical" },
|
||||||
|
disabled = function()
|
||||||
|
return not self.moduleSettings.enabled
|
||||||
|
end,
|
||||||
order = 33
|
order = 33
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -94,8 +103,8 @@ end
|
|||||||
|
|
||||||
|
|
||||||
-- OVERRIDE
|
-- OVERRIDE
|
||||||
function ComboPoints.prototype:Enable()
|
function ComboPoints.prototype:Enable(core)
|
||||||
ComboPoints.super.prototype.Enable(self)
|
ComboPoints.super.prototype.Enable(self, core)
|
||||||
|
|
||||||
self:RegisterEvent("PLAYER_TARGET_CHANGED", "UpdateComboPoints")
|
self:RegisterEvent("PLAYER_TARGET_CHANGED", "UpdateComboPoints")
|
||||||
self:RegisterEvent("PLAYER_COMBO_POINTS", "UpdateComboPoints")
|
self:RegisterEvent("PLAYER_COMBO_POINTS", "UpdateComboPoints")
|
||||||
@ -149,7 +158,7 @@ function ComboPoints.prototype:CreateComboFrame()
|
|||||||
self.frame.graphicalBG[i]:SetWidth(self.comboSize)
|
self.frame.graphicalBG[i]:SetWidth(self.comboSize)
|
||||||
self.frame.graphicalBG[i]:SetHeight(self.comboSize)
|
self.frame.graphicalBG[i]:SetHeight(self.comboSize)
|
||||||
self.frame.graphicalBG[i]:SetPoint("TOPLEFT", (i-1) * (self.comboSize-5) + (i-1), 0)
|
self.frame.graphicalBG[i]:SetPoint("TOPLEFT", (i-1) * (self.comboSize-5) + (i-1), 0)
|
||||||
self.frame.graphicalBG[i]:SetAlpha(0.3)
|
self.frame.graphicalBG[i]:SetAlpha(0.15)
|
||||||
self.frame.graphicalBG[i]:SetStatusBarColor(self:GetColor("combo"))
|
self.frame.graphicalBG[i]:SetStatusBarColor(self:GetColor("combo"))
|
||||||
|
|
||||||
self.frame.graphicalBG[i]:Hide()
|
self.frame.graphicalBG[i]:Hide()
|
||||||
@ -164,9 +173,7 @@ function ComboPoints.prototype:CreateComboFrame()
|
|||||||
self.frame.graphical[i]:SetFrameStrata("BACKGROUND")
|
self.frame.graphical[i]:SetFrameStrata("BACKGROUND")
|
||||||
self.frame.graphical[i]:SetAllPoints(self.frame.graphicalBG[i])
|
self.frame.graphical[i]:SetAllPoints(self.frame.graphicalBG[i])
|
||||||
|
|
||||||
local r, g, b = self:GetColor("combo")
|
self.frame.graphical[i]:SetStatusBarColor(self:GetColor("combo"))
|
||||||
g = g - (0.15*i)
|
|
||||||
self.frame.graphical[i]:SetStatusBarColor(r, g, b)
|
|
||||||
|
|
||||||
self.frame.graphical[i]:Hide()
|
self.frame.graphical[i]:Hide()
|
||||||
end
|
end
|
||||||
|
@ -27,8 +27,8 @@ function DruidMana.prototype:GetDefaultSettings()
|
|||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
function DruidMana.prototype:Enable()
|
function DruidMana.prototype:Enable(core)
|
||||||
DruidMana.super.prototype.Enable(self)
|
DruidMana.super.prototype.Enable(self, core)
|
||||||
|
|
||||||
if (IsAddOnLoaded("SoleManax")) then
|
if (IsAddOnLoaded("SoleManax")) then
|
||||||
self.mode = "SoleManax"
|
self.mode = "SoleManax"
|
||||||
@ -47,8 +47,8 @@ function DruidMana.prototype:Enable()
|
|||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
function DruidMana.prototype:Disable()
|
function DruidMana.prototype:Disable(core)
|
||||||
DruidMana.super.prototype.Disable(self)
|
DruidMana.super.prototype.Disable(self, core)
|
||||||
|
|
||||||
if (IsAddOnLoaded("SoleManax")) then
|
if (IsAddOnLoaded("SoleManax")) then
|
||||||
SoleManax.DelUser(self.UpdateSoleManax)
|
SoleManax.DelUser(self.UpdateSoleManax)
|
||||||
|
@ -38,8 +38,8 @@ function MirrorBar.prototype:UpdatePosition(side, offset)
|
|||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
function MirrorBar.prototype:Enable()
|
function MirrorBar.prototype:Enable(core)
|
||||||
MirrorBar.super.prototype.Enable(self)
|
MirrorBar.super.prototype.Enable(self, core)
|
||||||
|
|
||||||
self.frame.bottomUpperText:SetWidth(200)
|
self.frame.bottomUpperText:SetWidth(200)
|
||||||
self.frame.bottomLowerText:SetWidth(200)
|
self.frame.bottomLowerText:SetWidth(200)
|
||||||
@ -316,8 +316,8 @@ function MirrorBarHandler.prototype:GetOptions()
|
|||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
function MirrorBarHandler.prototype:Enable()
|
function MirrorBarHandler.prototype:Enable(core)
|
||||||
MirrorBarHandler.super.prototype.Enable(self)
|
MirrorBarHandler.super.prototype.Enable(self, core)
|
||||||
self:RegisterEvent("MIRROR_TIMER_START", "MirrorStart")
|
self:RegisterEvent("MIRROR_TIMER_START", "MirrorStart")
|
||||||
self:RegisterEvent("MIRROR_TIMER_STOP", "MirrorStop")
|
self:RegisterEvent("MIRROR_TIMER_STOP", "MirrorStop")
|
||||||
self:RegisterEvent("MIRROR_TIMER_PAUSE", "MirrorPause")
|
self:RegisterEvent("MIRROR_TIMER_PAUSE", "MirrorPause")
|
||||||
@ -327,8 +327,8 @@ function MirrorBarHandler.prototype:Enable()
|
|||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
function MirrorBarHandler.prototype:Disable()
|
function MirrorBarHandler.prototype:Disable(core)
|
||||||
MirrorBarHandler.super.prototype.Disable(self)
|
MirrorBarHandler.super.prototype.Disable(self, core)
|
||||||
|
|
||||||
UIParent:RegisterEvent("MIRROR_TIMER_START");
|
UIParent:RegisterEvent("MIRROR_TIMER_START");
|
||||||
end
|
end
|
||||||
|
@ -38,8 +38,8 @@ function PetHealth.prototype:CreateFrame()
|
|||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
function PetHealth.prototype:Enable()
|
function PetHealth.prototype:Enable(core)
|
||||||
PetHealth.super.prototype.Enable(self)
|
PetHealth.super.prototype.Enable(self, core)
|
||||||
|
|
||||||
self:RegisterEvent("PET_UI_UPDATE", "CheckPet");
|
self:RegisterEvent("PET_UI_UPDATE", "CheckPet");
|
||||||
self:RegisterEvent("PLAYER_PET_CHANGED", "CheckPet");
|
self:RegisterEvent("PLAYER_PET_CHANGED", "CheckPet");
|
||||||
|
@ -41,8 +41,8 @@ function PetMana.prototype:CreateFrame()
|
|||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
function PetMana.prototype:Enable()
|
function PetMana.prototype:Enable(core)
|
||||||
PetMana.super.prototype.Enable(self)
|
PetMana.super.prototype.Enable(self, core)
|
||||||
|
|
||||||
self:RegisterEvent("PET_UI_UPDATE", "CheckPet");
|
self:RegisterEvent("PET_UI_UPDATE", "CheckPet");
|
||||||
self:RegisterEvent("PLAYER_PET_CHANGED", "CheckPet");
|
self:RegisterEvent("PLAYER_PET_CHANGED", "CheckPet");
|
||||||
|
@ -18,8 +18,8 @@ function PlayerHealth.prototype:GetDefaultSettings()
|
|||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
function PlayerHealth.prototype:Enable()
|
function PlayerHealth.prototype:Enable(core)
|
||||||
PlayerHealth.super.prototype.Enable(self)
|
PlayerHealth.super.prototype.Enable(self, core)
|
||||||
|
|
||||||
self:RegisterEvent("UNIT_HEALTH", "Update")
|
self:RegisterEvent("UNIT_HEALTH", "Update")
|
||||||
self:RegisterEvent("UNIT_MAXHEALTH", "Update")
|
self:RegisterEvent("UNIT_MAXHEALTH", "Update")
|
||||||
|
@ -42,6 +42,9 @@ function PlayerMana.prototype:GetOptions()
|
|||||||
self.moduleSettings.tickerEnabled = value
|
self.moduleSettings.tickerEnabled = value
|
||||||
self:ManaType(self.unit)
|
self:ManaType(self.unit)
|
||||||
end,
|
end,
|
||||||
|
disabled = function()
|
||||||
|
return not self.moduleSettings.enabled
|
||||||
|
end,
|
||||||
order = 51
|
order = 51
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -60,6 +63,9 @@ function PlayerMana.prototype:GetOptions()
|
|||||||
self.moduleSettings.tickerAlpha = value
|
self.moduleSettings.tickerAlpha = value
|
||||||
self.tickerFrame:SetStatusBarColor(self:GetColor("playerEnergy", self.moduleSettings.tickerAlpha))
|
self.tickerFrame:SetStatusBarColor(self:GetColor("playerEnergy", self.moduleSettings.tickerAlpha))
|
||||||
end,
|
end,
|
||||||
|
disabled = function()
|
||||||
|
return not self.moduleSettings.enabled
|
||||||
|
end,
|
||||||
order = 52
|
order = 52
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -67,8 +73,8 @@ function PlayerMana.prototype:GetOptions()
|
|||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
function PlayerMana.prototype:Enable()
|
function PlayerMana.prototype:Enable(core)
|
||||||
PlayerMana.super.prototype.Enable(self)
|
PlayerMana.super.prototype.Enable(self, core)
|
||||||
|
|
||||||
self:CreateTickerFrame()
|
self:CreateTickerFrame()
|
||||||
|
|
||||||
@ -93,6 +99,16 @@ function PlayerMana.prototype:Redraw()
|
|||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
-- OVERRIDE
|
||||||
|
function PlayerMana.prototype:UseTargetAlpha(scale)
|
||||||
|
if (self.manaType == 1) then
|
||||||
|
return (scale and (scale > 0))
|
||||||
|
else
|
||||||
|
return PlayerMana.super.prototype.UseTargetAlpha(self, scale)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
function PlayerMana.prototype:ManaType(unit)
|
function PlayerMana.prototype:ManaType(unit)
|
||||||
if (unit ~= self.unit) then
|
if (unit ~= self.unit) then
|
||||||
return
|
return
|
||||||
|
@ -42,6 +42,9 @@ function TargetHealth.prototype:GetOptions()
|
|||||||
disabled = function()
|
disabled = function()
|
||||||
return (MobHealth3 == nil)
|
return (MobHealth3 == nil)
|
||||||
end,
|
end,
|
||||||
|
disabled = function()
|
||||||
|
return not self.moduleSettings.enabled
|
||||||
|
end,
|
||||||
order = 40
|
order = 40
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -49,8 +52,8 @@ function TargetHealth.prototype:GetOptions()
|
|||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
function TargetHealth.prototype:Enable()
|
function TargetHealth.prototype:Enable(core)
|
||||||
TargetHealth.super.prototype.Enable(self)
|
TargetHealth.super.prototype.Enable(self, core)
|
||||||
|
|
||||||
self:RegisterEvent("UNIT_HEALTH", "Update")
|
self:RegisterEvent("UNIT_HEALTH", "Update")
|
||||||
self:RegisterEvent("UNIT_MAXHEALTH", "Update")
|
self:RegisterEvent("UNIT_MAXHEALTH", "Update")
|
||||||
@ -59,8 +62,8 @@ function TargetHealth.prototype:Enable()
|
|||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
function TargetHealth.prototype:Disable()
|
function TargetHealth.prototype:Disable(core)
|
||||||
TargetHealth.super.prototype.Disable(self)
|
TargetHealth.super.prototype.Disable(self, core)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
@ -38,6 +38,9 @@ function TargetInfo.prototype:GetOptions()
|
|||||||
min = -300,
|
min = -300,
|
||||||
max = 300,
|
max = 300,
|
||||||
step = 10,
|
step = 10,
|
||||||
|
disabled = function()
|
||||||
|
return not self.moduleSettings.enabled
|
||||||
|
end,
|
||||||
order = 31
|
order = 31
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -55,6 +58,9 @@ function TargetInfo.prototype:GetOptions()
|
|||||||
min = 8,
|
min = 8,
|
||||||
max = 20,
|
max = 20,
|
||||||
step = 1,
|
step = 1,
|
||||||
|
disabled = function()
|
||||||
|
return not self.moduleSettings.enabled
|
||||||
|
end,
|
||||||
order = 32
|
order = 32
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -79,8 +85,8 @@ function TargetInfo.prototype:Redraw()
|
|||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
function TargetInfo.prototype:Enable()
|
function TargetInfo.prototype:Enable(core)
|
||||||
TargetInfo.super.prototype.Enable(self)
|
TargetInfo.super.prototype.Enable(self, core)
|
||||||
|
|
||||||
self:RegisterEvent("PLAYER_TARGET_CHANGED", "TargetChanged")
|
self:RegisterEvent("PLAYER_TARGET_CHANGED", "TargetChanged")
|
||||||
self:RegisterEvent("UNIT_AURA", "AuraChanged")
|
self:RegisterEvent("UNIT_AURA", "AuraChanged")
|
||||||
|
@ -22,8 +22,8 @@ function TargetMana.prototype:GetDefaultSettings()
|
|||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
function TargetMana.prototype:Enable()
|
function TargetMana.prototype:Enable(core)
|
||||||
TargetMana.super.prototype.Enable(self)
|
TargetMana.super.prototype.Enable(self, core)
|
||||||
|
|
||||||
self:RegisterEvent("UNIT_MANA", "Update")
|
self:RegisterEvent("UNIT_MANA", "Update")
|
||||||
self:RegisterEvent("UNIT_MAXMANA", "Update")
|
self:RegisterEvent("UNIT_MAXMANA", "Update")
|
||||||
|
@ -39,6 +39,9 @@ function TargetOfTarget.prototype:GetOptions()
|
|||||||
min = -300,
|
min = -300,
|
||||||
max = 300,
|
max = 300,
|
||||||
step = 10,
|
step = 10,
|
||||||
|
disabled = function()
|
||||||
|
return not self.moduleSettings.enabled
|
||||||
|
end,
|
||||||
order = 31
|
order = 31
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -53,6 +56,9 @@ function TargetOfTarget.prototype:GetOptions()
|
|||||||
self.moduleSettings.showDebuffs = value
|
self.moduleSettings.showDebuffs = value
|
||||||
self:UpdateBuffs()
|
self:UpdateBuffs()
|
||||||
end,
|
end,
|
||||||
|
disabled = function()
|
||||||
|
return not self.moduleSettings.enabled
|
||||||
|
end,
|
||||||
order = 32
|
order = 32
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -70,6 +76,9 @@ function TargetOfTarget.prototype:GetOptions()
|
|||||||
min = 8,
|
min = 8,
|
||||||
max = 20,
|
max = 20,
|
||||||
step = 1,
|
step = 1,
|
||||||
|
disabled = function()
|
||||||
|
return not self.moduleSettings.enabled
|
||||||
|
end,
|
||||||
order = 33
|
order = 33
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -95,8 +104,8 @@ function TargetOfTarget.prototype:Redraw()
|
|||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
function TargetOfTarget.prototype:Enable()
|
function TargetOfTarget.prototype:Enable(core)
|
||||||
TargetOfTarget.super.prototype.Enable(self)
|
TargetOfTarget.super.prototype.Enable(self, core)
|
||||||
|
|
||||||
self:RegisterEvent("PLAYER_TARGET_CHANGED", "Update")
|
self:RegisterEvent("PLAYER_TARGET_CHANGED", "Update")
|
||||||
|
|
||||||
@ -107,8 +116,8 @@ function TargetOfTarget.prototype:Enable()
|
|||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
function TargetOfTarget.prototype:Disable()
|
function TargetOfTarget.prototype:Disable(core)
|
||||||
TargetOfTarget.super.prototype.Disable(self)
|
TargetOfTarget.super.prototype.Disable(self, core)
|
||||||
self:UnregisterMetro(self.name)
|
self:UnregisterMetro(self.name)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -22,8 +22,8 @@ function TimerBar.prototype:GetDefaultSettings()
|
|||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
function TimerBar.prototype:Enable()
|
function TimerBar.prototype:Enable(core)
|
||||||
TimerBar.super.prototype.Enable(self)
|
TimerBar.super.prototype.Enable(self, core)
|
||||||
|
|
||||||
self.frame.bottomUpperText:SetWidth(180)
|
self.frame.bottomUpperText:SetWidth(180)
|
||||||
self.frame:Hide()
|
self.frame:Hide()
|
||||||
@ -32,8 +32,8 @@ function TimerBar.prototype:Enable()
|
|||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
function TimerBar.prototype:Disable()
|
function TimerBar.prototype:Disable(core)
|
||||||
TimerBar.super.prototype.Disable(self)
|
TimerBar.super.prototype.Disable(self, core)
|
||||||
|
|
||||||
self:Unhook(ToFu, "OnTextUpdate")
|
self:Unhook(ToFu, "OnTextUpdate")
|
||||||
end
|
end
|
||||||
|
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user