mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40:13 -05:00
- added local copy of _G.IceHUD to modules that reference it frequently for a minor lookup speed boost
This commit is contained in:
@ -1,6 +1,8 @@
|
|||||||
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
|
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
|
||||||
local DogTag = nil
|
local DogTag = nil
|
||||||
|
|
||||||
|
local IceHUD = _G.IceHUD
|
||||||
|
|
||||||
IceBarElement = IceCore_CreateClass(IceElement)
|
IceBarElement = IceCore_CreateClass(IceElement)
|
||||||
|
|
||||||
IceBarElement.BarTextureWidth = 128
|
IceBarElement.BarTextureWidth = 128
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
|
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
|
||||||
IceCastBar = IceCore_CreateClass(IceBarElement)
|
IceCastBar = IceCore_CreateClass(IceBarElement)
|
||||||
|
|
||||||
|
local IceHUD = _G.IceHUD
|
||||||
|
|
||||||
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 }
|
||||||
|
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
|
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
|
||||||
local SML = LibStub("LibSharedMedia-3.0")
|
local SML = LibStub("LibSharedMedia-3.0")
|
||||||
|
|
||||||
|
local IceHUD = _G.IceHUD
|
||||||
|
|
||||||
IceElement = IceCore_CreateClass()
|
IceElement = IceCore_CreateClass()
|
||||||
|
|
||||||
IceElement.TexturePath = IceHUD.Location .. "\\textures\\"
|
IceElement.TexturePath = IceHUD.Location .. "\\textures\\"
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
|
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
|
||||||
IceHUD = LibStub("AceAddon-3.0"):NewAddon("IceHUD", "AceConsole-3.0")
|
IceHUD = LibStub("AceAddon-3.0"):NewAddon("IceHUD", "AceConsole-3.0")
|
||||||
|
|
||||||
|
local IceHUD = IceHUD
|
||||||
|
|
||||||
local SML = LibStub("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")
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
|
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
|
||||||
local CastBar = IceCore_CreateClass(IceCastBar)
|
local CastBar = IceCore_CreateClass(IceCastBar)
|
||||||
|
|
||||||
|
local IceHUD = _G.IceHUD
|
||||||
|
|
||||||
CastBar.prototype.lagBar = nil
|
CastBar.prototype.lagBar = nil
|
||||||
CastBar.prototype.spellCastSent = nil
|
CastBar.prototype.spellCastSent = nil
|
||||||
|
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
|
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
|
||||||
IceClassPowerCounter = IceCore_CreateClass(IceElement)
|
IceClassPowerCounter = IceCore_CreateClass(IceElement)
|
||||||
|
|
||||||
|
local IceHUD = _G.IceHUD
|
||||||
|
|
||||||
IceClassPowerCounter.prototype.runeHeight = 22
|
IceClassPowerCounter.prototype.runeHeight = 22
|
||||||
IceClassPowerCounter.prototype.runeWidth = 36
|
IceClassPowerCounter.prototype.runeWidth = 36
|
||||||
IceClassPowerCounter.prototype.numRunes = 3
|
IceClassPowerCounter.prototype.numRunes = 3
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
|
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
|
||||||
local ComboPoints = IceCore_CreateClass(IceElement)
|
local ComboPoints = IceCore_CreateClass(IceElement)
|
||||||
|
|
||||||
|
local IceHUD = _G.IceHUD
|
||||||
|
|
||||||
ComboPoints.prototype.comboSize = 20
|
ComboPoints.prototype.comboSize = 20
|
||||||
|
|
||||||
-- Constructor --
|
-- Constructor --
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
|
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
|
||||||
IceCustomBar = IceCore_CreateClass(IceUnitBar)
|
IceCustomBar = IceCore_CreateClass(IceUnitBar)
|
||||||
|
|
||||||
|
local IceHUD = _G.IceHUD
|
||||||
|
|
||||||
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"}
|
||||||
local validBuffTimers = {"none", "seconds", "minutes:seconds", "minutes"}
|
local validBuffTimers = {"none", "seconds", "minutes:seconds", "minutes"}
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
|
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
|
||||||
IceCustomCDBar = IceCore_CreateClass(IceUnitBar)
|
IceCustomCDBar = IceCore_CreateClass(IceUnitBar)
|
||||||
|
|
||||||
|
local IceHUD = _G.IceHUD
|
||||||
|
|
||||||
local validDisplayModes = {"Always", "When ready", "When cooling down"}
|
local validDisplayModes = {"Always", "When ready", "When cooling down"}
|
||||||
local validBuffTimers = {"none", "seconds", "minutes:seconds", "minutes"}
|
local validBuffTimers = {"none", "seconds", "minutes:seconds", "minutes"}
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
|
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
|
||||||
IceCustomCount = IceCore_CreateClass(IceElement)
|
IceCustomCount = IceCore_CreateClass(IceElement)
|
||||||
|
|
||||||
|
local IceHUD = _G.IceHUD
|
||||||
|
|
||||||
IceCustomCount.prototype.countSize = 20
|
IceCustomCount.prototype.countSize = 20
|
||||||
IceCustomCount.prototype.lastPoints = 0
|
IceCustomCount.prototype.lastPoints = 0
|
||||||
|
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
|
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
|
||||||
local EclipseBar = IceCore_CreateClass(IceBarElement)
|
local EclipseBar = IceCore_CreateClass(IceBarElement)
|
||||||
|
|
||||||
|
local IceHUD = _G.IceHUD
|
||||||
|
|
||||||
EclipseBar.prototype.barUpdateColor = "EclipseLunar"
|
EclipseBar.prototype.barUpdateColor = "EclipseLunar"
|
||||||
EclipseBar.prototype.direction = "none"
|
EclipseBar.prototype.direction = "none"
|
||||||
|
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
|
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
|
||||||
local LacerateCount = IceCore_CreateClass(IceElement)
|
local LacerateCount = IceCore_CreateClass(IceElement)
|
||||||
|
|
||||||
|
local IceHUD = _G.IceHUD
|
||||||
|
|
||||||
LacerateCount.prototype.lacerateSize = 20
|
LacerateCount.prototype.lacerateSize = 20
|
||||||
LacerateCount.prototype.numLacerates = 3
|
LacerateCount.prototype.numLacerates = 3
|
||||||
|
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
|
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
|
||||||
local MaelstromCount = IceCore_CreateClass(IceElement)
|
local MaelstromCount = IceCore_CreateClass(IceElement)
|
||||||
|
|
||||||
|
local IceHUD = _G.IceHUD
|
||||||
|
|
||||||
MaelstromCount.prototype.maelstromSize = 20
|
MaelstromCount.prototype.maelstromSize = 20
|
||||||
|
|
||||||
-- Constructor --
|
-- Constructor --
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
|
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
|
||||||
local PlayerHealth = IceCore_CreateClass(IceUnitBar)
|
local PlayerHealth = IceCore_CreateClass(IceUnitBar)
|
||||||
|
|
||||||
|
local IceHUD = _G.IceHUD
|
||||||
|
|
||||||
PlayerHealth.prototype.resting = nil
|
PlayerHealth.prototype.resting = nil
|
||||||
PlayerHealth.prototype.pendingBlizzardPartyHide = false
|
PlayerHealth.prototype.pendingBlizzardPartyHide = false
|
||||||
|
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
|
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
|
||||||
local PlayerMana = IceCore_CreateClass(IceUnitBar)
|
local PlayerMana = IceCore_CreateClass(IceUnitBar)
|
||||||
|
|
||||||
|
local IceHUD = _G.IceHUD
|
||||||
|
|
||||||
PlayerMana.prototype.manaType = nil
|
PlayerMana.prototype.manaType = nil
|
||||||
PlayerMana.prototype.tickStart = nil
|
PlayerMana.prototype.tickStart = nil
|
||||||
PlayerMana.prototype.previousEnergy = nil
|
PlayerMana.prototype.previousEnergy = nil
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
|
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
|
||||||
local Runes = IceCore_CreateClass(IceElement)
|
local Runes = IceCore_CreateClass(IceElement)
|
||||||
|
|
||||||
|
local IceHUD = _G.IceHUD
|
||||||
|
|
||||||
-- 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
|
||||||
local RUNETYPE_BLOOD = 1;
|
local RUNETYPE_BLOOD = 1;
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
|
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
|
||||||
local SliceAndDice = IceCore_CreateClass(IceUnitBar)
|
local SliceAndDice = IceCore_CreateClass(IceUnitBar)
|
||||||
|
|
||||||
|
local IceHUD = _G.IceHUD
|
||||||
|
|
||||||
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...
|
||||||
local NetherbladeEquipLocList = {1, 3, 5, 7, 10} --"HeadSlot", "ShoulderSlot", "ChestSlot", "LegsSlot", "HandsSlot"}
|
local NetherbladeEquipLocList = {1, 3, 5, 7, 10} --"HeadSlot", "ShoulderSlot", "ChestSlot", "LegsSlot", "HandsSlot"}
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
|
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
|
||||||
local SunderCount = IceCore_CreateClass(IceElement)
|
local SunderCount = IceCore_CreateClass(IceElement)
|
||||||
|
|
||||||
|
local IceHUD = _G.IceHUD
|
||||||
|
|
||||||
SunderCount.prototype.sunderSize = 20
|
SunderCount.prototype.sunderSize = 20
|
||||||
SunderCount.prototype.numSunders = 3
|
SunderCount.prototype.numSunders = 3
|
||||||
|
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
|
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
|
||||||
IceTargetHealth = IceCore_CreateClass(IceUnitBar)
|
IceTargetHealth = IceCore_CreateClass(IceUnitBar)
|
||||||
|
|
||||||
|
local IceHUD = _G.IceHUD
|
||||||
|
|
||||||
IceTargetHealth.prototype.color = nil
|
IceTargetHealth.prototype.color = nil
|
||||||
IceTargetHealth.prototype.determineColor = true
|
IceTargetHealth.prototype.determineColor = true
|
||||||
IceTargetHealth.prototype.registerEvents = true
|
IceTargetHealth.prototype.registerEvents = true
|
||||||
|
@ -7,6 +7,8 @@ Description: adds a threat bar to IceHUD
|
|||||||
|
|
||||||
IceThreat = IceCore_CreateClass(IceUnitBar)
|
IceThreat = IceCore_CreateClass(IceUnitBar)
|
||||||
|
|
||||||
|
local IceHUD = _G.IceHUD
|
||||||
|
|
||||||
IceThreat.prototype.color = nil
|
IceThreat.prototype.color = nil
|
||||||
IceThreat.aggroBar = nil
|
IceThreat.aggroBar = nil
|
||||||
IceThreat.aggroBarMulti = nil
|
IceThreat.aggroBarMulti = nil
|
||||||
|
Reference in New Issue
Block a user