- added local copy of _G.IceHUD to modules that reference it frequently for a minor lookup speed boost

This commit is contained in:
Parnic
2010-10-20 05:22:27 +00:00
parent 0fc23444e2
commit af5574e4a6
20 changed files with 38 additions and 0 deletions

View File

@ -1,6 +1,8 @@
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
local DogTag = nil
local IceHUD = _G.IceHUD
IceBarElement = IceCore_CreateClass(IceElement)
IceBarElement.BarTextureWidth = 128

View File

@ -1,6 +1,7 @@
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
IceCastBar = IceCore_CreateClass(IceBarElement)
local IceHUD = _G.IceHUD
IceCastBar.Actions = { None = 0, Cast = 1, Channel = 2, Instant = 3, Success = 4, Failure = 5 }

View File

@ -1,6 +1,8 @@
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
local SML = LibStub("LibSharedMedia-3.0")
local IceHUD = _G.IceHUD
IceElement = IceCore_CreateClass()
IceElement.TexturePath = IceHUD.Location .. "\\textures\\"

View File

@ -1,6 +1,8 @@
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
IceHUD = LibStub("AceAddon-3.0"):NewAddon("IceHUD", "AceConsole-3.0")
local IceHUD = IceHUD
local SML = LibStub("LibSharedMedia-3.0")
local ACR = LibStub("AceConfigRegistry-3.0")
local ConfigDialog = LibStub("AceConfigDialog-3.0")

View File

@ -1,6 +1,8 @@
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
local CastBar = IceCore_CreateClass(IceCastBar)
local IceHUD = _G.IceHUD
CastBar.prototype.lagBar = nil
CastBar.prototype.spellCastSent = nil

View File

@ -1,6 +1,8 @@
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
IceClassPowerCounter = IceCore_CreateClass(IceElement)
local IceHUD = _G.IceHUD
IceClassPowerCounter.prototype.runeHeight = 22
IceClassPowerCounter.prototype.runeWidth = 36
IceClassPowerCounter.prototype.numRunes = 3

View File

@ -1,6 +1,8 @@
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
local ComboPoints = IceCore_CreateClass(IceElement)
local IceHUD = _G.IceHUD
ComboPoints.prototype.comboSize = 20
-- Constructor --

View File

@ -1,6 +1,8 @@
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
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 buffOrDebuff = {"buff", "debuff"}
local validBuffTimers = {"none", "seconds", "minutes:seconds", "minutes"}

View File

@ -1,6 +1,7 @@
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
IceCustomCDBar = IceCore_CreateClass(IceUnitBar)
local IceHUD = _G.IceHUD
local validDisplayModes = {"Always", "When ready", "When cooling down"}
local validBuffTimers = {"none", "seconds", "minutes:seconds", "minutes"}

View File

@ -1,6 +1,8 @@
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
IceCustomCount = IceCore_CreateClass(IceElement)
local IceHUD = _G.IceHUD
IceCustomCount.prototype.countSize = 20
IceCustomCount.prototype.lastPoints = 0

View File

@ -1,6 +1,8 @@
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
local EclipseBar = IceCore_CreateClass(IceBarElement)
local IceHUD = _G.IceHUD
EclipseBar.prototype.barUpdateColor = "EclipseLunar"
EclipseBar.prototype.direction = "none"

View File

@ -1,6 +1,8 @@
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
local LacerateCount = IceCore_CreateClass(IceElement)
local IceHUD = _G.IceHUD
LacerateCount.prototype.lacerateSize = 20
LacerateCount.prototype.numLacerates = 3

View File

@ -1,6 +1,8 @@
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
local MaelstromCount = IceCore_CreateClass(IceElement)
local IceHUD = _G.IceHUD
MaelstromCount.prototype.maelstromSize = 20
-- Constructor --

View File

@ -1,6 +1,8 @@
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
local PlayerHealth = IceCore_CreateClass(IceUnitBar)
local IceHUD = _G.IceHUD
PlayerHealth.prototype.resting = nil
PlayerHealth.prototype.pendingBlizzardPartyHide = false

View File

@ -1,6 +1,8 @@
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
local PlayerMana = IceCore_CreateClass(IceUnitBar)
local IceHUD = _G.IceHUD
PlayerMana.prototype.manaType = nil
PlayerMana.prototype.tickStart = nil
PlayerMana.prototype.previousEnergy = nil

View File

@ -1,6 +1,8 @@
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
local Runes = IceCore_CreateClass(IceElement)
local IceHUD = _G.IceHUD
-- blizzard cracks me up. the below block is copied verbatim from RuneFrame.lua ;)
--Readability == win
local RUNETYPE_BLOOD = 1;

View File

@ -1,6 +1,8 @@
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
local SliceAndDice = IceCore_CreateClass(IceUnitBar)
local IceHUD = _G.IceHUD
local NetherbladeItemIdList = {29044, 29045, 29046, 29047, 29048}
-- 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"}

View File

@ -1,6 +1,8 @@
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
local SunderCount = IceCore_CreateClass(IceElement)
local IceHUD = _G.IceHUD
SunderCount.prototype.sunderSize = 20
SunderCount.prototype.numSunders = 3

View File

@ -1,6 +1,8 @@
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
IceTargetHealth = IceCore_CreateClass(IceUnitBar)
local IceHUD = _G.IceHUD
IceTargetHealth.prototype.color = nil
IceTargetHealth.prototype.determineColor = true
IceTargetHealth.prototype.registerEvents = true

View File

@ -7,6 +7,8 @@ Description: adds a threat bar to IceHUD
IceThreat = IceCore_CreateClass(IceUnitBar)
local IceHUD = _G.IceHUD
IceThreat.prototype.color = nil
IceThreat.aggroBar = nil
IceThreat.aggroBarMulti = nil