View Single Post
05-01-13, 12:04 AM   #354
Katae
A Cobalt Mageweaver
AddOn Author - Click to view addons
Join Date: Jun 2007
Posts: 208
@maven

Forgive me, I haven't coded Lua for over a year and I'm doing this on my phone. But perhaps something along these lines?

Lua Code:
  1. function border(parent, color)
  2.   return {
  3.       name = parent .. "_border",
  4.       parent = parent,
  5.       anchor_to = "TOP",
  6.       bg_color = color or "CLASS",
  7.       bg_alpha = 1,
  8.       width = "100%",
  9.       height = "100%",
  10.       strata = "BACKGROUND",
  11.       level = 4,
  12.       inset = -1
  13.   }
  14. end
  15. lpanels:CreateLayout("Minimap_border", border("Minimap"))

Should use "CLASS" if you omit the color parameter.

Last edited by Katae : 05-01-13 at 03:52 AM.
  Reply With Quote