if (self.isDown) then
MinimapButton_OnMouseUp(self);
end
MinimapButton_OnMouseDown(self, button);
MinimapButton_OnMouseUp(self, button);
GameTooltip:SetOwner(self, "ANCHOR_LEFT");
local pvpType, isSubZonePvP, factionName = GetZonePVPInfo();
Minimap_SetTooltip( pvpType, factionName );
GameTooltip:Show();
self:RegisterEvent("UPDATE_PENDING_MAIL");
self:SetFrameLevel(self:GetFrameLevel()+1)
if ( event == "UPDATE_PENDING_MAIL" ) then
if ( HasNewMail() ) then
self:Show();
if( GameTooltip:IsOwned(self) ) then
MinimapMailFrameUpdate();
end
else
self:Hide();
end
end
GameTooltip:SetOwner(self, "ANCHOR_BOTTOMLEFT");
if( GameTooltip:IsOwned(self) ) then
MinimapMailFrameUpdate();
end
self:RegisterForClicks("LeftButtonUp", "RightButtonUp");
self:SetFrameLevel(self:GetFrameLevel()+1);
MiniMapBattlefieldFrame.timeInQueue = 0;
GameTooltip:SetOwner(self, "ANCHOR_LEFT");
if (self.tooltip) then
GameTooltip:SetText(self.tooltip);
end
self:SetScript("OnUpdate", MiniMapBattlefieldFrame_OnUpdate);
GameTooltip:Hide();
self:SetScript("OnUpdate", nil);
-- Hide tooltip
GameTooltip:Hide();
if ( MiniMapBattlefieldFrame.status == "active") then
if ( button == "RightButton" ) then
ToggleDropDownMenu(1, nil, MiniMapBattlefieldDropDown, "MiniMapBattlefieldFrame", 0, -5);
elseif ( IsShiftKeyDown() ) then
ToggleBattlefieldMinimap();
else
ToggleWorldStateScoreFrame();
end
elseif ( button == "RightButton" ) then
ToggleDropDownMenu(1, nil, MiniMapBattlefieldDropDown, "MiniMapBattlefieldFrame", 0, -5);
end
self.tooltipText = MicroButtonTooltipText(WORLDMAP_BUTTON, "TOGGLEWORLDMAP");
self.newbieText = NEWBIE_TOOLTIP_WORLDMAP;
self:RegisterEvent("UPDATE_BINDINGS");
GameTooltip_AddNewbieTip(self, self.tooltipText, 1.0, 1.0, 1.0, self.newbieText);
self.tooltipText = MicroButtonTooltipText(WORLDMAP_BUTTON, "TOGGLEWORLDMAP");
self.newbieText = NEWBIE_TOOLTIP_WORLDMAP;
ToggleFrame(WorldMapFrame);
self:RegisterEvent("MINIMAP_UPDATE_TRACKING");
MiniMapTracking_Update();
ToggleDropDownMenu(1, nil, MiniMapTrackingDropDown, "MiniMapTracking", 0, -5);
PlaySound("igMainMenuOptionCheckBoxOn");
MiniMapTrackingIcon:SetPoint("TOPLEFT", MiniMapTracking, "TOPLEFT", 8, -8);
MiniMapTrackingIconOverlay:Show();
MiniMapTrackingIcon:SetPoint("TOPLEFT", MiniMapTracking, "TOPLEFT", 6, -6);
MiniMapTrackingIconOverlay:Hide();
GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
GameTooltip:SetTracking();
UIDropDownMenu_Initialize(self, MiniMapLFGFrameDropDown_Update, "MENU");
self:RegisterEvent("LFG_UPDATE");
self:RegisterEvent("PLAYER_ENTERING_WORLD");
self:RegisterEvent("LFG_ROLE_CHECK_UPDATE");
self:RegisterEvent("LFG_PROPOSAL_UPDATE");
self:RegisterForClicks("LeftButtonUp", "RightButtonUp");
self:SetFrameLevel(self:GetFrameLevel()+1)
if ( GetCVar("UberTooltips") == "1" ) then
GameTooltip_SetDefaultAnchor(GameTooltip, UIParent);
GameTooltip:SetText(ZOOM_IN);
end
if ( GetCVar("UberTooltips") == "1" ) then
GameTooltip_SetDefaultAnchor(GameTooltip, UIParent);
GameTooltip:SetText(ZOOM_OUT);
end
if ( GetCVar("UberTooltips") == "1" ) then
GameTooltip_SetDefaultAnchor(GameTooltip, UIParent);
MINIMAP_RECORDING_INDICATOR_ON = true;
end
GameTooltip:Hide();
MINIMAP_RECORDING_INDICATOR_ON = false;
self:RegisterEvent("MOVIE_RECORDING_PROGRESS");
if ( event == "MOVIE_RECORDING_PROGRESS" ) then
if( MovieRecording_IsRecording() and GetCVar("MovieRecordingIcon") == "1") then
self:Show();
else
self:Hide();
end
end
if ( MINIMAP_RECORDING_INDICATOR_ON ) then
GameTooltip:SetText(MOVIE_RECORDING_RECORDING..MovieRecording_GetTime());
end
self:RegisterEvent("PLAYER_DIFFICULTY_CHANGED");
self:RegisterEvent("UPDATE_INSTANCE_INFO");
Minimap.timer = 0;
Minimap_Update();
self:RegisterEvent("ZONE_CHANGED");
self:RegisterEvent("ZONE_CHANGED_INDOORS");
self:RegisterEvent("ZONE_CHANGED_NEW_AREA");
Minimap_UpdateRotationSetting();
MiniMapInstanceDifficulty:SetFrameLevel(self:GetFrameLevel() + 10);