finished sell rework and some other minor fixes

This commit is contained in:
Manuel Simon Hirsig
2015-10-04 16:14:53 +02:00
parent 9bb60c7e43
commit 352afd81ac
8 changed files with 75 additions and 76 deletions
+6 -17
View File
@@ -190,20 +190,6 @@
</FontString>
</Layer>
</Layers>
<Scripts>
<OnEnter>
GameTooltip:SetOwner(this, "ANCHOR_RIGHT")
if GetAuctionSellItemInfo() then
GameTooltip:SetAuctionSellItem()
else
GameTooltip:SetText(AUCTION_ITEM_TEXT, 1.0, 1.0, 1.0)
end
</OnEnter>
<OnLeave>
GameTooltip:Hide()
</OnLeave>
</Scripts>
<HighlightTexture alphaMode="ADD" file="Interface\Buttons\ButtonHilight-Square"/>
</Button>
<Button name="AuxSellPostButton" inherits="UIPanelButtonTemplate" text="Post Auctions">
<Size>
@@ -241,11 +227,14 @@
end
</OnEvent>
<OnClick>
Aux.sell.clear_auction()
-- AuctionsFrameAuctions_ValidateAuction() TODO
if CursorHasItem() then
Aux.sell.set_auction(Aux.last_picked_up.bag, Aux.last_picked_up.slot)
else
Aux.sell.clear_auction()
end
</OnClick>
<OnReceiveDrag>
Aux.sell.update_auction(Aux.last_picked_up.bag, Aux.last_picked_up.slot)
Aux.sell.set_auction(Aux.last_picked_up.bag, Aux.last_picked_up.slot)
ClearCursor()
</OnReceiveDrag>
<OnEnter>