Mercurial > wow > breuesk
comparison Gui.lua @ 82:db7e4ee34dce
Lots of support for mobs with multiple loots
author | John@Yosemite-PC |
---|---|
date | Fri, 13 Apr 2012 23:14:03 -0400 |
parents | 62805e6b46c5 |
children | f844309a0e35 |
comparison
equal
deleted
inserted
replaced
81:62805e6b46c5 | 82:db7e4ee34dce |
---|---|
213 ["Release"] = function(self) self.data = {}; self.widget = nil end, | 213 ["Release"] = function(self) self.data = {}; self.widget = nil end, |
214 ["ItemListEvent"] = function(self) self:Redraw() end, | 214 ["ItemListEvent"] = function(self) self:Redraw() end, |
215 ["Redraw"]= function(self) | 215 ["Redraw"]= function(self) |
216 self.data = {} | 216 self.data = {} |
217 for i,v in pairs(stateitemlist) do | 217 for i,v in pairs(stateitemlist) do |
218 local entry = {value=i, text=v.link, link=v.link, mlid=v.mlid} | 218 local entry = {value=i, text=v.link, link=v.link, mlid=v.mlid, disabled=v.disabled} |
219 table.insert(self.data,entry) | 219 table.insert(self.data,entry) |
220 end | 220 end |
221 if self.widget then | 221 if self.widget then |
222 self.widget:SetList(self.data) | 222 self.widget:SetList(self.data) |
223 LListEventDispatch:Event("Redraw") | 223 LListEventDispatch:Event("Redraw") |