-
-
Notifications
You must be signed in to change notification settings - Fork 8
Header
João Cardoso edited this page Dec 5, 2019
·
5 revisions
Header is a button class which inherits from Clickable and provides buttons that only display text. Unless a width is specified using :SetWidth, headers automatically resize to fill their parents width.

| Name | Description |
|---|---|
| SetLabel(label) | Alias for :SetText
|
| GetLabel() | Alias for :GetText
|
| SetUnderlined(underlined) | Sets whether a white line should appear bellow the text. |
| IsUnderlined() | Returns whether a white line is being displayed bellow the text. |
| SetHighlightFactor(factor) | Sets the factor by which color escape sequences in text should be highlighted on mouse-over. |
| GetHighlightFactor() | Returns color escape sequence highlight factor. |
local title = LibStub('Sushi-3.1').Header(parent, 'Header')
title:SetUnderlined(true)
local text = LibStub('Sushi-3.1').Header(parent, nil, 'GameFontHighlightSmall')
text:SetText('This is the power of headers. Great for writing text and sectioning menus.')This is the Sushi-3.1 wiki. Wiki Home