Mercurial > wow > breuesk
comparison Core.lua @ 85:f938ec08d5a6
Cleanup
author | John@Yosemite-PC |
---|---|
date | Sat, 14 Apr 2012 10:12:06 -0400 |
parents | 70fac446f3ee |
children | 22b37c800bc4 |
comparison
equal
deleted
inserted
replaced
84:70fac446f3ee | 85:f938ec08d5a6 |
---|---|
6 -- (*) all actions should reference the player list rather than player names | 6 -- (*) all actions should reference the player list rather than player names |
7 -- (?) player entries should persist as long as any list or change references | 7 -- (?) player entries should persist as long as any list or change references |
8 -- (*) lists store number slots rather than flat indexing | 8 -- (*) lists store number slots rather than flat indexing |
9 -- ( ) database and comm versioning | 9 -- ( ) database and comm versioning |
10 -- (_) limited communication - everyone trusts the loot master | 10 -- (_) limited communication - everyone trusts the loot master |
11 -- (_) single user + admin gui (manual suicides) | 11 -- (*) single user + admin gui (manual suicides) |
12 -- (_) single user + admin gui (master loot) | 12 -- (*) single user + admin gui (master loot) |
13 -- (*) whisper UI | 13 -- (*) whisper UI |
14 -- ( ) communication and list merging/trimming | 14 -- (_) communication and list merging/trimming |
15 -- ( ) admins | 15 -- (_) admins |
16 -- (*) players gui | 16 -- (*) players gui |
17 -- ( ) undo | 17 -- ( ) undo |
18 -- ( ) crypto / protection against tampering | 18 -- ( ) crypto / protection against tampering |
19 -- ( ) alt tracking | 19 -- ( ) alt tracking |
20 -- (*) reserves | 20 -- (*) reserves |
22 local _G=_G | 22 local _G=_G |
23 local strsplit=strsplit | 23 local strsplit=strsplit |
24 local string=string | 24 local string=string |
25 local sformat=string.format | 25 local sformat=string.format |
26 local bsk = LibStub("AceAddon-3.0"):NewAddon("bsk","AceConsole-3.0") | 26 local bsk = LibStub("AceAddon-3.0"):NewAddon("bsk","AceConsole-3.0") |
27 -- "AceHook-3.0", "AceComm-3.0", "AceSerializer-3.0" | |
28 _G.bsk=bsk | 27 _G.bsk=bsk |
29 local L = LibStub("AceLocale-3.0"):GetLocale("bsk", false) | 28 local L = LibStub("AceLocale-3.0"):GetLocale("bsk", false) |
30 setfenv(1,bsk) | 29 setfenv(1,bsk) |
31 | 30 |
32 local pkgrev = " @project-revision@ " | 31 local pkgrev = " @project-revision@ " |
59 end | 58 end |
60 | 59 |
61 function OnEnable() | 60 function OnEnable() |
62 CreateWorkingStateFromChanges(db.profile.changes) | 61 CreateWorkingStateFromChanges(db.profile.changes) |
63 InitializeState() | 62 InitializeState() |
64 --CreateGUI() | |
65 end | 63 end |
66 | 64 |
67 function HandleCommand(paramIn) | 65 function HandleCommand(paramIn) |
68 local param = { strsplit(" ", paramIn) } | 66 local param = { strsplit(" ", paramIn) } |
69 local FixPersonName = function(p) | 67 local FixPersonName = function(p) |
199 elseif action == "state" then | 197 elseif action == "state" then |
200 print(state) | 198 print(state) |
201 else | 199 else |
202 CreateGUI() | 200 CreateGUI() |
203 end | 201 end |
204 | |
205 --if frame == nil then | |
206 --CreateGUI() | |
207 --ShowGUI() | |
208 --else | |
209 --ShowGUI() | |
210 --end | |
211 | |
212 end | 202 end |
213 | 203 |
214 defaults = { | 204 defaults = { |
215 profile = { | 205 profile = { |
216 persons = {}, | 206 persons = {}, |
217 changes = {}, | 207 changes = {}, |
218 lists = {} | 208 lists = {} |
219 } | 209 } |
220 } | 210 } |
221 | 211 |
222 |