Mercurial > wow > breuesk
comparison Core.lua @ 38:7bfbff27a3d7
"Working" list display using a TreeGroup control. There's a small limitation where I can't accurately detect which subtree is open unless the user has made a selection in that tab. Not sure I love that.
Loot lists are displayed with colored names. People not in the raid are grayed out.
author | John@Doomsday |
---|---|
date | Wed, 14 Mar 2012 08:31:31 -0400 |
parents | ecd37523ae04 |
children | 72055fc7e115 |
comparison
equal
deleted
inserted
replaced
37:6362fe301d43 | 38:7bfbff27a3d7 |
---|---|
29 -- 5) pairs() does not have a guaranteed iteration order | 29 -- 5) pairs() does not have a guaranteed iteration order |
30 | 30 |
31 bsk = LibStub("AceAddon-3.0"):NewAddon("bsk","AceConsole-3.0", "AceHook-3.0", "AceComm-3.0", "AceSerializer-3.0") | 31 bsk = LibStub("AceAddon-3.0"):NewAddon("bsk","AceConsole-3.0", "AceHook-3.0", "AceComm-3.0", "AceSerializer-3.0") |
32 local L = LibStub("AceLocale-3.0"):GetLocale("bsk", false) | 32 local L = LibStub("AceLocale-3.0"):GetLocale("bsk", false) |
33 | 33 |
34 local AceGUI = LibStub("AceGUI-3.0") | |
35 | 34 |
36 function bsk:OnInitialize() | 35 function bsk:OnInitialize() |
37 | 36 |
38 self.db = LibStub("AceDB-3.0"):New("BskDB", self.defaults, "Default") | 37 self.db = LibStub("AceDB-3.0"):New("BskDB", self.defaults, "Default") |
39 | 38 |
44 self:RegisterChatCommand("bsk", "HandleCommand") | 43 self:RegisterChatCommand("bsk", "HandleCommand") |
45 end | 44 end |
46 | 45 |
47 function bsk:OnEnable() | 46 function bsk:OnEnable() |
48 bsk:CreateWorkingStateFromChanges(self.db.profile.changes) | 47 bsk:CreateWorkingStateFromChanges(self.db.profile.changes) |
48 bsk:CreateGUI() | |
49 end | 49 end |
50 | 50 |
51 function bsk:HandleCommand(paramIn) | 51 function bsk:HandleCommand(paramIn) |
52 local param = { strsplit(" ", paramIn) } | 52 local param = { strsplit(" ", paramIn) } |
53 local FixPersonName = function(p) | 53 local FixPersonName = function(p) |
169 return | 169 return |
170 end | 170 end |
171 bsk:RenameList(param[2],param[3]) | 171 bsk:RenameList(param[2],param[3]) |
172 elseif param[1] == "selfdestruct" then | 172 elseif param[1] == "selfdestruct" then |
173 bsk:SelfDestruct() | 173 bsk:SelfDestruct() |
174 else | |
175 bsk:CreateGUI() | |
174 end | 176 end |
175 | 177 |
176 --if self.frame == nil then | 178 --if self.frame == nil then |
177 --self:CreateGUI() | 179 --self:CreateGUI() |
178 --self:ShowGUI() | 180 --self:ShowGUI() |