Skip to content

Commit

Permalink
Namespace!
Browse files Browse the repository at this point in the history
  • Loading branch information
tekkub committed Jan 5, 2010
1 parent 2fa90ff commit bd36cc4
Show file tree
Hide file tree
Showing 39 changed files with 44 additions and 27 deletions.
2 changes: 1 addition & 1 deletion Config.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@


local Cork = Cork
local myname, Cork = ...

local GAP = 8
local tekcheck = LibStub("tekKonfig-Checkbox")
Expand Down
5 changes: 4 additions & 1 deletion Cork.lua
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@

local myname, Cork = ...
local ldb, ae = LibStub:GetLibrary("LibDataBroker-1.1"), LibStub("AceEvent-3.0")

Cork = {db = {}, dbpc = {}, petmappings = {player = "pet"}, defaultspc = {castonpets = false, multithreshold = 2, tooltiplimit = 10, raid_thresh = 5}, corks = {}, petunits = {pet = true}, keyblist = {CorkIt = true, type = true, Scan = true, Init = true, configframe = true, RaidLine = true, lowpriority = true}}
local corks = Cork.corks
Cork.corks, Cork.db, Cork.dbpc, Cork.petmappings, Cork.petunits = {}, {}, {}, {player = "pet"}, {pet = true}
Cork.defaultspc, Cork.keyblist = {castonpets = false, multithreshold = 2, tooltiplimit = 10, raid_thresh = 5}, {CorkIt = true, type = true, Scan = true, Init = true, configframe = true, RaidLine = true, lowpriority = true}

local defaults = {point = "TOP", x = 0, y = -100, showanchor = true, showunit = false, bindwheel = false}
local tooltip, anchor

Expand Down
1 change: 1 addition & 0 deletions MacroGenerator.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@

local myname, Cork = ...
local MAX_ACCOUNT_MACROS, MAX_CHARACTER_MACROS = 36, 18

local function GetMacroID()
Expand Down
2 changes: 2 additions & 0 deletions Mousewheel.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@

local myname, Cork = ...

-- Dynamic mousewheel binding module, originally created by Adirelle <[email protected]>

local function ClearBindings()
Expand Down
2 changes: 2 additions & 0 deletions modules/BuffItems.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@

local myname, Cork = ...

-- Items only available at 80
if UnitLevel("player") < 80 then return end

Expand Down
2 changes: 1 addition & 1 deletion modules/Combine.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

local Cork = Cork
local myname, Cork = ...
local IconLine = Cork.IconLine
local ldb, ae = LibStub:GetLibrary("LibDataBroker-1.1"), LibStub("AceEvent-3.0")

Expand Down
1 change: 1 addition & 0 deletions modules/DeathKnight.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@

local myname, Cork = ...
local _, c = UnitClass("player")
if c ~= "DEATHKNIGHT" then return end

Expand Down
1 change: 1 addition & 0 deletions modules/Druid.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@

local myname, Cork = ...
local _, c = UnitClass("player")
if c ~= "DRUID" then return end

Expand Down
2 changes: 1 addition & 1 deletion modules/Glyphs.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

local Cork = Cork
local myname, Cork = ...
local SpellCastableOnUnit = Cork.SpellCastableOnUnit
local ldb, ae = LibStub:GetLibrary("LibDataBroker-1.1"), LibStub("AceEvent-3.0")

Expand Down
1 change: 1 addition & 0 deletions modules/Hunter.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@

local myname, Cork = ...
local _, c = UnitClass("player")
if c ~= "HUNTER" then return end

Expand Down
2 changes: 1 addition & 1 deletion modules/HunterPetHappy.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ local _, c = UnitClass("player")
if c ~= "HUNTER" then return end


local Cork = Cork
local myname, Cork = ...
local UnitAura = UnitAura
local IconLine = Cork.IconLine
local ldb, ae = LibStub:GetLibrary("LibDataBroker-1.1"), LibStub("AceEvent-3.0")
Expand Down
2 changes: 1 addition & 1 deletion modules/HunterViper.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ if token ~= "HUNTER" then return end

local spellname, _, icon = GetSpellInfo(34074)

local Cork = Cork
local myname, Cork = ...
local UnitAura = UnitAura
local ldb, ae = LibStub:GetLibrary("LibDataBroker-1.1"), LibStub("AceEvent-3.0")

Expand Down
1 change: 1 addition & 0 deletions modules/Mage.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@

local myname, Cork = ...
local _, c = UnitClass("player")
if c ~= "MAGE" then return end

Expand Down
2 changes: 1 addition & 1 deletion modules/MageIntellect.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ local _, c = UnitClass("player")
if c ~= "MAGE" then return end


local Cork = Cork
local myname, Cork = ...
local UnitAura = UnitAura
local IsSpellInRange = Cork.IsSpellInRange
local ldb, ae = LibStub:GetLibrary("LibDataBroker-1.1"), LibStub("AceEvent-3.0")
Expand Down
1 change: 1 addition & 0 deletions modules/Paladin.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@

local myname, Cork = ...
local _, c = UnitClass("player")
if c ~= "PALADIN" then return end

Expand Down
2 changes: 1 addition & 1 deletion modules/PaladinBlessings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ local _, c = UnitClass("player")
if c ~= "PALADIN" then return end


local Cork = Cork
local myname, Cork = ...
local UnitAura = UnitAura
local IsSpellInRange, SpellCastableOnUnit, IconLine = Cork.IsSpellInRange, Cork.SpellCastableOnUnit, Cork.IconLine
local ldb, ae = LibStub:GetLibrary("LibDataBroker-1.1"), LibStub("AceEvent-3.0")
Expand Down
2 changes: 1 addition & 1 deletion modules/PaladinCrusaderAura.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ local _, c = UnitClass("player")
if c ~= "PALADIN" then return end


local Cork = Cork
local myname, Cork = ...
local UnitAura = UnitAura

local spellname, _, icon = GetSpellInfo(32223)
Expand Down
2 changes: 1 addition & 1 deletion modules/PaladinSeal.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ local _, c = UnitClass("player")
if c ~= "PALADIN" then return end


local Cork = Cork
local myname, Cork = ...
local UnitAura = UnitAura
local SpellCastableOnUnit = Cork.SpellCastableOnUnit
local ldb, ae = LibStub:GetLibrary("LibDataBroker-1.1"), LibStub("AceEvent-3.0")
Expand Down
1 change: 1 addition & 0 deletions modules/Priest.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@

local myname, Cork = ...
local _, c = UnitClass("player")
if c ~= "PRIEST" then return end

Expand Down
2 changes: 1 addition & 1 deletion modules/Repairs.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@


local Cork = Cork
local myname, Cork = ...
local SpellCastableOnUnit, IconLine = Cork.SpellCastableOnUnit, Cork.IconLine
local ldb, ae = LibStub:GetLibrary("LibDataBroker-1.1"), LibStub("AceEvent-3.0")

Expand Down
1 change: 1 addition & 0 deletions modules/Shaman.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@

local myname, Cork = ...
local _, c = UnitClass("player")
if c ~= "SHAMAN" then return end

Expand Down
2 changes: 1 addition & 1 deletion modules/ShamanWeapon.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ local _, c = UnitClass("player")
if c ~= "SHAMAN" then return end


local Cork = Cork
local myname, Cork = ...
local UnitAura = Cork.UnitAura or UnitAura
local ldb, ae = LibStub:GetLibrary("LibDataBroker-1.1"), LibStub("AceEvent-3.0")
local f, elapsed = CreateFrame("Frame"), 0
Expand Down
2 changes: 1 addition & 1 deletion modules/Shucks.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

local Cork = Cork
local myname, Cork = ...
local SpellCastableOnUnit, IconLine = Cork.SpellCastableOnUnit, Cork.IconLine
local ldb, ae = LibStub:GetLibrary("LibDataBroker-1.1"), LibStub("AceEvent-3.0")

Expand Down
2 changes: 1 addition & 1 deletion modules/Talents.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

local Cork = Cork
local myname, Cork = ...
local SpellCastableOnUnit = Cork.SpellCastableOnUnit
local ldb, ae = LibStub:GetLibrary("LibDataBroker-1.1"), LibStub("AceEvent-3.0")

Expand Down
2 changes: 1 addition & 1 deletion modules/Tracking.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

local Cork = Cork
local myname, Cork = ...
local SpellCastableOnUnit, IconLine = Cork.SpellCastableOnUnit, Cork.IconLine
local ldb, ae = LibStub:GetLibrary("LibDataBroker-1.1"), LibStub("AceEvent-3.0")

Expand Down
1 change: 1 addition & 0 deletions modules/Warlock.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@

local myname, Cork = ...
local _, c = UnitClass("player")
if c ~= "WARLOCK" then return end

Expand Down
2 changes: 1 addition & 1 deletion modules/WarlockHealthstone.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

local Cork = Cork
local myname, Cork = ...
local spellname = GetSpellInfo(6201)
local IconLine = Cork.IconLine(GetItemIcon(5509), spellname)
local ldb, ae = LibStub:GetLibrary("LibDataBroker-1.1"), LibStub("AceEvent-3.0")
Expand Down
2 changes: 1 addition & 1 deletion modules/WarlockPets.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ local _, c = UnitClass("player")
if c ~= "WARLOCK" then return end


local Cork = Cork
local myname, Cork = ...
local IconLine = Cork.IconLine
local ldb, ae = LibStub:GetLibrary("LibDataBroker-1.1"), LibStub("AceEvent-3.0")

Expand Down
2 changes: 1 addition & 1 deletion modules/WarlockSoulLink.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
local _, c = UnitClass("player")
if c ~= "WARLOCK" then return end

local Cork = Cork
local myname, Cork = ...
local UnitAura = UnitAura
local IconLine = Cork.IconLine
local ldb, ae = LibStub:GetLibrary("LibDataBroker-1.1"), LibStub("AceEvent-3.0")
Expand Down
2 changes: 1 addition & 1 deletion modules/WarlockSoulstone.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
local _, c = UnitClass("player")
if c ~= "WARLOCK" then return end

local Cork = Cork
local myname, Cork = ...
local SpellCastableOnUnit, IconLine = Cork.SpellCastableOnUnit, Cork.IconLine
local ldb, ae = LibStub:GetLibrary("LibDataBroker-1.1"), LibStub("AceEvent-3.0")

Expand Down
2 changes: 1 addition & 1 deletion modules/WarlockWeapon.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ local _, c = UnitClass("player")
if c ~= "WARLOCK" then return end


local Cork = Cork
local myname, Cork = ...
local UnitAura = Cork.UnitAura or UnitAura
local ldb, ae = LibStub:GetLibrary("LibDataBroker-1.1"), LibStub("AceEvent-3.0")
local f, elapsed = CreateFrame("Frame"), 0
Expand Down
1 change: 1 addition & 0 deletions modules/Warrior.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@

local myname, Cork = ...
local _, c = UnitClass("player")
if c ~= "WARRIOR" then return end

Expand Down
2 changes: 1 addition & 1 deletion modules/WarriorShout.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ local _, c = UnitClass("player")
if c ~= "WARRIOR" then return end


local Cork = Cork
local myname, Cork = ...
local UnitAura = UnitAura
local SpellCastableOnUnit = Cork.SpellCastableOnUnit
local ldb, ae = LibStub:GetLibrary("LibDataBroker-1.1"), LibStub("AceEvent-3.0")
Expand Down
2 changes: 1 addition & 1 deletion modules/WellFed.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

local Cork = Cork
local myname, Cork = ...
local UnitAura = UnitAura
local ldb, ae = LibStub:GetLibrary("LibDataBroker-1.1"), LibStub("AceEvent-3.0")

Expand Down
2 changes: 1 addition & 1 deletion templates/LastBuffedBuffer.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

local Cork = Cork
local myname, Cork = ...
local UnitAura = Cork.UnitAura or UnitAura
local ldb, ae = LibStub:GetLibrary("LibDataBroker-1.1"), LibStub("AceEvent-3.0")
local blist = {npc = true, vehicle = true, focus = true, target = true}
Expand Down
2 changes: 1 addition & 1 deletion templates/RaidBuffer.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

local Cork = Cork
local myname, Cork = ...
local UnitAura = Cork.UnitAura or UnitAura
local IsSpellInRange = Cork.IsSpellInRange
local ldb, ae = LibStub:GetLibrary("LibDataBroker-1.1"), LibStub("AceEvent-3.0")
Expand Down
2 changes: 1 addition & 1 deletion templates/RaidBuffingItems.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

local Cork = Cork
local myname, Cork = ...
local UnitAura = Cork.UnitAura or UnitAura
local IsSpellInRange = Cork.IsSpellInRange
local ldb, ae = LibStub:GetLibrary("LibDataBroker-1.1"), LibStub("AceEvent-3.0")
Expand Down
2 changes: 1 addition & 1 deletion templates/SelfBuffer.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

local Cork = Cork
local myname, Cork = ...
local UnitAura = Cork.UnitAura or UnitAura
local ldb, ae = LibStub:GetLibrary("LibDataBroker-1.1"), LibStub("AceEvent-3.0")

Expand Down
2 changes: 1 addition & 1 deletion templates/SelfBufferAdvanced.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

local Cork = Cork
local myname, Cork = ...
local UnitAura = Cork.UnitAura or UnitAura
local SpellCastableOnUnit, IconLine = Cork.SpellCastableOnUnit, Cork.IconLine
local ldb, ae = LibStub:GetLibrary("LibDataBroker-1.1"), LibStub("AceEvent-3.0")
Expand Down

0 comments on commit bd36cc4

Please sign in to comment.