green_t refactoring

This commit is contained in:
Manuel Simon Hirsig
2016-08-31 04:09:34 +02:00
parent 02952ba91a
commit 27e592bead
10 changed files with 65 additions and 65 deletions
+7 -7
View File
@@ -996,10 +996,10 @@ function public.CreateAuctionResultsTable(parent, config)
local numRows = 16
rt.ROW_HEIGHT = (parent:GetHeight() - HEAD_HEIGHT - HEAD_SPACE) / numRows
rt.scrollDisabled = nil
rt.expanded = {}
rt.handlers = {}
rt.sorts = {}
rt.records = {}
rt.expanded = t
rt.handlers = t
rt.sorts = t
rt.records = t
rt.rowInfo = {numDisplayRows=0}
for name, func in methods do
@@ -1045,7 +1045,7 @@ function public.CreateAuctionResultsTable(parent, config)
_G[scrollBar:GetName()..'ScrollDownButton']:Hide()
-- create the header cells
rt.headCells = {}
rt.headCells = t
for i, column_config in rt.config do
local cell = CreateFrame('Button', nil, rt.contentFrame)
cell:SetHeight(HEAD_HEIGHT)
@@ -1088,7 +1088,7 @@ function public.CreateAuctionResultsTable(parent, config)
end
-- create the rows
rt.rows = {}
rt.rows = t
for i = 1, numRows do
local row = CreateFrame('Frame', nil, rt.contentFrame)
row:SetHeight(rt.ROW_HEIGHT)
@@ -1106,7 +1106,7 @@ function public.CreateAuctionResultsTable(parent, config)
row.highlight = highlight
row.rt = rt
row.cells = {}
row.cells = t
for j=1, getn(rt.config) do
local cell = CreateFrame('Button', nil, row)
local text = cell:CreateFontString()
+2 -2
View File
@@ -14,7 +14,7 @@ function LOAD()
aux_background:SetAllPoints(DropDownList1Backdrop)
blizzard_backdrop = DropDownList1Backdrop:GetBackdrop()
hook('ToggleDropDownMenu', function(...) temp=arg
local ret = {orig.ToggleDropDownMenu(unpack(arg)) }
local ret = temp-ret(orig.ToggleDropDownMenu(unpack(arg)))
local dropdown = _G[arg[4] or ''] or this:GetParent()
if strfind(dropdown:GetName() or '', '^aux_frame%d+$') then
set_aux_dropdown_style(dropdown)
@@ -290,7 +290,7 @@ do
local self = {
_frame = parent,
_orientation = orientation,
_tabs = {},
_tabs = t,
}
return setmetatable(self, mt)
end
+5 -5
View File
@@ -445,11 +445,11 @@ function public.CreateScrollingTable(parent)
-- setup default values
st.isTSMScrollingTable = true
st.sizes = {}
st.headCols = {}
st.rows = {}
st.handlers = {}
st.sortInfo = {enabled=nil}
st.sizes = t
st.headCols = t
st.rows = t
st.handlers = t
st.sortInfo = t
st.colInfo = DEFAULT_COL_INFO
return st