diff Main.lua @ 249:3fe3e55c327e

Added command and GUI for prototype of an in-game comment-submission system.
author James D. Callahan III <jcallahan@curse.com>
date Thu, 14 Mar 2013 16:36:36 -0500
parents 4cb26edfd905
children cba604389d92
line wrap: on
line diff
--- a/Main.lua	Tue Mar 12 08:44:32 2013 -0500
+++ b/Main.lua	Thu Mar 14 16:36:36 2013 -0500
@@ -17,7 +17,7 @@
 local ADDON_NAME, private = ...
 
 local LibStub = _G.LibStub
-local WDP = LibStub("AceAddon-3.0"):NewAddon(ADDON_NAME, "AceEvent-3.0", "AceTimer-3.0")
+local WDP = LibStub("AceAddon-3.0"):NewAddon(ADDON_NAME, "AceConsole-3.0", "AceEvent-3.0", "AceTimer-3.0")
 
 local deformat = LibStub("LibDeformat-3.0")
 local LPJ = LibStub("LibPetJournal-2.0")
@@ -400,6 +400,8 @@
         end
         return unit_type
     end
+
+    private.ParseGUID = ParseGUID
 end -- do-block
 
 
@@ -720,6 +722,8 @@
     end
     raw_db.build_num = build_num
     raw_db.version = DB_VERSION
+
+    self:RegisterChatCommand("comment", private.ProcessCommentCommand)
 end