gui refactoring and restyling

This commit is contained in:
Manuel Simon Hirsig
2016-07-26 03:28:31 +02:00
parent abba589092
commit 2aae68702e
3 changed files with 10 additions and 13 deletions
+1 -2
View File
@@ -5,7 +5,7 @@ local ST_COUNT = 0
local ST_ROW_HEIGHT = 15
local ST_ROW_TEXT_SIZE = 13
local ST_HEAD_HEIGHT = 27
local ST_HEAD_SPACE = 4
local ST_HEAD_SPACE = 2
local DEFAULT_COL_INFO = {{width=1}}
@@ -402,7 +402,6 @@ local methods = {
SetColInfo = function(st, colInfo)
colInfo = colInfo or DEFAULT_COL_INFO
-- TSMAPI:Assert(type(colInfo) == 'table' and type(colInfo[1]) == 'table', "Invalid colInfo argument.")
st.colInfo = colInfo
st:Redraw()
end,
+2 -2
View File
@@ -15,7 +15,7 @@ Aux.post_tab.FRAMES(function(m, public, private)
m.frame.inventory:SetPoint('BOTTOMLEFT', 0, 0)
m.frame.parameters = Aux.gui.panel(m.frame.content)
m.frame.parameters:SetHeight(171)
m.frame.parameters:SetHeight(173)
m.frame.parameters:SetPoint('TOPLEFT', m.frame.inventory, 'TOPRIGHT', 2.5, 0)
m.frame.parameters:SetPoint('TOPRIGHT', 0, 0)
@@ -23,7 +23,7 @@ Aux.post_tab.FRAMES(function(m, public, private)
m.frame.parameters.item:SetPoint('TOPLEFT', 10, -10)
m.frame.auctions = Aux.gui.panel(m.frame.content)
m.frame.auctions:SetHeight(230)
m.frame.auctions:SetHeight(228)
m.frame.auctions:SetPoint('BOTTOMLEFT', m.frame.inventory, 'BOTTOMRIGHT', 2.5, 0)
m.frame.auctions:SetPoint('BOTTOMRIGHT', 0, 0)
+7 -9
View File
@@ -10,18 +10,18 @@ Aux.search_tab.FRAMES(function(m, public, private)
m.frame.results = Aux.gui.panel(m.frame)
m.frame.results:SetAllPoints(AuxFrameContent)
m.frame.saved = Aux.gui.panel(m.frame)
m.frame.saved = CreateFrame('Frame', nil, m.frame)
m.frame.saved:SetAllPoints(AuxFrameContent)
m.frame.saved.favorite = Aux.gui.panel(m.frame.saved)
m.frame.saved.favorite:SetWidth(373)
m.frame.saved.favorite:SetPoint('TOPLEFT', 4, -4)
m.frame.saved.favorite:SetPoint('BOTTOMLEFT', 4, 4)
m.frame.saved.favorite:SetWidth(378.5)
m.frame.saved.favorite:SetPoint('TOPLEFT', 0, 0)
m.frame.saved.favorite:SetPoint('BOTTOMLEFT', 0, 0)
m.frame.saved.recent = Aux.gui.panel(m.frame.saved)
m.frame.saved.recent:SetWidth(373)
m.frame.saved.recent:SetPoint('TOPRIGHT', -4, -4)
m.frame.saved.recent:SetPoint('BOTTOMRIGHT', -4, 4)
m.frame.saved.recent:SetWidth(378.5)
m.frame.saved.recent:SetPoint('TOPRIGHT', 0, 0)
m.frame.saved.recent:SetPoint('BOTTOMRIGHT', 0, 0)
do
local btn = Aux.gui.button(m.frame, 22)
btn:SetPoint('TOPLEFT', 0, 0)
@@ -777,8 +777,6 @@ Aux.search_tab.FRAMES(function(m, public, private)
m.recent_searches_listing:SetHandler('OnEnter', handlers.OnEnter)
m.recent_searches_listing:SetHandler('OnLeave', handlers.OnLeave)
Aux.gui.vertical_line(m.frame.saved, 379)
private.favorite_searches_listing = Aux.listing.CreateScrollingTable(m.frame.saved.favorite)
m.favorite_searches_listing:SetColInfo({{name='Favorite Searches', width=1}})
m.favorite_searches_listing:EnableSorting(false)