swapped bid and buyout button in bids
This commit is contained in:
+9
-9
@@ -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()
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
AuxVersion = '2.4.1'
|
||||
AuxVersion = '2.4.2'
|
||||
AuxAuthors = 'shirsig; Zerf; Zirco (Auctionator); Nimeral (Auctionator backport)'
|
||||
|
||||
Aux = {
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user