Skip to content
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.

Preview

Methods

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.

Calls

Name Description
OnClose Fired when the box is closed by the user.

Example

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)

Sushi-3.1 🍣

Documentation
Class Reference
Best Practices

Feedback
Post an issue

Clone this wiki locally