perfected the buying mechanism

This commit is contained in:
Manuel Simon Hirsig
2016-02-01 19:25:17 +01:00
parent c5130a6d97
commit 3eb28c4281
12 changed files with 329 additions and 426 deletions
+4 -4
View File
@@ -344,7 +344,7 @@ function public.on_open()
AuxSellAuctions:SetWidth(AuxSellAuctionsListing:GetWidth() + 40)
-- UIDropDownMenu_SetSelectedValue(AuxSellParametersStrategyDropDown, LIVE)
private.set_auction_duration(AUX_AUCTION_DURATION)
private.set_auction_duration(aux_auction_duration)
-- so that it's initialized with zeroes, not sometimes zero, sometimes empty
private.start_price:SetText(Aux.money.to_string(0))
@@ -370,15 +370,15 @@ function public.duration_radio_button_on_click(index)
if index == 1 then
AuxSellParametersShortDurationRadio:SetChecked(true)
AuctionFrameAuctions.duration = 120
AUX_AUCTION_DURATION = 'short'
aux_auction_duration = 'short'
elseif index == 2 then
AuxSellParametersMediumDurationRadio:SetChecked(true)
AuctionFrameAuctions.duration = 480
AUX_AUCTION_DURATION = 'medium'
aux_auction_duration = 'medium'
else
AuxSellParametersLongDurationRadio:SetChecked(true)
AuctionFrameAuctions.duration = 1440
AUX_AUCTION_DURATION = 'long'
aux_auction_duration = 'long'
end
private.update_recommendation()
end