gui refactoring and restyling of post

This commit is contained in:
Manuel Simon Hirsig
2016-07-26 03:02:23 +02:00
parent 57af65ec2a
commit abba589092
8 changed files with 67 additions and 146 deletions
+12 -13
View File
@@ -4,30 +4,29 @@ Aux.post_tab.FRAMES(function(m, public, private)
m.frame:SetScript('OnUpdate', m.on_update)
m.frame:Hide()
m.frame.content = CreateFrame('Frame', nil, m.frame, 'AuxFrameBoxTemplate')
m.frame.content = CreateFrame('Frame', nil, m.frame)
m.frame.content:SetPoint('TOP', AuxFrame, 'TOP', 0, -8)
m.frame.content:SetPoint('BOTTOMLEFT', AuxFrameContent, 'BOTTOMLEFT', 0, 0)
m.frame.content:SetPoint('BOTTOMRIGHT', AuxFrameContent, 'BOTTOMRIGHT', 0, 0)
m.frame.inventory = CreateFrame('Frame', nil, m.frame.content, 'AuxFrameBoxTemplate')
m.frame.inventory = Aux.gui.panel(m.frame.content)
m.frame.inventory:SetWidth(212)
m.frame.inventory:SetPoint('TOPLEFT', 4, -4)
m.frame.inventory:SetPoint('BOTTOMLEFT', 4, 4)
m.frame.inventory:SetPoint('TOPLEFT', 0, 0)
m.frame.inventory:SetPoint('BOTTOMLEFT', 0, 0)
m.frame.parameters = CreateFrame('Frame', nil, m.frame.content, 'AuxFrameBoxTemplate')
m.frame.parameters:SetHeight(177)
m.frame.parameters:SetPoint('TOPLEFT', m.frame.inventory, 'TOPRIGHT', 8, 0)
m.frame.parameters:SetPoint('TOPRIGHT', -4, 0)
m.frame.parameters = Aux.gui.panel(m.frame.content)
m.frame.parameters:SetHeight(171)
m.frame.parameters:SetPoint('TOPLEFT', m.frame.inventory, 'TOPRIGHT', 2.5, 0)
m.frame.parameters:SetPoint('TOPRIGHT', 0, 0)
m.frame.parameters.item = CreateFrame('Button', 'AuxPostItem', m.frame.parameters, 'AuxItemTemplate')
m.frame.parameters.item:SetPoint('TOPLEFT', 10, -10)
m.frame.auctions = CreateFrame('Frame', nil, m.frame.content, 'AuxFrameBoxTemplate')
m.frame.auctions:SetHeight(217)
m.frame.auctions:SetPoint('BOTTOMLEFT', m.frame.inventory, 'BOTTOMRIGHT', 8, 0)
m.frame.auctions:SetPoint('BOTTOMRIGHT', -4, 0)
m.frame.auctions = Aux.gui.panel(m.frame.content)
m.frame.auctions:SetHeight(230)
m.frame.auctions:SetPoint('BOTTOMLEFT', m.frame.inventory, 'BOTTOMRIGHT', 2.5, 0)
m.frame.auctions:SetPoint('BOTTOMRIGHT', 0, 0)
Aux.gui.vertical_line(m.frame.content, 219)
m.frame.parameters.item:EnableMouse()
m.frame.parameters.item:SetScript('OnReceiveDrag', function()
local item_info = Aux.cursor_item()