public
Description: WoW Addon - Food/water macro generator
Homepage: http://www.tekkub.net
Clone URL: git://github.com/tekkub/buffet.git
Click here to lend your support to: buffet and make a donation at www.pledgie.com !
tekkub (author)
Thu Apr 03 11:48:13 -0700 2008
commit  4c8d058615f9e08463c60d10d175c5f05806c607
tree    14b00bb45a4b9f697e19da1267fc24d89b0e5a97
parent  5d0da62c84005d53845bb00aa6af40b341318330
buffet / tekKonfigHeading.lua
100644 25 lines (19 sloc) 0.744 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
local lib, oldminor = LibStub:NewLibrary("tekKonfig-Heading", 1)
if not lib then return end
 
 
-- Creates a heading and subheading
-- parent is required, texts are optional
function lib.new(parent, text, subtext)
  local title = parent:CreateFontString(nil, "ARTWORK", "GameFontNormalLarge")
  title:SetPoint("TOPLEFT", 16, -16)
  title:SetText(text)
 
  local subtitle = parent:CreateFontString(nil, "ARTWORK", "GameFontHighlightSmall")
  subtitle:SetHeight(32)
  subtitle:SetPoint("TOPLEFT", title, "BOTTOMLEFT", 0, -8)
  subtitle:SetPoint("RIGHT", parent, -32, 0)
--~   nonSpaceWrap="true" maxLines="3"
  subtitle:SetNonSpaceWrap(true)
  subtitle:SetJustifyH("LEFT")
  subtitle:SetJustifyV("TOP")
  subtitle:SetText(subtext)
 
  return title, subtitle
end