From c000058f8683b18edcd68af85cb20764f6257f66 Mon Sep 17 00:00:00 2001 From: Manuel Simon Hirsig Date: Wed, 3 Feb 2016 19:09:26 +0100 Subject: [PATCH] swapped bid and buyout button in bids --- bids_frame.lua | 18 +++++++++--------- core.lua | 2 +- sheet.lua | 26 +++++++++++++------------- 3 files changed, 23 insertions(+), 23 deletions(-) diff --git a/bids_frame.lua b/bids_frame.lua index 33c7121..88182d4 100644 --- a/bids_frame.lua +++ b/bids_frame.lua @@ -35,15 +35,6 @@ function public.on_load() btn:SetPoint('TOPLEFT', private.status_bar, 'TOPRIGHT', 5, 0) btn:SetWidth(80) btn:SetHeight(24) - btn:SetText('Buyout') - btn:Disable() - private.buyout_button = btn - end - do - local btn = Aux.gui.button(AuxBidsFrame, 16) - btn:SetPoint('TOPLEFT', private.buyout_button, 'TOPRIGHT', 5, 0) - btn:SetWidth(80) - btn:SetHeight(24) btn:SetText('Bid') btn:Disable() private.bid_button = btn @@ -53,6 +44,15 @@ function public.on_load() btn:SetPoint('TOPLEFT', private.bid_button, 'TOPRIGHT', 5, 0) btn:SetWidth(80) btn:SetHeight(24) + btn:SetText('Buyout') + btn:Disable() + private.buyout_button = btn + end + do + local btn = Aux.gui.button(AuxBidsFrame, 16) + btn:SetPoint('TOPLEFT', private.buyout_button, 'TOPRIGHT', 5, 0) + btn:SetWidth(80) + btn:SetHeight(24) btn:SetText('Refresh') btn:SetScript('OnClick', function() public.scan_bids() diff --git a/core.lua b/core.lua index 4cc8816..4c973f0 100644 --- a/core.lua +++ b/core.lua @@ -1,4 +1,4 @@ -AuxVersion = '2.4.1' +AuxVersion = '2.4.2' AuxAuthors = 'shirsig; Zerf; Zirco (Auctionator); Nimeral (Auctionator backport)' Aux = { diff --git a/sheet.lua b/sheet.lua index 648b2b6..f0d69d4 100644 --- a/sheet.lua +++ b/sheet.lua @@ -111,7 +111,7 @@ function public.create(params) content:SetPoint('TOPLEFT', scroll_frame, 'TOPLEFT', 5, 0) local total_width = 0 - + local rows = {} local row_index = 1 local max_height = content:GetHeight() @@ -145,18 +145,18 @@ function public.create(params) end) row:SetScript('OnUpdate', function() if sheet.on_row_update then sheet.on_row_update(sheet, row_idx) end end) - row.cells = {} - for i = 1,getn(params.columns) do - local cell = CreateFrame('Frame', nil, row) - cell:SetPoint('TOPLEFT', labels[i], 'BOTTOMLEFT', 0, -((row_index-1) * 14)) - cell:SetPoint('TOPRIGHT', labels[i], 'BOTTOMRIGHT', 0, -((row_index-1) * 14)) - - cell:SetHeight(14) - - params.columns[i].cell_initializer(cell) - - row.cells[i] = cell - end +-- row.cells = {} +-- for i = 1,getn(params.columns) do +-- local cell = CreateFrame('Frame', nil, row) +-- cell:SetPoint('TOPLEFT', labels[i], 'BOTTOMLEFT', 0, -((row_index-1) * 14)) +-- cell:SetPoint('TOPRIGHT', labels[i], 'BOTTOMRIGHT', 0, -((row_index-1) * 14)) +-- +-- cell:SetHeight(14) +-- +-- params.columns[i].cell_initializer(cell) +-- +-- row.cells[i] = cell +-- end local color_texture = row:CreateTexture() color_texture:SetPoint('TOPLEFT', row, 'TOPLEFT', 0, 0)