Mercurial > wow > ouroloot
diff gui.lua @ 122:fb4bda3ad05c
Various trivial cleanups.
author | Farmbuyer of US-Kilrogg <farmbuyer@gmail.com> |
---|---|
date | Fri, 17 Aug 2012 01:04:38 -0400 |
parents | ec5174529e0f |
children | a9cf9b2fbf9b |
line wrap: on
line diff
--- a/gui.lua Fri Aug 17 00:34:05 2012 -0400 +++ b/gui.lua Fri Aug 17 01:04:38 2012 -0400 @@ -467,21 +467,13 @@ opt_starting_index = nil end if not self.history.st then - --print"creating ST!" - self.history.st = { - --[[{ kind = "realm", - cols = setmetatable({ - { value = self.history.realm }, - }, time_column1_used_mt) - }]] - } + self.history.st = {} end -- for now if self.hist_clean == #self.history then return end local st = self.history.st - --print("starting history loop, #st ==", #st, "#history ==", #self.history) for i,t in ipairs(st) do del(t.cols[1]) del(t.cols[2]) @@ -539,7 +531,6 @@ end end - --print("finished history loop, #st ==", #st) self.hist_clean = cache_okay and #self.history or nil end end @@ -795,7 +786,7 @@ ]] do - --local next_insertion_position = 2 -- position in taborder + -- position in taborder local next_insertion_position = #gui.taborder + 1 local removed, saved_offset @@ -1422,7 +1413,7 @@ -- Calling SetData breaks (trying to call Refresh) if g_loot hasn't gone -- through this loop. addon:_fill_out_eoi_data(1) - -- safety check begin + --[[ safety check begin for i,e in ipairs(g_dloot) do if type(e.cols) ~= 'table' then addon:Print("ARGH, index",i,"bad in eoi_OGS, type",type(e.cols), @@ -1431,7 +1422,7 @@ tabledump(e) end end - -- safety check end + -- safety check end]] ST:SetData(g_dloot) ST:EnableSelection(true) ST:RegisterEvents{ @@ -1452,7 +1443,7 @@ end ST.OuroLoot_Refresh = function (self, opt_index) addon:_fill_out_eoi_data(opt_index) - -- safety check begin + --[[ safety check begin for i,e in ipairs(g_dloot) do if type(e.cols) ~= 'table' then addon:Print("ARGH, index",i,"bad in eoi refresh, refreshed at", opt_index, "type",type(e.cols), @@ -1461,7 +1452,7 @@ tabledump(e) end end - -- safety check end + -- safety check end]] self:SortData() -- calls hooked refresh end @@ -1733,7 +1724,6 @@ cellFrame.text:SetText(cell.value) cellFrame.text:SetTextColor(1,1,1,1) - --stable:SetHighLightColor (rowFrame, eoi_st_otherrow_bgcolortable[h.kind]) stable:SetHighLightColor (rowFrame, eoi_st_otherrow_bgcolortable_default) end