class Popup
package armory.ui
Static variables
Static methods
staticshowCustom(ui:Zui, ?commands:Zui ‑> Void, mx:Int = -1, my:Int = -1, mw:Int = 400, mh:Int = 160):Void
Displays a popup box with custom drawing code.
Parameters:
ui | the Zui instance for the popup |
---|---|
commands | the function for drawing the popup's content |
mx | the x position of the popup. -1 = screen center (defaults to -1) |
my | the y position of the popup. -1 = screen center (defaults to -1) |
mw | the width of the popup (defaults to 400) |
mh | the height of the popup (defaults to 160) |
staticshowMessage(ui:Zui, title:String, text:String):Void
Displays a message box with a title, a text body and a centered "OK" button.
Parameters:
ui | the Zui instance for the popup |
---|---|
title | the title to display |
text | the text to display |