Mercurial > wow > breuesk
comparison Core.lua @ 66:331b5e176d79
Convenience command to build and populate a brand new list
author | John@Doomsday |
---|---|
date | Tue, 27 Mar 2012 10:18:55 -0400 |
parents | 94ae80d58903 |
children | a177b863ed6c |
comparison
equal
deleted
inserted
replaced
65:d3f64d7246b3 | 66:331b5e176d79 |
---|---|
50 bsk:RegisterChatCommand("bsk", HandlePassThrough) | 50 bsk:RegisterChatCommand("bsk", HandlePassThrough) |
51 end | 51 end |
52 | 52 |
53 function OnEnable() | 53 function OnEnable() |
54 CreateWorkingStateFromChanges(db.profile.changes) | 54 CreateWorkingStateFromChanges(db.profile.changes) |
55 CreateGUI() | 55 --CreateGUI() |
56 end | 56 end |
57 | 57 |
58 function HandleCommand(paramIn) | 58 function HandleCommand(paramIn) |
59 local param = { strsplit(" ", paramIn) } | 59 local param = { strsplit(" ", paramIn) } |
60 local FixPersonName = function(p) | 60 local FixPersonName = function(p) |
169 if not arg1 or not arg2 then | 169 if not arg1 or not arg2 then |
170 PrintTable(param) | 170 PrintTable(param) |
171 return | 171 return |
172 end | 172 end |
173 RenameList(arg1,arg2) | 173 RenameList(arg1,arg2) |
174 elseif action == "generate" then | |
175 if not arg1 then | |
176 PrintTable(param) | |
177 return | |
178 end | |
179 PersonList:AddMissing() | |
180 CreateList(arg1) | |
181 PopulateListRandom(arg1) | |
174 else | 182 else |
175 CreateGUI() | 183 CreateGUI() |
176 end | 184 end |
177 | 185 |
178 --if frame == nil then | 186 --if frame == nil then |