Class Dialog
Extends
Frame.
a centered dialog position at the top of the GUI. disables and grays out rest of the guy
Defined in: gamejs-gui.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Dialog(parent, constrain, size, position, surface, visible)
|
- Fields borrowed from class Frame:
- constrain
- Fields borrowed from class View:
- children, parent, position, size, surface
Method Attributes | Method Name and Description |
---|---|
close()
unlock gui & hide dialog
|
|
show()
lock GUI & show dialog
|
- Methods borrowed from class Frame:
- destroy, move, paint
- Methods borrowed from class View:
- addChild, blitChild, center, despatchEvent, draw, getGUI, getPosition, getRect, getSize, hide, isFocused, isHovered, isVisible, moveRelative, on, refresh, removeChild, resize, update
Class Detail
Dialog(parent, constrain, size, position, surface, visible)
- Parameters:
- {GUI} parent
- parent GUI object
- {Bool} constrain
- if true, frame cannot be moved out of visible area
- {Array} size
- array containing width & height of the element, eg. [width, height]
- {Array} position
- position of the view relative to parent, eg. [x, y]. OPTIONAL, default [0, 0]
- {gamejs.Surface} surface
- surface to render this view on, OPTIONAL
- {Bool} visible
- is this view visible? default true
Method Detail
close()
unlock gui & hide dialog
show()
lock GUI & show dialog