Set dialog size (:set_size)
Declaration
dialog_obj = dialog_obj:set_size(width, height)
Parameters
- width, height
Integer. Dialog size. If not set elsewhere, defaults to full screen
Returns
- dialog_obj
Dialog. Returns the dialog itself
Description
Set the dialog's size. If not full screen, it will be centered with a corner radius of 10
Example
local dlg = dialog()
dlg:set_size(600, 800)
dlg:show()