self:RegisterForDrag("LeftButton"); self:RegisterEvent("SOCKET_INFO_UPDATE");
ItemSocketingSocketButton_OnEvent(self, event, ...);
if ( IsModifiedClick() ) then local link = GetNewSocketLink(self:GetID()) or GetExistingSocketLink(self:GetID()); HandleModifiedItemClick(link); else StaticPopup_Hide("DELETE_ITEM"); StaticPopup_Hide("DELETE_GOOD_ITEM"); ClickSocketButton(self:GetID()); end
StaticPopup_Hide("DELETE_ITEM"); StaticPopup_Hide("DELETE_GOOD_ITEM"); ClickSocketButton(self:GetID());
StaticPopup_Hide("DELETE_ITEM"); StaticPopup_Hide("DELETE_GOOD_ITEM"); ClickSocketButton(self:GetID());
ItemSocketingSocketButton_OnEnter(self, motion);
GameTooltip:Hide(); ShoppingTooltip1:Hide();
self.scrollBarHideable = 1; ScrollFrame_OnLoad(self); ScrollFrame_OnScrollRangeChanged(self, 0, 0);
ScrollFrame_OnScrollRangeChanged(self, 0, yrange); ItemSocketingSocketButton_OnScrollRangeChanged(self);
self:SetBackdrop(nil);
if( ItemSocketingFrame.itemIsRefundable) then local dialog = StaticPopup_Show("END_REFUND"); if(dialog) then dialog.data = 2; end elseif ( ItemSocketingFrame.itemIsBoundTradeable ) then local dialog = StaticPopup_Show("END_BOUND_TRADEABLE", nil, nil, "gem"); elseif ( ItemSocketingFrame.destroyingGem ) then StaticPopup_Show("CONFIRM_ACCEPT_SOCKETS"); else AcceptSockets(); PlaySound("JewelcraftingFinalize"); end
if ( not self.disabled ) then _G[self:GetName().."Left"]:SetTexture("Interface\\Buttons\\UI-Panel-Button-Down"); _G[self:GetName().."Middle"]:SetTexture("Interface\\Buttons\\UI-Panel-Button-Down"); _G[self:GetName().."Right"]:SetTexture("Interface\\Buttons\\UI-Panel-Button-Down"); end
if ( not self.disabled ) then _G[self:GetName().."Left"]:SetTexture("Interface\\Buttons\\UI-Panel-Button-Up"); _G[self:GetName().."Middle"]:SetTexture("Interface\\Buttons\\UI-Panel-Button-Up"); _G[self:GetName().."Right"]:SetTexture("Interface\\Buttons\\UI-Panel-Button-Up"); end
PlaySound("igCharacterInfoOpen");
PlaySound("igCharacterInfoClose"); StaticPopup_Hide("CONFIRM_ACCEPT_SOCKETS"); CloseSocketInfo();