working on sell tab overhaul

This commit is contained in:
Manuel Simon Hirsig
2015-10-04 14:19:13 +02:00
parent a74e9387a0
commit 63984f08d5
2 changed files with 71 additions and 3 deletions
+18 -2
View File
@@ -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()