From ae414ae5622ad7054a31c7b227d3efd70ca2c14d Mon Sep 17 00:00:00 2001 From: Simon Hirsig Date: Wed, 14 Oct 2015 15:09:36 +0200 Subject: [PATCH] some groundwork for the item layout item display and a new confirmation dialog --- experimental.xml | 132 ++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 131 insertions(+), 1 deletion(-) diff --git a/experimental.xml b/experimental.xml index 95f86ce..3ba287d 100644 --- a/experimental.xml +++ b/experimental.xml @@ -37,4 +37,134 @@ AuxBuyEntry_OnClick(this:GetParent()) - \ No newline at end of file + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + GameTooltip:SetOwner(self, "ANCHOR_RIGHT"); + GameTooltip:SetText(TOKEN_BUYOUT_PRICE_UPDATES, nil, nil, nil, nil, true); + GameTooltip:Show(); + + + + + + + + + + +function BrowseWowTokenResults_Update() + BrowseWowTokenResults:Show(); + FauxScrollFrame_Update(BrowseScrollFrame, 0, NUM_BROWSE_TO_DISPLAY, AUCTIONS_BUTTON_HEIGHT); + local marketPrice; + if (WowToken_IsWowTokenAuctionDialogShown()) then + marketPrice = C_WowTokenPublic.GetGuaranteedPrice(); + else + marketPrice = C_WowTokenPublic.GetCurrentMarketPrice(); + end + BrowseWowTokenResults:Show(); + local itemName, _, itemQuality, _, _, _, _, _, _, itemTexture = GetItemInfo(WOW_TOKEN_ITEM_ID); + if itemName then + BrowseWowTokenResults.Token.Icon:SetTexture(itemTexture) + BrowseWowTokenResults.Token.Name:SetText(itemName); + BrowseWowTokenResults.Token.Name:SetTextColor(ITEM_QUALITY_COLORS[itemQuality].r, ITEM_QUALITY_COLORS[itemQuality].g, ITEM_QUALITY_COLORS[itemQuality].b); + BrowseWowTokenResults.BuyoutPrice:SetText(GetMoneyString(marketPrice, true)); + if (GetMoney() < marketPrice) then + BrowseWowTokenResults.Buyout:SetEnabled(false); + else + BrowseWowTokenResults.Buyout:SetEnabled(true); + end + end +end