PaperDollFrameItemFlyoutButton_OnEnter(self, motion);
GameTooltip:Hide();
ResetCursor();
PaperDollFrameItemFlyoutButton_OnClick(self, button, down);
PlayerTitleButton_OnClick(self);
self:RegisterForDrag("LeftButton");
GearSetButton_OnClick(self, button, down);
GearSetButton_OnEnter(self);
GameTooltip:Hide();
if ( self.name and self.name ~= "" ) then
PickupEquipmentSetByName(self.name);
end
local name = self:GetName();
self.icon = _G[name .. "Icon"];
self.name = _G[name .. "Name"];
GearSetPopupButton_OnClick(self, button, down);
PaperDollStatTooltip(self, "player");
GameTooltip:Hide();
if ( self.tooltip ) then
GameTooltip:SetOwner(self,"ANCHOR_RIGHT");
GameTooltip:SetText(self.tooltip, 1.0,1.0,1.0);
GameTooltip:AddLine(self.tooltipSubtext, NORMAL_FONT_COLOR.r, NORMAL_FONT_COLOR.g, NORMAL_FONT_COLOR.b, 1);
GameTooltip:Show();
end
GameTooltip:Hide();
PlayerTitlePickerFrame_Toggle();
Model_OnLoad(self);
self:RegisterEvent("DISPLAY_SIZE_CHANGED");
self:RefreshUnit();
self:RegisterForClicks("LeftButtonDown", "LeftButtonUp");
Model_RotateLeft(self:GetParent());
self:RegisterForClicks("LeftButtonDown", "LeftButtonUp");
Model_RotateRight(self:GetParent());
self.maxDisplayCount = 999;
PaperDollItemSlotButton_OnLoad(self);
if ( event == "MERCHANT_UPDATE" ) then
-- update ammo amount shown in frame after selling ammo to a vendor
PaperDollItemSlotButton_Update(self);
elseif ( event == "PLAYERBANKSLOTS_CHANGED" ) then
-- update ammo amount shown in frame after moving ammo to the bank
PaperDollItemSlotButton_Update(self);
else
PaperDollItemSlotButton_OnEvent(self, event, ...);
end
PaperDollItemSlotButton_OnShow(self);
self:RegisterEvent("MERCHANT_UPDATE");
self:RegisterEvent("PLAYERBANKSLOTS_CHANGED");
PaperDollItemSlotButton_OnHide(self);
self:UnregisterEvent("MERCHANT_UPDATE");
self:UnregisterEvent("PLAYERBANKSLOTS_CHANGED");
PaperDollItemSlotButton_OnClick(self, "LeftButton", 1);
PaperDollItemSlotButton_OnClick(self, "LeftButton", 1);
GameTooltip_AddNewbieTip(self, EQUIPMENT_MANAGER, 1.0, 1.0, 1.0, NEWBIE_TOOLTIP_EQUIPMENT_MANAGER);
self.icon = _G[self:GetName() .. "Icon"];
if ( GearManagerDialog:IsShown() ) then
GearManagerDialog:Hide();
else
GearManagerDialog:Show();
end
self.numBGs = 1;
self.buttons = {};
FauxScrollFrame_OnVerticalScroll(self, offset, GEARSET_ICON_ROW_HEIGHT, GearManagerDialogPopup_Update);
local text = self:GetText();
if ( text ~= "" ) then
GearManagerDialogPopup.name = text;
else
GearManagerDialogPopup.name = nil;
end
GearManagerDialogPopupOkay_Update();
if ( GearManagerDialogPopupOkay:IsEnabled() ~= 0 ) then
GearManagerDialogPopupOkay:Click();
end
GearManagerDialogPopupCancel_OnClick(self, button, pushed);
PlaySound("gsTitleOptionOK");
GearManagerDialogPopupOkay_OnClick(self, button, pushed);
PlaySound("gsTitleOptionOK");