mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 14:50:13 -05:00
- removed the last remnants of Ace2 (AceOO-2.0 and AceLibrary) thanks to a huge amount of help from ckknight for metatables
This commit is contained in:
2
.pkgmeta
2
.pkgmeta
@ -4,7 +4,6 @@ externals:
|
|||||||
libs/LibStub:
|
libs/LibStub:
|
||||||
url: svn://svn.wowace.com/wow/ace3/mainline/trunk/LibStub
|
url: svn://svn.wowace.com/wow/ace3/mainline/trunk/LibStub
|
||||||
tag: latest
|
tag: latest
|
||||||
libs/AceLibrary: svn://svn.wowace.com/wow/ace2/mainline/trunk/AceLibrary
|
|
||||||
libs/CallbackHandler-1.0:
|
libs/CallbackHandler-1.0:
|
||||||
url: svn://svn.wowace.com/wow/ace3/mainline/trunk/CallbackHandler-1.0
|
url: svn://svn.wowace.com/wow/ace3/mainline/trunk/CallbackHandler-1.0
|
||||||
tag: latest
|
tag: latest
|
||||||
@ -26,7 +25,6 @@ externals:
|
|||||||
libs/AceGUI-3.0:
|
libs/AceGUI-3.0:
|
||||||
url: svn://svn.wowace.com/wow/ace3/mainline/trunk/AceGUI-3.0
|
url: svn://svn.wowace.com/wow/ace3/mainline/trunk/AceGUI-3.0
|
||||||
tag: latest
|
tag: latest
|
||||||
libs/AceOO-2.0: svn://svn.wowace.com/wow/ace2/mainline/trunk/AceOO-2.0
|
|
||||||
libs/AceAddon-3.0:
|
libs/AceAddon-3.0:
|
||||||
url: svn://svn.wowace.com/wow/ace3/mainline/trunk/AceAddon-3.0
|
url: svn://svn.wowace.com/wow/ace3/mainline/trunk/AceAddon-3.0
|
||||||
tag: latest
|
tag: latest
|
||||||
|
@ -1,9 +1,6 @@
|
|||||||
local AceOO = AceLibrary("AceOO-2.0")
|
|
||||||
|
|
||||||
local DogTag = nil
|
local DogTag = nil
|
||||||
|
|
||||||
IceBarElement = AceOO.Class(IceElement)
|
IceBarElement = IceCore_CreateClass(IceElement)
|
||||||
IceBarElement.virtual = true
|
|
||||||
|
|
||||||
IceBarElement.BarTextureWidth = 128
|
IceBarElement.BarTextureWidth = 128
|
||||||
|
|
||||||
@ -14,6 +11,7 @@ IceBarElement.prototype.LastScale = 1
|
|||||||
IceBarElement.prototype.DesiredScale = 1
|
IceBarElement.prototype.DesiredScale = 1
|
||||||
IceBarElement.prototype.CurrScale = 1
|
IceBarElement.prototype.CurrScale = 1
|
||||||
IceBarElement.prototype.Markers = {}
|
IceBarElement.prototype.Markers = {}
|
||||||
|
IceBarElement.prototype.IsBarElement = true -- cheating to avoid crawling up the 'super' references looking for this class. see IceCore.lua
|
||||||
|
|
||||||
local lastMarkerPosConfig = 50
|
local lastMarkerPosConfig = 50
|
||||||
local lastMarkerColorConfig = {r=1, b=0, g=0, a=1}
|
local lastMarkerColorConfig = {r=1, b=0, g=0, a=1}
|
||||||
@ -33,9 +31,11 @@ end
|
|||||||
function IceBarElement.prototype:Enable()
|
function IceBarElement.prototype:Enable()
|
||||||
IceBarElement.super.prototype.Enable(self)
|
IceBarElement.super.prototype.Enable(self)
|
||||||
|
|
||||||
if IceHUD.IceCore:ShouldUseDogTags() and AceLibrary:HasInstance("LibDogTag-3.0") then
|
if IceHUD.IceCore:ShouldUseDogTags() then
|
||||||
DogTag = AceLibrary("LibDogTag-3.0")
|
DogTag = LibStub("LibDogTag-3.0", true)
|
||||||
AceLibrary("LibDogTag-Unit-3.0")
|
if DogTag then
|
||||||
|
LibStub("LibDogTag-Unit-3.0", true)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if self.moduleSettings.myTagVersion < IceHUD.CurrTagVersion then
|
if self.moduleSettings.myTagVersion < IceHUD.CurrTagVersion then
|
||||||
|
@ -1,9 +1,4 @@
|
|||||||
local AceOO = AceLibrary("AceOO-2.0")
|
IceCastBar = IceCore_CreateClass(IceBarElement)
|
||||||
|
|
||||||
local SPELLINTERRUPTOTHERSELF = SPELLINTERRUPTOTHERSELF
|
|
||||||
local SPELLFAILCASTSELF = SPELLFAILCASTSELF
|
|
||||||
|
|
||||||
IceCastBar = AceOO.Class(IceBarElement)
|
|
||||||
|
|
||||||
|
|
||||||
IceCastBar.Actions = { None = 0, Cast = 1, Channel = 2, Instant = 3, Success = 4, Failure = 5 }
|
IceCastBar.Actions = { None = 0, Cast = 1, Channel = 2, Instant = 3, Success = 4, Failure = 5 }
|
||||||
|
27
IceCore.lua
27
IceCore.lua
@ -1,6 +1,22 @@
|
|||||||
local AceOO = AceLibrary("AceOO-2.0")
|
function IceCore_CreateClass(parent)
|
||||||
|
local class = { prototype = {} }
|
||||||
|
if parent then
|
||||||
|
class.super = parent
|
||||||
|
setmetatable(class.prototype, { __index = parent.prototype })
|
||||||
|
end
|
||||||
|
local mt = { __index = class.prototype }
|
||||||
|
function class.new(...)
|
||||||
|
local self = setmetatable({}, mt)
|
||||||
|
if self.init then
|
||||||
|
self:init(...)
|
||||||
|
end
|
||||||
|
return self
|
||||||
|
end
|
||||||
|
|
||||||
IceCore = AceOO.Class()
|
return class
|
||||||
|
end
|
||||||
|
|
||||||
|
IceCore = IceCore_CreateClass()
|
||||||
|
|
||||||
IceCore.Side = { Left = "LEFT", Right = "RIGHT" }
|
IceCore.Side = { Left = "LEFT", Right = "RIGHT" }
|
||||||
|
|
||||||
@ -27,7 +43,6 @@ IceCore.prototype.bConfigMode = false
|
|||||||
|
|
||||||
-- Constructor --
|
-- Constructor --
|
||||||
function IceCore.prototype:init()
|
function IceCore.prototype:init()
|
||||||
IceCore.super.prototype.init(self)
|
|
||||||
IceHUD:Debug("IceCore.prototype:init()")
|
IceHUD:Debug("IceCore.prototype:init()")
|
||||||
|
|
||||||
self.IceHUDFrame = CreateFrame("Frame","IceHUDFrame", UIParent)
|
self.IceHUDFrame = CreateFrame("Frame","IceHUDFrame", UIParent)
|
||||||
@ -617,7 +632,7 @@ function IceCore.prototype:ConfigModeToggle(bWantConfig)
|
|||||||
if self.elements[i]:IsEnabled() then
|
if self.elements[i]:IsEnabled() then
|
||||||
self.elements[i].frame:Show()
|
self.elements[i].frame:Show()
|
||||||
self.elements[i]:Redraw()
|
self.elements[i]:Redraw()
|
||||||
if AceOO.inherits(self.elements[i], IceBarElement) then
|
if self.elements[i].IsBarElement then
|
||||||
self.elements[i]:SetBottomText1(self.elements[i].elementName)
|
self.elements[i]:SetBottomText1(self.elements[i].elementName)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -629,7 +644,7 @@ function IceCore.prototype:ConfigModeToggle(bWantConfig)
|
|||||||
end
|
end
|
||||||
|
|
||||||
-- blank the bottom text that we set before. if the module uses this text, it will reset itself on redraw
|
-- blank the bottom text that we set before. if the module uses this text, it will reset itself on redraw
|
||||||
if AceOO.inherits(self.elements[i], IceBarElement) then
|
if self.elements[i].IsBarElement then
|
||||||
self.elements[i]:SetBottomText1()
|
self.elements[i]:SetBottomText1()
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -639,7 +654,7 @@ function IceCore.prototype:ConfigModeToggle(bWantConfig)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function IceCore.prototype:ShouldUseDogTags()
|
function IceCore.prototype:ShouldUseDogTags()
|
||||||
return AceLibrary:HasInstance("LibDogTag-3.0") and self.settings.bShouldUseDogTags
|
return LibStub("LibDogTag-3.0", true) and self.settings.bShouldUseDogTags
|
||||||
end
|
end
|
||||||
|
|
||||||
function IceCore.prototype:SetShouldUseDogTags(should)
|
function IceCore.prototype:SetShouldUseDogTags(should)
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
local AceOO = AceLibrary("AceOO-2.0")
|
local SML = LibStub("LibSharedMedia-3.0")
|
||||||
local SML = AceLibrary("LibSharedMedia-3.0")
|
|
||||||
|
|
||||||
IceElement = AceOO.Class()
|
IceElement = IceCore_CreateClass()
|
||||||
IceElement.virtual = true
|
|
||||||
|
|
||||||
IceElement.TexturePath = IceHUD.Location .. "\\textures\\"
|
IceElement.TexturePath = IceHUD.Location .. "\\textures\\"
|
||||||
|
|
||||||
@ -31,7 +29,6 @@ IceElement.prototype.bIsVisible = true
|
|||||||
-- Therefore we can wait for IceCore to load and then register our
|
-- Therefore we can wait for IceCore to load and then register our
|
||||||
-- module to the core with another event.
|
-- module to the core with another event.
|
||||||
function IceElement.prototype:init(name)
|
function IceElement.prototype:init(name)
|
||||||
IceElement.super.prototype.init(self)
|
|
||||||
assert(name, "IceElement must have a name")
|
assert(name, "IceElement must have a name")
|
||||||
|
|
||||||
self.elementName = name
|
self.elementName = name
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
IceHUD = LibStub("AceAddon-3.0"):NewAddon("IceHUD", "AceConsole-3.0")
|
IceHUD = LibStub("AceAddon-3.0"):NewAddon("IceHUD", "AceConsole-3.0")
|
||||||
|
|
||||||
local SML = AceLibrary("LibSharedMedia-3.0")
|
local SML = LibStub("LibSharedMedia-3.0")
|
||||||
local ACR = LibStub("AceConfigRegistry-3.0")
|
local ACR = LibStub("AceConfigRegistry-3.0")
|
||||||
local ConfigDialog = LibStub("AceConfigDialog-3.0")
|
local ConfigDialog = LibStub("AceConfigDialog-3.0")
|
||||||
local icon = LibStub("LibDBIcon-1.0")
|
local icon = LibStub("LibDBIcon-1.0")
|
||||||
@ -652,7 +652,7 @@ Expand "|cffffdc42Module Settings|r", expand PlayerInfo (or TargetInfo for targe
|
|||||||
StaticPopup_Show("ICEHUD_CHANGED_DOGTAG")
|
StaticPopup_Show("ICEHUD_CHANGED_DOGTAG")
|
||||||
end,
|
end,
|
||||||
hidden = function()
|
hidden = function()
|
||||||
return not AceLibrary:HasInstance("LibDogTag-3.0")
|
return not LibStub("LibDogTag-3.0", true)
|
||||||
end,
|
end,
|
||||||
order = 96
|
order = 96
|
||||||
},
|
},
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
## Interface: 30300
|
## Interface: 30300
|
||||||
## Author: Parnic, originally created by Iceroth
|
## Author: Parnic, originally created by Iceroth
|
||||||
## Name: IceHUD
|
## Name: IceHUD
|
||||||
## Title: IceHUD |cff7fff7f -Ace2/3-|r
|
## Title: IceHUD |cff7fff7f -Ace3-|r
|
||||||
## Notes: Another HUD addon
|
## Notes: Another HUD addon
|
||||||
## Version: @project-version@ (Revision: @project-revision@)
|
## Version: @project-version@ (Revision: @project-revision@)
|
||||||
## SavedVariables: IceCoreDB
|
## SavedVariables: IceCoreDB
|
||||||
## OptionalDeps: Ace2, Ace3, LibSharedMedia-3.0, LibDogTag-3.0, LibDogTag-Unit-3.0, LibRangeCheck-2.0, LibHealComm-4.0
|
## OptionalDeps: Ace3, LibSharedMedia-3.0, LibDogTag-3.0, LibDogTag-Unit-3.0, LibRangeCheck-2.0, LibHealComm-4.0
|
||||||
## X-Category: HUDs
|
## X-Category: HUDs
|
||||||
## X-Website: http://www.wowace.com/projects/ice-hud/
|
## X-Website: http://www.wowace.com/projects/ice-hud/
|
||||||
## X-Compatible-With: 40000
|
## X-Compatible-With: 40000
|
||||||
|
@ -1,7 +1,4 @@
|
|||||||
local AceOO = AceLibrary("AceOO-2.0")
|
IceUnitBar = IceCore_CreateClass(IceBarElement)
|
||||||
|
|
||||||
IceUnitBar = AceOO.Class(IceBarElement)
|
|
||||||
IceUnitBar.virtual = true
|
|
||||||
|
|
||||||
IceUnitBar.prototype.unit = nil
|
IceUnitBar.prototype.unit = nil
|
||||||
IceUnitBar.prototype.alive = nil
|
IceUnitBar.prototype.alive = nil
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
<Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/..\FrameXML\UI.xsd">
|
<Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/..\FrameXML\UI.xsd">
|
||||||
<Script file="libs\LibStub\LibStub.lua"/>
|
<Script file="libs\LibStub\LibStub.lua"/>
|
||||||
<Script file="libs\AceLibrary\AceLibrary.lua"/>
|
|
||||||
<Script file="libs\CallbackHandler-1.0\CallbackHandler-1.0.lua"/>
|
<Script file="libs\CallbackHandler-1.0\CallbackHandler-1.0.lua"/>
|
||||||
<Script file="libs\AceOO-2.0\AceOO-2.0.lua"/>
|
|
||||||
<Include file="libs\AceDB-3.0\AceDB-3.0.xml"/>
|
<Include file="libs\AceDB-3.0\AceDB-3.0.xml"/>
|
||||||
<Include file="libs\AceDBOptions-3.0\AceDBOptions-3.0.xml"/>
|
<Include file="libs\AceDBOptions-3.0\AceDBOptions-3.0.xml"/>
|
||||||
<Include file="libs\AceGUI-3.0\AceGUI-3.0.xml"/>
|
<Include file="libs\AceGUI-3.0\AceGUI-3.0.xml"/>
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
local AceOO = AceLibrary("AceOO-2.0")
|
local CastBar = IceCore_CreateClass(IceCastBar)
|
||||||
|
|
||||||
local CastBar = AceOO.Class(IceCastBar)
|
|
||||||
|
|
||||||
CastBar.prototype.lagBar = nil
|
CastBar.prototype.lagBar = nil
|
||||||
CastBar.prototype.spellCastSent = nil
|
CastBar.prototype.spellCastSent = nil
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
local AceOO = AceLibrary("AceOO-2.0")
|
IceClassPowerCounter = IceCore_CreateClass(IceElement)
|
||||||
|
|
||||||
IceClassPowerCounter = AceOO.Class(IceElement)
|
|
||||||
|
|
||||||
IceClassPowerCounter.prototype.runeHeight = 22
|
IceClassPowerCounter.prototype.runeHeight = 22
|
||||||
IceClassPowerCounter.prototype.runeWidth = 36
|
IceClassPowerCounter.prototype.runeWidth = 36
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
local AceOO = AceLibrary("AceOO-2.0")
|
local ComboPoints = IceCore_CreateClass(IceElement)
|
||||||
|
|
||||||
local ComboPoints = AceOO.Class(IceElement)
|
|
||||||
|
|
||||||
ComboPoints.prototype.comboSize = 20
|
ComboPoints.prototype.comboSize = 20
|
||||||
|
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
local AceOO = AceLibrary("AceOO-2.0")
|
local ComboPointsBar = IceCore_CreateClass(IceBarElement)
|
||||||
|
|
||||||
local ComboPointsBar = AceOO.Class(IceBarElement)
|
|
||||||
|
|
||||||
function ComboPointsBar.prototype:init()
|
function ComboPointsBar.prototype:init()
|
||||||
ComboPointsBar.super.prototype.init(self, "ComboPointsBar")
|
ComboPointsBar.super.prototype.init(self, "ComboPointsBar")
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
local AceOO = AceLibrary("AceOO-2.0")
|
IceCustomBar = IceCore_CreateClass(IceUnitBar)
|
||||||
|
|
||||||
IceCustomBar = AceOO.Class(IceUnitBar)
|
|
||||||
|
|
||||||
local validUnits = {"player", "target", "focus", "focustarget", "pet", "pettarget", "vehicle", "targettarget", "main hand weapon", "off hand weapon"}
|
local validUnits = {"player", "target", "focus", "focustarget", "pet", "pettarget", "vehicle", "targettarget", "main hand weapon", "off hand weapon"}
|
||||||
local buffOrDebuff = {"buff", "debuff"}
|
local buffOrDebuff = {"buff", "debuff"}
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
local AceOO = AceLibrary("AceOO-2.0")
|
IceCustomCDBar = IceCore_CreateClass(IceUnitBar)
|
||||||
|
|
||||||
IceCustomCDBar = AceOO.Class(IceUnitBar)
|
|
||||||
|
|
||||||
|
|
||||||
local validDisplayModes = {"Always", "When ready", "When cooling down"}
|
local validDisplayModes = {"Always", "When ready", "When cooling down"}
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
local AceOO = AceLibrary("AceOO-2.0")
|
IceCustomCount = IceCore_CreateClass(IceElement)
|
||||||
|
|
||||||
IceCustomCount = AceOO.Class(IceElement)
|
|
||||||
|
|
||||||
IceCustomCount.prototype.countSize = 20
|
IceCustomCount.prototype.countSize = 20
|
||||||
|
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
local AceOO = AceLibrary("AceOO-2.0")
|
IceCustomHealth = IceCore_CreateClass(IceTargetHealth)
|
||||||
|
|
||||||
IceCustomHealth = AceOO.Class(IceTargetHealth)
|
|
||||||
IceCustomHealth.prototype.scheduledEvent = nil
|
IceCustomHealth.prototype.scheduledEvent = nil
|
||||||
|
|
||||||
-- Constructor --
|
-- Constructor --
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
local AceOO = AceLibrary("AceOO-2.0")
|
IceCustomMana = IceCore_CreateClass(IceTargetMana)
|
||||||
|
|
||||||
IceCustomMana = AceOO.Class(IceTargetMana)
|
|
||||||
IceCustomMana.prototype.scheduledEvent = nil
|
IceCustomMana.prototype.scheduledEvent = nil
|
||||||
|
|
||||||
-- Constructor --
|
-- Constructor --
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
local AceOO = AceLibrary("AceOO-2.0")
|
local DruidMana = IceCore_CreateClass(IceUnitBar)
|
||||||
|
|
||||||
local DruidMana = AceOO.Class(IceUnitBar)
|
|
||||||
|
|
||||||
DruidMana.prototype.druidMana = nil
|
DruidMana.prototype.druidMana = nil
|
||||||
DruidMana.prototype.druidManaMax = nil
|
DruidMana.prototype.druidManaMax = nil
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
local AceOO = AceLibrary("AceOO-2.0")
|
local EclipseBar = IceCore_CreateClass(IceBarElement)
|
||||||
|
|
||||||
local EclipseBar = AceOO.Class(IceBarElement)
|
|
||||||
EclipseBar.prototype.barUpdateColor = "EclipseLunar"
|
EclipseBar.prototype.barUpdateColor = "EclipseLunar"
|
||||||
|
|
||||||
function EclipseBar.prototype:init()
|
function EclipseBar.prototype:init()
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
local AceOO = AceLibrary("AceOO-2.0")
|
|
||||||
|
|
||||||
-- changed to inherit from the TargetCC bar since the only difference is the unit and the default placement
|
-- changed to inherit from the TargetCC bar since the only difference is the unit and the default placement
|
||||||
-- helps keep changes in one place and we don't have to duplicate the CC spell tables and they don't have to be globals
|
-- helps keep changes in one place and we don't have to duplicate the CC spell tables and they don't have to be globals
|
||||||
local FocusCC = AceOO.Class(TargetCC)
|
local FocusCC = IceCore_CreateClass(TargetCC)
|
||||||
|
|
||||||
-- Constructor --
|
-- Constructor --
|
||||||
function FocusCC.prototype:init()
|
function FocusCC.prototype:init()
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
local AceOO = AceLibrary("AceOO-2.0")
|
local FocusCast = IceCore_CreateClass(IceCastBar)
|
||||||
|
|
||||||
local FocusCast = AceOO.Class(IceCastBar)
|
|
||||||
|
|
||||||
-- Constructor --
|
-- Constructor --
|
||||||
function FocusCast.prototype:init()
|
function FocusCast.prototype:init()
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
local AceOO = AceLibrary("AceOO-2.0")
|
local FocusHealth = IceCore_CreateClass(IceUnitBar)
|
||||||
|
|
||||||
local FocusHealth = AceOO.Class(IceUnitBar)
|
|
||||||
|
|
||||||
FocusHealth.prototype.color = nil
|
FocusHealth.prototype.color = nil
|
||||||
|
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
local AceOO = AceLibrary("AceOO-2.0")
|
local FocusMana = IceCore_CreateClass(IceUnitBar)
|
||||||
|
|
||||||
local FocusMana = AceOO.Class(IceUnitBar)
|
|
||||||
|
|
||||||
|
|
||||||
-- Constructor --
|
-- Constructor --
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
local AceOO = AceLibrary("AceOO-2.0")
|
local IceFocusThreat = IceCore_CreateClass(IceThreat)
|
||||||
|
|
||||||
local IceFocusThreat = AceOO.Class(IceThreat)
|
|
||||||
|
|
||||||
-- constructor
|
-- constructor
|
||||||
function IceFocusThreat.prototype:init()
|
function IceFocusThreat.prototype:init()
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
local AceOO = AceLibrary("AceOO-2.0")
|
local GlobalCoolDown = IceCore_CreateClass(IceBarElement)
|
||||||
|
|
||||||
local GlobalCoolDown = AceOO.Class(IceBarElement)
|
|
||||||
GlobalCoolDown.prototype.scheduledEvent = nil
|
GlobalCoolDown.prototype.scheduledEvent = nil
|
||||||
|
|
||||||
-- Constructor --
|
-- Constructor --
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
local AceOO = AceLibrary("AceOO-2.0")
|
local HolyPower = IceCore_CreateClass(IceClassPowerCounter)
|
||||||
|
|
||||||
local HolyPower = AceOO.Class(IceClassPowerCounter)
|
|
||||||
|
|
||||||
function HolyPower.prototype:init()
|
function HolyPower.prototype:init()
|
||||||
HolyPower.super.prototype.init(self, "HolyPower")
|
HolyPower.super.prototype.init(self, "HolyPower")
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
local AceOO = AceLibrary("AceOO-2.0")
|
local HungerForBlood = IceCore_CreateClass(IceUnitBar)
|
||||||
|
|
||||||
local HungerForBlood = AceOO.Class(IceUnitBar)
|
|
||||||
|
|
||||||
local hfbEndTime = 0
|
local hfbEndTime = 0
|
||||||
local hfbDuration = 0
|
local hfbDuration = 0
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
local AceOO = AceLibrary("AceOO-2.0")
|
local LacerateCount = IceCore_CreateClass(IceElement)
|
||||||
|
|
||||||
local LacerateCount = AceOO.Class(IceElement)
|
|
||||||
|
|
||||||
LacerateCount.prototype.lacerateSize = 20
|
LacerateCount.prototype.lacerateSize = 20
|
||||||
|
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
local AceOO = AceLibrary("AceOO-2.0")
|
local MaelstromCount = IceCore_CreateClass(IceElement)
|
||||||
|
|
||||||
local MaelstromCount = AceOO.Class(IceElement)
|
|
||||||
|
|
||||||
MaelstromCount.prototype.maelstromSize = 20
|
MaelstromCount.prototype.maelstromSize = 20
|
||||||
|
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
local AceOO = AceLibrary("AceOO-2.0")
|
|
||||||
|
|
||||||
-- 2 classes in the same file.. ugly but keeps the idea of
|
-- 2 classes in the same file.. ugly but keeps the idea of
|
||||||
-- "1 module = 1 file" intact
|
-- "1 module = 1 file" intact
|
||||||
|
|
||||||
@ -8,7 +6,7 @@ local AceOO = AceLibrary("AceOO-2.0")
|
|||||||
-- MirrorBar --
|
-- MirrorBar --
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
|
|
||||||
local MirrorBar = AceOO.Class(IceBarElement)
|
local MirrorBar = IceCore_CreateClass(IceBarElement)
|
||||||
|
|
||||||
MirrorBar.prototype.timer = nil
|
MirrorBar.prototype.timer = nil
|
||||||
MirrorBar.prototype.value = nil
|
MirrorBar.prototype.value = nil
|
||||||
@ -155,7 +153,7 @@ end
|
|||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
local MirrorBarHandler = AceOO.Class(IceElement)
|
local MirrorBarHandler = IceCore_CreateClass(IceElement)
|
||||||
|
|
||||||
MirrorBarHandler.prototype.bars = nil
|
MirrorBarHandler.prototype.bars = nil
|
||||||
|
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
local AceOO = AceLibrary("AceOO-2.0")
|
local PetHealth = IceCore_CreateClass(IceUnitBar)
|
||||||
|
|
||||||
local PetHealth = AceOO.Class(IceUnitBar)
|
|
||||||
|
|
||||||
PetHealth.prototype.happiness = nil
|
PetHealth.prototype.happiness = nil
|
||||||
|
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
local AceOO = AceLibrary("AceOO-2.0")
|
local PetInfo = IceCore_CreateClass(IceTargetInfo)
|
||||||
local PetInfo = AceOO.Class(IceTargetInfo)
|
|
||||||
|
|
||||||
-- Constructor --
|
-- Constructor --
|
||||||
function PetInfo.prototype:init()
|
function PetInfo.prototype:init()
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
local AceOO = AceLibrary("AceOO-2.0")
|
local PetMana = IceCore_CreateClass(IceUnitBar)
|
||||||
|
|
||||||
local PetMana = AceOO.Class(IceUnitBar)
|
|
||||||
|
|
||||||
-- Constructor --
|
-- Constructor --
|
||||||
function PetMana.prototype:init()
|
function PetMana.prototype:init()
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
local AceOO = AceLibrary("AceOO-2.0")
|
|
||||||
|
|
||||||
-- changed to inherit from the TargetCC bar since the only difference is the unit and the default placement
|
-- changed to inherit from the TargetCC bar since the only difference is the unit and the default placement
|
||||||
-- helps keep changes in one place and we don't have to duplicate the CC spell tables and they don't have to be globals
|
-- helps keep changes in one place and we don't have to duplicate the CC spell tables and they don't have to be globals
|
||||||
local PlayerCC = AceOO.Class(TargetCC)
|
local PlayerCC = IceCore_CreateClass(TargetCC)
|
||||||
|
|
||||||
-- Constructor --
|
-- Constructor --
|
||||||
function PlayerCC.prototype:init()
|
function PlayerCC.prototype:init()
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
local AceOO = AceLibrary("AceOO-2.0")
|
local PlayerHealth = IceCore_CreateClass(IceUnitBar)
|
||||||
|
|
||||||
local PlayerHealth = AceOO.Class(IceUnitBar)
|
|
||||||
|
|
||||||
PlayerHealth.prototype.resting = nil
|
PlayerHealth.prototype.resting = nil
|
||||||
PlayerHealth.prototype.pendingBlizzardPartyHide = false
|
PlayerHealth.prototype.pendingBlizzardPartyHide = false
|
||||||
@ -90,8 +88,8 @@ function PlayerHealth.prototype:Enable(core)
|
|||||||
self:RegisterEvent("UNIT_EXITED_VEHICLE", "ExitingVehicle")
|
self:RegisterEvent("UNIT_EXITED_VEHICLE", "ExitingVehicle")
|
||||||
|
|
||||||
if IceHUD.WowVer < 40000 then
|
if IceHUD.WowVer < 40000 then
|
||||||
if AceLibrary:HasInstance("LibHealComm-4.0") then
|
HealComm = LibStub("LibHealComm-4.0", true)
|
||||||
HealComm = AceLibrary("LibHealComm-4.0")
|
if HealComm then
|
||||||
HealComm.RegisterCallback(self, "HealComm_HealStarted", function(event, casterGUID, spellID, spellType, endTime, ...) self:HealComm_HealEvent(event, casterGUID, spellID, spellType, endTime, ...) end)
|
HealComm.RegisterCallback(self, "HealComm_HealStarted", function(event, casterGUID, spellID, spellType, endTime, ...) self:HealComm_HealEvent(event, casterGUID, spellID, spellType, endTime, ...) end)
|
||||||
HealComm.RegisterCallback(self, "HealComm_HealUpdated", function(event, casterGUID, spellID, spellType, endTime, ...) self:HealComm_HealEvent(event, casterGUID, spellID, spellType, endTime, ...) end)
|
HealComm.RegisterCallback(self, "HealComm_HealUpdated", function(event, casterGUID, spellID, spellType, endTime, ...) self:HealComm_HealEvent(event, casterGUID, spellID, spellType, endTime, ...) end)
|
||||||
HealComm.RegisterCallback(self, "HealComm_HealDelayed", function(event, casterGUID, spellID, spellType, endTime, ...) self:HealComm_HealEvent(event, casterGUID, spellID, spellType, endTime, ...) end)
|
HealComm.RegisterCallback(self, "HealComm_HealDelayed", function(event, casterGUID, spellID, spellType, endTime, ...) self:HealComm_HealEvent(event, casterGUID, spellID, spellType, endTime, ...) end)
|
||||||
@ -1417,4 +1415,4 @@ function PlayerHealth.prototype:OutCombat()
|
|||||||
end
|
end
|
||||||
|
|
||||||
-- Load us up
|
-- Load us up
|
||||||
IceHUD.PlayerHealth = PlayerHealth:new()
|
IceHUD.PlayerHealth = PlayerHealth.new()
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
local AceOO = AceLibrary("AceOO-2.0")
|
local PlayerInfo = IceCore_CreateClass(IceTargetInfo)
|
||||||
local PlayerInfo = AceOO.Class(IceTargetInfo)
|
|
||||||
|
|
||||||
local EPSILON = 0.5
|
local EPSILON = 0.5
|
||||||
|
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
local AceOO = AceLibrary("AceOO-2.0")
|
|
||||||
|
|
||||||
-- changed to inherit from the TargetInvuln bar since the only difference is the unit and the default placement
|
-- changed to inherit from the TargetInvuln bar since the only difference is the unit and the default placement
|
||||||
-- helps keep changes in one place and we don't have to duplicate the Invuln spell tables and they don't have to be globals
|
-- helps keep changes in one place and we don't have to duplicate the Invuln spell tables and they don't have to be globals
|
||||||
local PlayerInvuln = AceOO.Class(TargetInvuln)
|
local PlayerInvuln = IceCore_CreateClass(TargetInvuln)
|
||||||
|
|
||||||
-- Constructor --
|
-- Constructor --
|
||||||
function PlayerInvuln.prototype:init()
|
function PlayerInvuln.prototype:init()
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
local AceOO = AceLibrary("AceOO-2.0")
|
local PlayerMana = IceCore_CreateClass(IceUnitBar)
|
||||||
|
|
||||||
local PlayerMana = AceOO.Class(IceUnitBar)
|
|
||||||
|
|
||||||
PlayerMana.prototype.manaType = nil
|
PlayerMana.prototype.manaType = nil
|
||||||
PlayerMana.prototype.tickStart = nil
|
PlayerMana.prototype.tickStart = nil
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
local AceOO = AceLibrary("AceOO-2.0")
|
local RangeCheck = IceCore_CreateClass(IceElement)
|
||||||
|
|
||||||
local RangeCheck = AceOO.Class(IceElement)
|
|
||||||
RangeCheck.prototype.scheduledEvent = nil
|
RangeCheck.prototype.scheduledEvent = nil
|
||||||
|
|
||||||
local LibRange = nil
|
local LibRange = nil
|
||||||
@ -12,16 +10,14 @@ function RangeCheck.prototype:init()
|
|||||||
|
|
||||||
self.scalingEnabled = true
|
self.scalingEnabled = true
|
||||||
|
|
||||||
if AceLibrary:HasInstance("LibRangeCheck-2.0") then
|
LibRange = LibStub("LibRangeCheck-2.0", true)
|
||||||
LibRange = AceLibrary("LibRangeCheck-2.0")
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function RangeCheck.prototype:Enable(core)
|
function RangeCheck.prototype:Enable(core)
|
||||||
RangeCheck.super.prototype.Enable(self, core)
|
RangeCheck.super.prototype.Enable(self, core)
|
||||||
|
|
||||||
if IceHUD.IceCore:ShouldUseDogTags() then
|
if IceHUD.IceCore:ShouldUseDogTags() then
|
||||||
DogTag = AceLibrary("LibDogTag-3.0")
|
DogTag = LibStub("LibDogTag-3.0", true)
|
||||||
self:RegisterFontStrings()
|
self:RegisterFontStrings()
|
||||||
else
|
else
|
||||||
self.scheduledEvent = self:ScheduleRepeatingTimer("UpdateRange", 0.1)
|
self.scheduledEvent = self:ScheduleRepeatingTimer("UpdateRange", 0.1)
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
local AceOO = AceLibrary("AceOO-2.0")
|
local Runes = IceCore_CreateClass(IceElement)
|
||||||
|
|
||||||
local Runes = AceOO.Class(IceElement)
|
|
||||||
|
|
||||||
-- blizzard cracks me up. the below block is copied verbatim from RuneFrame.lua ;)
|
-- blizzard cracks me up. the below block is copied verbatim from RuneFrame.lua ;)
|
||||||
--Readability == win
|
--Readability == win
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
local AceOO = AceLibrary("AceOO-2.0")
|
local ShardCounter = IceCore_CreateClass(IceClassPowerCounter)
|
||||||
|
|
||||||
local ShardCounter = AceOO.Class(IceClassPowerCounter)
|
|
||||||
|
|
||||||
function ShardCounter.prototype:init()
|
function ShardCounter.prototype:init()
|
||||||
ShardCounter.super.prototype.init(self, "ShardCounter")
|
ShardCounter.super.prototype.init(self, "ShardCounter")
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
local AceOO = AceLibrary("AceOO-2.0")
|
local SliceAndDice = IceCore_CreateClass(IceUnitBar)
|
||||||
|
|
||||||
local SliceAndDice = AceOO.Class(IceUnitBar)
|
|
||||||
|
|
||||||
local NetherbladeItemIdList = {29044, 29045, 29046, 29047, 29048}
|
local NetherbladeItemIdList = {29044, 29045, 29046, 29047, 29048}
|
||||||
-- Parnic - bah, have to abandon the more robust string representation of each slot because of loc issues...
|
-- Parnic - bah, have to abandon the more robust string representation of each slot because of loc issues...
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
local AceOO = AceLibrary("AceOO-2.0")
|
local SunderCount = IceCore_CreateClass(IceElement)
|
||||||
|
|
||||||
local SunderCount = AceOO.Class(IceElement)
|
|
||||||
|
|
||||||
SunderCount.prototype.sunderSize = 20
|
SunderCount.prototype.sunderSize = 20
|
||||||
|
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
local AceOO = AceLibrary("AceOO-2.0")
|
|
||||||
|
|
||||||
-- needs to not be local so that we can inherit from it
|
-- needs to not be local so that we can inherit from it
|
||||||
TargetCC = AceOO.Class(IceUnitBar)
|
TargetCC = IceCore_CreateClass(IceUnitBar)
|
||||||
|
|
||||||
TargetCC.prototype.debuffName = nil
|
TargetCC.prototype.debuffName = nil
|
||||||
TargetCC.prototype.debuffRemaining = 0
|
TargetCC.prototype.debuffRemaining = 0
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
local AceOO = AceLibrary("AceOO-2.0")
|
local TargetCast = IceCore_CreateClass(IceCastBar)
|
||||||
|
|
||||||
local TargetCast = AceOO.Class(IceCastBar)
|
|
||||||
|
|
||||||
TargetCast.prototype.notInterruptible = false
|
TargetCast.prototype.notInterruptible = false
|
||||||
|
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
local AceOO = AceLibrary("AceOO-2.0")
|
IceTargetHealth = IceCore_CreateClass(IceUnitBar)
|
||||||
|
|
||||||
IceTargetHealth = AceOO.Class(IceUnitBar)
|
|
||||||
|
|
||||||
IceTargetHealth.prototype.color = nil
|
IceTargetHealth.prototype.color = nil
|
||||||
IceTargetHealth.prototype.determineColor = true
|
IceTargetHealth.prototype.determineColor = true
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
local AceOO = AceLibrary("AceOO-2.0")
|
IceTargetInfo = IceCore_CreateClass(IceElement)
|
||||||
|
|
||||||
IceTargetInfo = AceOO.Class(IceElement)
|
|
||||||
|
|
||||||
local DogTag = nil
|
local DogTag = nil
|
||||||
|
|
||||||
@ -53,8 +51,10 @@ function IceTargetInfo.prototype:Enable(core)
|
|||||||
IceTargetInfo.super.prototype.Enable(self, core)
|
IceTargetInfo.super.prototype.Enable(self, core)
|
||||||
|
|
||||||
if IceHUD.IceCore:ShouldUseDogTags() then
|
if IceHUD.IceCore:ShouldUseDogTags() then
|
||||||
DogTag = AceLibrary("LibDogTag-3.0")
|
DogTag = LibStub("LibDogTag-3.0", true)
|
||||||
AceLibrary("LibDogTag-Unit-3.0")
|
if DogTag then
|
||||||
|
LibStub("LibDogTag-Unit-3.0")
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
self:RegisterEvent("UNIT_AURA", "AuraChanged")
|
self:RegisterEvent("UNIT_AURA", "AuraChanged")
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
local AceOO = AceLibrary("AceOO-2.0")
|
|
||||||
|
|
||||||
-- needs to not be local so that we can inherit from it
|
-- needs to not be local so that we can inherit from it
|
||||||
TargetInvuln = AceOO.Class(IceUnitBar)
|
TargetInvuln = IceCore_CreateClass(IceUnitBar)
|
||||||
|
|
||||||
TargetInvuln.prototype.buffName = nil
|
TargetInvuln.prototype.buffName = nil
|
||||||
TargetInvuln.prototype.buffRemaining = 0
|
TargetInvuln.prototype.buffRemaining = 0
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
local AceOO = AceLibrary("AceOO-2.0")
|
IceTargetMana = IceCore_CreateClass(IceUnitBar)
|
||||||
|
|
||||||
IceTargetMana = AceOO.Class(IceUnitBar)
|
|
||||||
IceTargetMana.prototype.registerEvents = true
|
IceTargetMana.prototype.registerEvents = true
|
||||||
IceTargetHealth.prototype.color = nil
|
IceTargetHealth.prototype.color = nil
|
||||||
IceTargetMana.prototype.determineColor = true
|
IceTargetMana.prototype.determineColor = true
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
local AceOO = AceLibrary("AceOO-2.0")
|
local SML = LibStub("LibSharedMedia-3.0")
|
||||||
local SML = AceLibrary("LibSharedMedia-3.0")
|
|
||||||
|
|
||||||
local TargetOfTarget = AceOO.Class(IceElement)
|
local TargetOfTarget = IceCore_CreateClass(IceElement)
|
||||||
|
|
||||||
TargetOfTarget.prototype.stackedDebuffs = nil
|
TargetOfTarget.prototype.stackedDebuffs = nil
|
||||||
TargetOfTarget.prototype.buffSize = nil
|
TargetOfTarget.prototype.buffSize = nil
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
local AceOO = AceLibrary("AceOO-2.0")
|
local TargetTargetCast = IceCore_CreateClass(IceCastBar)
|
||||||
|
|
||||||
local TargetTargetCast = AceOO.Class(IceCastBar)
|
|
||||||
TargetTargetCast.prototype.scheduledEvent = nil
|
TargetTargetCast.prototype.scheduledEvent = nil
|
||||||
|
|
||||||
local SelfDisplayModeOptions = {"Hide", "Normal"}
|
local SelfDisplayModeOptions = {"Hide", "Normal"}
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
local AceOO = AceLibrary("AceOO-2.0")
|
local TargetTargetHealth = IceCore_CreateClass(IceTargetHealth)
|
||||||
|
|
||||||
local TargetTargetHealth = AceOO.Class(IceTargetHealth)
|
|
||||||
TargetTargetHealth.prototype.scheduledEvent = nil
|
TargetTargetHealth.prototype.scheduledEvent = nil
|
||||||
|
|
||||||
local SelfDisplayModeOptions = {"Color as SelfColor", "Hide", "Normal"}
|
local SelfDisplayModeOptions = {"Color as SelfColor", "Hide", "Normal"}
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
local AceOO = AceLibrary("AceOO-2.0")
|
local TargetTargetMana = IceCore_CreateClass(IceTargetMana)
|
||||||
|
|
||||||
local TargetTargetMana = AceOO.Class(IceTargetMana)
|
|
||||||
TargetTargetMana.prototype.scheduledEvent = nil
|
TargetTargetMana.prototype.scheduledEvent = nil
|
||||||
|
|
||||||
local SelfDisplayModeOptions = {"Hide", "Normal"}
|
local SelfDisplayModeOptions = {"Hide", "Normal"}
|
||||||
|
@ -4,9 +4,7 @@ Author: Caryna/Turalyon EU (Alliance) (updated for Threat-2.0 by 'acapela' of Wo
|
|||||||
Description: adds a threat bar to IceHUD
|
Description: adds a threat bar to IceHUD
|
||||||
]]
|
]]
|
||||||
|
|
||||||
local AceOO = AceLibrary("AceOO-2.0")
|
IceThreat = IceCore_CreateClass(IceUnitBar)
|
||||||
|
|
||||||
IceThreat = AceOO.Class(IceUnitBar)
|
|
||||||
|
|
||||||
IceThreat.prototype.color = nil
|
IceThreat.prototype.color = nil
|
||||||
IceThreat.aggroBar = nil
|
IceThreat.aggroBar = nil
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
local AceOO = AceLibrary("AceOO-2.0")
|
local Totems = IceCore_CreateClass(IceElement)
|
||||||
|
|
||||||
local Totems = AceOO.Class(IceElement)
|
|
||||||
|
|
||||||
-- the below block is copied from TotemFrame.lua
|
-- the below block is copied from TotemFrame.lua
|
||||||
local FIRE_TOTEM_SLOT = 1;
|
local FIRE_TOTEM_SLOT = 1;
|
||||||
|
Reference in New Issue
Block a user