RaiseFrameLevelByTwo(self);
if ( IsModifiedClick() ) then HandleModifiedItemClick(GetTradeTargetItemLink(self:GetParent():GetID())); else ClickTargetTradeButton(self:GetParent():GetID()); end
GameTooltip:SetOwner(self, "ANCHOR_RIGHT"); GameTooltip:SetTradeTargetItem(self:GetParent():GetID()); CursorUpdate(self);
GameTooltip:Hide(); ResetCursor();
if ( GameTooltip:IsOwned(self) ) then GameTooltip:SetOwner(self, "ANCHOR_RIGHT"); GameTooltip:SetTradeTargetItem(self:GetParent():GetID()); end CursorOnUpdate(self);
if ( IsModifiedClick() ) then HandleModifiedItemClick(GetTradePlayerItemLink(self:GetParent():GetID())); else ClickTradeButton(self:GetParent():GetID(), button == "RightButton"); end
ClickTradeButton(self:GetParent():GetID());
ClickTradeButton(self:GetParent():GetID());
self:RegisterForDrag("LeftButton"); self:RegisterForClicks("LeftButtonUp", "RightButtonUp"); self:SetFrameLevel(self:GetFrameLevel() + 2);
GameTooltip:SetOwner(self, "ANCHOR_RIGHT"); GameTooltip:SetTradePlayerItem(self:GetParent():GetID()); CursorUpdate(self);
GameTooltip:Hide(); ResetCursor();
if ( GameTooltip:IsOwned(self) ) then GameTooltip:SetOwner(self, "ANCHOR_RIGHT"); GameTooltip:SetTradePlayerItem(self:GetParent():GetID()); end CursorOnUpdate(self);
if ( self.hasItem ) then GameTooltip:SetOwner(self, "ANCHOR_RIGHT"); GameTooltip:SetTradePlayerItem(self:GetParent():GetID()); else GameTooltip_AddNewbieTip(self, ENCHANT_SLOT, 1.0, 1.0, 1.0, NEWBIE_TOOLTIP_ENCHANTSLOT, 1); end
MoneyInputFrame_SetMode(self, "compact"); MoneyInputFrame_SetOnValueChangedFunc(self, TradeFrame_UpdateMoney); self:RegisterEvent("PLAYER_TRADE_MONEY");
MoneyInputFrame_SetCopper(self, GetPlayerTradeMoney());
SmallMoneyFrame_OnLoad(self); MoneyFrame_SetType(self, "TARGET_TRADE");
TradeFrame_OnShow(self); PlaySound("igCharacterInfoOpen");
TradeFrame_OnHide(); PlaySound("igCharacterInfoClose");