From 2aae68702e7ca9573edc4c1f6df94cd0201d01e8 Mon Sep 17 00:00:00 2001 From: Manuel Simon Hirsig Date: Tue, 26 Jul 2016 03:28:31 +0200 Subject: [PATCH] gui refactoring and restyling --- tables/listing.lua | 3 +-- tabs/post/frames.lua | 4 ++-- tabs/search/frames.lua | 16 +++++++--------- 3 files changed, 10 insertions(+), 13 deletions(-) diff --git a/tables/listing.lua b/tables/listing.lua index 7d5df4b..4e65c2e 100644 --- a/tables/listing.lua +++ b/tables/listing.lua @@ -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, diff --git a/tabs/post/frames.lua b/tabs/post/frames.lua index 80b6f7e..535d3ff 100644 --- a/tabs/post/frames.lua +++ b/tabs/post/frames.lua @@ -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) diff --git a/tabs/search/frames.lua b/tabs/search/frames.lua index 6635aed..8c839aa 100644 --- a/tabs/search/frames.lua +++ b/tabs/search/frames.lua @@ -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)