WorldMapUnit_OnLoad(self); WorldMapUnit_OnEnter(self, motion); WorldMapUnit_OnLeave(self, motion); WorldMapUnit_OnEvent(self, event, ...); WorldMapUnit_OnMouseUp(self, button, "WorldMapRaid", "WorldMapParty"); WorldMapUnit_OnShow(self); WorldMapUnit_OnHide(self); WorldMapUnit_OnLoad(self); self.unit = "party"..self:GetID(); WorldMapUnit_OnLoad(self); self.unit = "raid"..self:GetID(); RaiseFrameLevelByTwo(self); RaiseFrameLevelByTwo(self); WorldMapUnit_OnEnter(self, motion); WorldMapUnit_OnLeave(self, motion); RaiseFrameLevel(self); WorldMapPOIFrame.allowBlobTooltip = false; local x, y = self:GetCenter(); local parentX, parentY = self:GetParent():GetCenter(); if ( x > parentX ) then WorldMapTooltip:SetOwner(self, "ANCHOR_LEFT"); else WorldMapTooltip:SetOwner(self, "ANCHOR_RIGHT"); end WorldMapTooltip:SetText(CORPSE_RED); WorldMapTooltip:Show(); WorldMapPOIFrame.allowBlobTooltip = true; WorldMapTooltip:Hide(); self.texture = self:GetRegions(); WorldMapUnit_OnEnter(self, motion); WorldMapUnit_OnLeave(self, motion); if ( IsModifierKeyDown("CTRL") ) then TeleportToDebugObject(self.index); else WorldMapButton_OnClick(WorldMapButton, button); end