From 63984f08d588ba572012bf95fe676d4041e04e74 Mon Sep 17 00:00:00 2001 From: Manuel Simon Hirsig Date: Sun, 4 Oct 2015 14:19:13 +0200 Subject: [PATCH] working on sell tab overhaul --- sell.lua | 20 ++++++++++++++++++-- sell.xml | 54 +++++++++++++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 71 insertions(+), 3 deletions(-) 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 @@ - +