Skip to content

Commit

Permalink
Buttons: Decorate the zoom buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
funkydude committed Nov 3, 2022
1 parent 31ccffd commit 9f762f4
Showing 1 changed file with 27 additions and 4 deletions.
31 changes: 27 additions & 4 deletions Buttons.lua
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,7 @@ function mod:OnEnable()
highlight:ClearAllPoints()
highlight:SetPoint("TOPLEFT", MiniMapWorldMapButton, "TOPLEFT", 2, -2)
else
-- Mail Button
local overlay = MinimapCluster.MailFrame:CreateTexture(nil, "OVERLAY")
overlay:SetSize(53,53)
overlay:SetTexture(136430) -- 136430 = Interface\\Minimap\\MiniMap-TrackingBorder
Expand All @@ -257,23 +258,45 @@ function mod:OnEnable()
background:SetTexture(136467) -- 136467 = Interface\\Minimap\\UI-Minimap-Background
background:SetPoint("CENTER", MiniMapMailIcon, "CENTER")

local overlay = MinimapCluster.Tracking:CreateTexture(nil, "OVERLAY")
-- Tracking Button
overlay = MinimapCluster.Tracking:CreateTexture(nil, "OVERLAY")
overlay:SetSize(53,53)
overlay:SetTexture(136430) -- 136430 = Interface\\Minimap\\MiniMap-TrackingBorder
overlay:SetPoint("CENTER", MinimapCluster.Tracking.Button, "CENTER", 10, -10)
local background = MinimapCluster.Tracking:CreateTexture(nil, "BACKGROUND")
background = MinimapCluster.Tracking:CreateTexture(nil, "BACKGROUND")
background:SetSize(25,25)
background:SetTexture(136467) -- 136467 = Interface\\Minimap\\UI-Minimap-Background
background:SetPoint("CENTER", MinimapCluster.Tracking.Button, "CENTER")

local overlay = GameTimeFrame:CreateTexture(nil, "OVERLAY")
-- Calendar Button
overlay = GameTimeFrame:CreateTexture(nil, "OVERLAY")
overlay:SetSize(53,53)
overlay:SetTexture(136430) -- 136430 = Interface\\Minimap\\MiniMap-TrackingBorder
overlay:SetPoint("CENTER", GameTimeFrame, "CENTER", 10, -10)
local background = GameTimeFrame:CreateTexture(nil, "BACKGROUND")
background = GameTimeFrame:CreateTexture(nil, "BACKGROUND")
background:SetSize(25,25)
background:SetTexture(136467) -- 136467 = Interface\\Minimap\\UI-Minimap-Background
background:SetPoint("CENTER", GameTimeFrame, "CENTER")

-- Zoom in Button
overlay = Minimap.ZoomIn:CreateTexture(nil, "OVERLAY")
overlay:SetSize(53,53)
overlay:SetTexture(136430) -- 136430 = Interface\\Minimap\\MiniMap-TrackingBorder
overlay:SetPoint("CENTER", Minimap.ZoomIn, "CENTER", 10, -10)
background = Minimap.ZoomIn:CreateTexture(nil, "BACKGROUND")
background:SetSize(25,25)
background:SetTexture(136467) -- 136467 = Interface\\Minimap\\UI-Minimap-Background
background:SetPoint("CENTER", Minimap.ZoomIn, "CENTER")

-- Zoom out Button
overlay = Minimap.ZoomOut:CreateTexture(nil, "OVERLAY")
overlay:SetSize(53,53)
overlay:SetTexture(136430) -- 136430 = Interface\\Minimap\\MiniMap-TrackingBorder
overlay:SetPoint("CENTER", Minimap.ZoomOut, "CENTER", 10, -10)
background = Minimap.ZoomOut:CreateTexture(nil, "BACKGROUND")
background:SetSize(25,25)
background:SetTexture(136467) -- 136467 = Interface\\Minimap\\UI-Minimap-Background
background:SetPoint("CENTER", Minimap.ZoomOut, "CENTER")
end

if GarrisonLandingPageMinimapButton then
Expand Down

0 comments on commit 9f762f4

Please sign in to comment.