View Single Post
10-20-11, 08:27 PM   #334
Unkn
Premium Member
 
Unkn's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 258
Yay for fun things to do with LitePanels



Boss Icon Toggle Button for the World Map
lua Code:
  1. lpanels:CreateLayout("BossButtonToggleMod", {
  2. {name = "BossButtonToggle",  parent  = "WorldMapFrame", --Button
  3.     anchor_to = "BOTTOM", y_off = 10, x_off = 0,
  4.     width = 125, height = 20, strata = "HIGH",  level = 25,
  5.     bg_color = {0,0,0}, bg_alpha = .4,
  6.     border = "SOLID", border_size = 2, border_color = {0,0,0},
  7.     text = {
  8.         -- "Click to Toggle Boss Icons"
  9.             {    string = "Toggle Boss Icons", anchor_to = "Center", y_off = 0,
  10.                 shadow=1, font = "Fonts\\FRIZQT__.TTF", size=10,
  11.             },
  12.         },
  13.         OnClick = function(self, b)
  14.             if b == "LeftButton" then
  15.                 if WorldMapBossButtonFrame:IsShown() then
  16.                         WorldMapBossButtonFrame:Hide()
  17.                 else
  18.                         WorldMapBossButtonFrame:Show()
  19.                 end
  20.             end
  21.         end,
  22.     },
  23.     })
  24.  
  25. lpanels:ApplyLayout(nil, "BossButtonToggleMod")
Attached Thumbnails
Click image for larger version

Name:	bossicontoggle.png
Views:	817
Size:	507.7 KB
ID:	6553  
__________________
"I'm very feminine. And I'll beat the crap out of ANYONE who disagrees!"
  Reply With Quote