From 87b077d712d160653ca2594eb92b5da27b6e09ea Mon Sep 17 00:00:00 2001 From: "U-punta-PC\\punta" Date: Mon, 14 Sep 2009 20:12:10 -0500 Subject: [PATCH] Added slash commands and basic frame --- WeightsWatcher.lua | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/WeightsWatcher.lua b/WeightsWatcher.lua index 0d8c4c7..b01f6ba 100644 --- a/WeightsWatcher.lua +++ b/WeightsWatcher.lua @@ -3,7 +3,20 @@ if not WeightsWatcher then end function WeightsWatcher:OnInitialize() + SLASH_WEIGHTSWATCHER1="/ww" + SLASH_WEIGHTSWATCHER2="/weightswatcher" + SlashCmdList["WEIGHTSWATCHER"] = + function(msg) + commandHandler(msg) + end +end + +function commandHandler(msg) + open_config() +end +function open_config() + WeightsWatcherConfig:Show() end function WeightsWatcher:OnEnable() -- 1.7.9.5