Yay for fun things to do with LitePanels
Boss Icon Toggle Button for the World Map
lua Code:
lpanels:CreateLayout("BossButtonToggleMod", {
{name = "BossButtonToggle", parent = "WorldMapFrame", --Button
anchor_to = "BOTTOM", y_off = 10, x_off = 0,
width = 125, height = 20, strata = "HIGH", level = 25,
bg_color = {0,0,0}, bg_alpha = .4,
border = "SOLID", border_size = 2, border_color = {0,0,0},
text = {
-- "Click to Toggle Boss Icons"
{ string = "Toggle Boss Icons", anchor_to = "Center", y_off = 0,
shadow=1, font = "Fonts\\FRIZQT__.TTF", size=10,
},
},
OnClick = function(self, b)
if b == "LeftButton" then
if WorldMapBossButtonFrame:IsShown() then
WorldMapBossButtonFrame:Hide()
else
WorldMapBossButtonFrame:Show()
end
end
end,
},
})
lpanels:ApplyLayout(nil, "BossButtonToggleMod")