-
-
Notifications
You must be signed in to change notification settings - Fork 8
Glowbox
João Cardoso edited this page Dec 5, 2019
·
3 revisions
Glowbox is a frame class which inherits from Callable and provides popup boxes as commonly found in in-game tutorials.
Name | Description |
---|---|
SetText (text) | Sets the text to be displayed on the box. |
GetText | Returns the text currently being displayed by the box. |
SetDirection (direction) | Sets the arrow direction. Valid values are BOTTOM , TOP , LEFT and RIGHT . |
GetDirection | Returns the current arrow direction. |
Name | Description |
---|---|
OnClose | Fired when the box is closed by the user. |
local box = LibStub('Sushi-3.1').Glowbox()
box:SetText('This is the minimap. It shows the environment around your character.')
box:SetPoint('BOTTOM', Minimap, 'TOP')
box:SetCall('OnClose', function(box)
print('I guess you know what the minimap is.')
end)
This is the Sushi-3.1 wiki. Wiki Home