Class in reactor_core_display.js
Window
15 public functions in 5 groups · show internal (_) functions
Familiar territory. Window keeps the RPG Maker MZ API, so existing MZ knowledge, tutorials and plugin code apply. Reactor's additions are marked with descriptions below.
The window in the game.
function Window()
Quick Reference
Setup & Creation 1
| initialize() | Sets up a new instance. |
Checks (True / False) 2
| isOpen() | Checks whether the window is completely open (openness == 255). |
| isClosed() | Checks whether the window is completely closed (openness == 0). |
Actions 8
| destroy() | Destroys the window. |
| move() | Sets the x, y, width, and height all at once. |
| setCursorRect() | Sets the position of the command cursor. |
| moveCursorBy() | Moves the cursor position by the given amount. |
| moveInnerChildrenBy() | Moves the inner children by the given amount. |
| setTone() | Changes the color of the background. |
| addChildToBack() | Adds a child between the background and contents. |
| addInnerChild() | Adds a child to the client area. |
Updating & Drawing 3
| update() | Updates the window for each frame. |
| updateTransform() | Updates the transform on all children of this container for rendering. |
| drawShape() | Draws the window shape into PIXI.Graphics object. |
Other 1
| defaultMargin() | System.json advanced.windowMargin (a 2003 window has none); 4 when the data is not loaded. |
Setup & Creation
initialize
method sourceWindow.prototype.initialize()
Sets up a new instance. (Same as the RPG Maker MZ method of this name.)
Checks (True / False)
isOpen
method sourceWindow.prototype.isOpen()
Checks whether the window is completely open (openness == 255).
Details
Checks whether the window is completely open (openness == 255).
isClosed
method sourceWindow.prototype.isClosed()
Checks whether the window is completely closed (openness == 0).
Details
Checks whether the window is completely closed (openness == 0).
Actions
destroy
method sourceWindow.prototype.destroy()
Destroys the window.
move
method sourceWindow.prototype.move(x, y, width, height)
Sets the x, y, width, and height all at once.
Details
Sets the x, y, width, and height all at once.
setCursorRect
method sourceWindow.prototype.setCursorRect(x, y, width, height)
Sets the position of the command cursor.
Details
Sets the position of the command cursor.
moveCursorBy
method sourceWindow.prototype.moveCursorBy(x, y)
Moves the cursor position by the given amount.
Details
Moves the cursor position by the given amount.
moveInnerChildrenBy
method sourceWindow.prototype.moveInnerChildrenBy(x, y)
Moves the inner children by the given amount.
Details
Moves the inner children by the given amount.
setTone
method sourceWindow.prototype.setTone(r, g, b)
Changes the color of the background.
Details
Changes the color of the background.
addChildToBack
method sourceWindow.prototype.addChildToBack(child)
Adds a child between the background and contents.
Details
Adds a child between the background and contents.
addInnerChild
method sourceWindow.prototype.addInnerChild(child)
Adds a child to the client area.
Details
Adds a child to the client area.
Updating & Drawing
update
method sourceWindow.prototype.update()
Updates the window for each frame.
updateTransform
method sourceWindow.prototype.updateTransform()
Updates the transform on all children of this container for rendering.
drawShape
method sourceWindow.prototype.drawShape(graphics)
Draws the window shape into PIXI.Graphics object.
Details
Draws the window shape into PIXI.Graphics object. Used by WindowLayer.
Other
defaultMargin
static sourceWindow.defaultMargin()
System.json advanced.windowMargin (a 2003 window has none); 4 when the data is not loaded.