comparison 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
comparison
equal deleted inserted replaced
248:4cb26edfd905 249:3fe3e55c327e
15 -- ADDON NAMESPACE ---------------------------------------------------- 15 -- ADDON NAMESPACE ----------------------------------------------------
16 16
17 local ADDON_NAME, private = ... 17 local ADDON_NAME, private = ...
18 18
19 local LibStub = _G.LibStub 19 local LibStub = _G.LibStub
20 local WDP = LibStub("AceAddon-3.0"):NewAddon(ADDON_NAME, "AceEvent-3.0", "AceTimer-3.0") 20 local WDP = LibStub("AceAddon-3.0"):NewAddon(ADDON_NAME, "AceConsole-3.0", "AceEvent-3.0", "AceTimer-3.0")
21 21
22 local deformat = LibStub("LibDeformat-3.0") 22 local deformat = LibStub("LibDeformat-3.0")
23 local LPJ = LibStub("LibPetJournal-2.0") 23 local LPJ = LibStub("LibPetJournal-2.0")
24 local MapData = LibStub("LibMapData-1.0") 24 local MapData = LibStub("LibMapData-1.0")
25 25
398 if unit_type ~= UNIT_TYPES.PLAYER and unit_type ~= UNIT_TYPES.PET then 398 if unit_type ~= UNIT_TYPES.PLAYER and unit_type ~= UNIT_TYPES.PET then
399 return unit_type, tonumber(guid:sub(6, 10), 16) 399 return unit_type, tonumber(guid:sub(6, 10), 16)
400 end 400 end
401 return unit_type 401 return unit_type
402 end 402 end
403
404 private.ParseGUID = ParseGUID
403 end -- do-block 405 end -- do-block
404 406
405 407
406 local UpdateDBEntryLocation 408 local UpdateDBEntryLocation
407 do 409 do
718 global_db[entry] = {} 720 global_db[entry] = {}
719 end 721 end
720 end 722 end
721 raw_db.build_num = build_num 723 raw_db.build_num = build_num
722 raw_db.version = DB_VERSION 724 raw_db.version = DB_VERSION
725
726 self:RegisterChatCommand("comment", private.ProcessCommentCommand)
723 end 727 end
724 728
725 729
726 function WDP:EventDispatcher(...) 730 function WDP:EventDispatcher(...)
727 local event_name = ... 731 local event_name = ...