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)
Fri Jul 18 22:08:40 -0700 2008
commit  20043740c577fc9d6182ead67aafd44de816dd82
tree    58865a9d861d4c4ef5b95287640a4f6c2d5cb789
parent  3d17351c6f78556c25e83fff4f035f6a89c6d02a
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