reworked buying mechanism

This commit is contained in:
Manuel Simon Hirsig
2016-01-24 00:25:28 +01:00
parent c104881f46
commit 3258e60214
6 changed files with 90 additions and 218 deletions
+21 -1
View File
@@ -1,5 +1,6 @@
local private, public = {}, {}
Aux.sell = public
Aux.post_frame = public
local existing_auctions = {}
@@ -222,6 +223,25 @@ function Aux.sell.on_close()
end
function public.on_load()
do
local btn = Aux.gui.button(AuxSellParameters, 15, '$parentPostButton')
btn:SetPoint('BOTTOMLEFT', 8, 15)
btn:SetWidth(75)
btn:SetHeight(24)
btn:SetText('Post')
btn:SetScript('OnClick', private.post_auctions)
end
do
local btn = Aux.gui.button(AuxSellParameters, 15, '$parentRefreshButton')
btn:SetPoint('LEFT', AuxSellParametersPostButton,'RIGHT', 5, 0)
btn:SetWidth(75)
btn:SetHeight(24)
btn:SetText('Refresh')
btn:SetScript('OnClick', private.refresh)
end
end
function Aux.sell.duration_radio_button_on_click(index)
AuxSellParametersShortDurationRadio:SetChecked(false)
AuxSellParametersMediumDurationRadio:SetChecked(false)
@@ -618,7 +638,7 @@ function AuxSellEntry_OnClick(entry)
PlaySound('igMainMenuOptionCheckBoxOn')
end
function AuxSellParametersRefreshButton_OnClick()
function private.refresh()
Aux.scan.abort(function()
refresh_entries()
select_entry()