StaticPopup_OnClick(self:GetParent(), self:GetID());
StaticPopup_EditBoxOnEnterPressed(self);
StaticPopup_EditBoxOnEscapePressed(self);
StaticPopup_EditBoxOnTextChanged(self, userInput);
self:GetParent().editBox = self;
StaticPopup_EditBoxOnEnterPressed(self);
StaticPopup_EditBoxOnEscapePressed(self);
self:GetParent().wideEditBox = self;
SmallMoneyFrame_OnLoad(self); MoneyFrame_SetType(self, "STATIC"); self:GetParent().moneyFrame = self;
if ( self.link ) then GameTooltip:SetOwner(self, "ANCHOR_RIGHT"); GameTooltip:SetHyperlink(self.link); end
GameTooltip:Hide();
self:GetParent().itemFrame = self;
StaticPopup_OnUpdate(self, elapsed);
StaticPopup_OnShow(self);
StaticPopup_OnHide(self);
local name = self:GetName(); self.button1 = _G[name .. "Button1"]; self.button2 = _G[name .. "Button2"]; self.button3 = _G[name .. "Button3"]; self.text = _G[name .. "Text"]; self.icon = _G[name .. "AlertIcon"]; self.moneyInputFrame = _G[name .. "MoneyInputFrame"]; self:RegisterEvent("DISPLAY_SIZE_CHANGED");