Skip to content

Commit

Permalink
Move util funcs into their own file
Browse files Browse the repository at this point in the history
  • Loading branch information
tekkub committed Dec 14, 2009
1 parent 40d7cd3 commit 08857c6
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
11 changes: 0 additions & 11 deletions AddonTemplate.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,6 @@ local myname, ns = ...
local defaults, defaultsPC, db, dbpc = {}, {}


------------------------------
-- Util Functions --
------------------------------

local myfullname = GetAddOnMetadata(myname, "Title")
local function Print(...) print("|cFF33FF99".. myfullname.. "|r:", ...) end

local debugf = tekDebug and tekDebug:GetFrame(myname)
local function Debug(...) if debugf then debugf:AddMessage(string.join(", ", tostringall(...))) end end


-----------------------------
-- Event Handler --
-----------------------------
Expand Down
2 changes: 2 additions & 0 deletions AddonTemplate.toc
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,6 @@ tekKonfigAboutPanel.lua

Locale.lua
Slashcommand.lua
UtilityFunctions.lua

AddonTemplate.lua
9 changes: 9 additions & 0 deletions UtilityFunctions.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@

local myname, ns = ...


local myfullname = GetAddOnMetadata(myname, "Title")
function ns.Print(...) print("|cFF33FF99".. myfullname.. "|r:", ...) end

local debugf = tekDebug and tekDebug:GetFrame(myname)
function ns.Debug(...) if debugf then debugf:AddMessage(string.join(", ", tostringall(...))) end end

0 comments on commit 08857c6

Please sign in to comment.