Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local config = {
- ["showGarrison"] = true,
- }
- if config.showGarrison == true then
- local menuFrame = CreateFrame('Frame', 'picomenuDropDownMenu', MainMenuBar, 'UIDropDownMenuTemplate')
- local f = CreateFrame('Button', nil, PicoMenuBar)
- f:SetFrameStrata('LOW')
- f:SetSize(50,50)
- f:SetPoint('BOTTOMLEFT', 5, 10)
- f:RegisterForClicks('Anyup')
- f:RegisterEvent('ADDON_LOADED')
- f:SetNormalTexture('Interface\\AddOns\\qusemap\\picomenu\\picomenuNormal')
- f:GetNormalTexture():SetSize(50,50)
- f:SetHighlightTexture('Interface\\AddOns\\qusemap\\picomenu\\picomenuHighlight')
- f:GetHighlightTexture():SetAllPoints(f:GetNormalTexture())
- f:SetScript('OnMouseDown', function(self)
- self:GetNormalTexture():ClearAllPoints()
- self:GetNormalTexture():SetPoint('CENTER', 1, -1)
- end)
- f:SetScript('OnMouseUp', function(self, button)
- self:GetNormalTexture():ClearAllPoints()
- self:GetNormalTexture():SetPoint('CENTER')
- if (self:IsMouseOver()) then
- --ToggleFrame(GameMenuFrame)
- GarrisonLandingPageMinimapButton_OnClick()
- end
- GameTooltip:Hide()
- end)
- f:SetScript('OnEnter', function(self)
- GameTooltip:SetOwner(self, 'ANCHOR_TOPLEFT', 25, -5)
- GameTooltip:AddLine('Garrison Report')
- GameTooltip:Show()
- end)
- f:SetScript('OnLeave', function()
- GameTooltip:Hide()
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment