diff --git a/sell.lua b/sell.lua index 731016e..da7360a 100644 --- a/sell.lua +++ b/sell.lua @@ -60,8 +60,24 @@ function Aux_AuctionFrameAuctions_Update() end ----------------------------------------- --- Intercept the Create Auction click so --- that we can note the auction values +--TODO +function AuctionSellItemButton_OnEvent() + if ( event == "NEW_AUCTION_UPDATE") then + local name, texture, count, quality, canUse, price = GetAuctionSellItemInfo(); + AuctionsItemButton:SetNormalTexture(texture); + AuctionsItemButtonName:SetText(name); + if ( count > 1 ) then + AuctionsItemButtonCount:SetText(count); + AuctionsItemButtonCount:Show(); + else + AuctionsItemButtonCount:Hide(); + end + MoneyInputFrame_SetCopper(StartPrice, max(100, floor(price * 1.5))); + UpdateDeposit(); + MoneyInputFrame_SetCopper(BuyoutPrice, 0); + end +end + ----------------------------------------- function Aux.sell.post_auctions() diff --git a/sell.xml b/sell.xml index 91bc780..140113b 100644 --- a/sell.xml +++ b/sell.xml @@ -151,8 +151,60 @@ - +