Get the rectangle that represents the actor command window's x/y/width/height
Returns:
Type | Description |
---|
Rectangle | The rectangle that represents the actor command window |
Get the rectangle that represents the actor window's x/y/width/height
Returns:
Type | Description |
---|
Rectangle | The rectangle that represents the actor window |
Name | Type | Description |
---|
window | Window | The window to add as a child |
Associates the windows with each other
Gets the bottom of the touch UI button area in the scene
Returns:
Type | Description |
---|
number | Y Pixel for the cottom coordinate of the button area |
Gets the height of the touch UI button area
Returns:
Type | Description |
---|
number | Height in pixels of the button area |
Get the top Y pixel of the button area
Returns:
Type | Description |
---|
number | The top pixel of the button area |
Gets the Y pixel of the buttons
Returns:
Type | Description |
---|
number | Y Pixel for the top coordinate of the buttons |
calcWindowHeight(numLines, selectable)numberinherited
Calculates how many pixels tall a window is
Name | Type | Description |
---|
numLines | number | Amount of text lines in the window |
selectable | boolean | If the window is selectable (or inherits from Window_Selectable) or not |
Returns:
Type | Description |
---|
number | Amount of pixels tall the window is |
Cancel the message window wait
- Since:
Centers a given sprite within the game window
Name | Type | Description |
---|
sprite | Sprite | The sprite to center |
Changes the current input window
Check if there is a gameover, and go to Scene_Gameover if so
Closes the command windows
Processing for when the Attack command is selected
Processing for when the Cancel command is selected
Processing for when the Escape command is selected
Processing for when the Fight command is selected
Processing for when the Guard command is selected
Processing for when the Item command is selected
Processing for when the Skill command is selected
Creates the scene
createActorCommandWindow()
Creates the actor command window
Creates the actor window
Create all of the windows in the scene
Creates the Touch UI buttons
Creates the cancel Touch UI button
Creates the choice list window
Create the display objects for the battle scene
Creates the enemy window
Creates the event item window
Creates the gold window
Creates the help window
Creates the item window
Create the battle log window
Create the message window
Creates the name box window
Creates the number input window
createPartyCommandWindow()
Creates the party command window
Creates the scroll text window
Creates the skill window
Create the battle spriteset
Creates the status window
Destroys the stage
Ends command selection
Get the rectangle that represents the enemy window's x/y/width/height
Returns:
Type | Description |
---|
Rectangle | The rectangle that represents the enemy window |
Get the rectangle that represents the event item window's x/y/width/height
Returns:
Type | Description |
---|
Rectangle | The rectangle that represents the message event item |
Try to autosave the game
Fades out the scene and audio
Default speed for a normal fade
Returns:
Type | Description |
---|
number | Amount of frames to fade |
Get the rectangle that represents the gold window's x/y/width/height
Returns:
Type | Description |
---|
Rectangle | The rectangle that represents the gold window |
Get the bottom Y pixel of the help area
Returns:
Type | Description |
---|
number | The bottom pixel of the help area |
Get the height (in pixels) of the help area
Returns:
Type | Description |
---|
number | The height of the help area |
Get the top Y pixel of the help area
Returns:
Type | Description |
---|
number | The top pixel of the help area |
Get the rectangle that represents the help window's x/y/width/height
Returns:
Type | Description |
---|
Rectangle | The rectangle that represents the help window |
Hides the sub input windows
Initializes the scene
Check if scene is active
Returns:
Type | Description |
---|
boolean | True if the scene is active |
Check if any battle window that accepts player input is active
Returns:
Type | Description |
---|
boolean | True if any input window is active |
Check if autosaving is enabled
Returns:
Type | Description |
---|
boolean | True if the game can autosave |
Check if touch UI buttons appear on bottom
Returns:
Type | Description |
---|
boolean | True if bottom button mode is enabled |
Check if the help window appears on bottom
Returns:
Type | Description |
---|
boolean | True if bottom help mode is enabled |
Check if scene is busy
Returns:
Type | Description |
---|
boolean | True if the scene is busy |
Check if scene is currently fading the screen
Returns:
Type | Description |
---|
boolean | True if the scene is fading |
Check if the message window is closing
Returns:
Type | Description |
---|
boolean | If the message window is currently closing |
Check if scene is ready
Returns:
Type | Description |
---|
boolean | True if the scene is ready |
Check if right input mode is enabled
Returns:
Type | Description |
---|
boolean | True if right input mode is enabled |
Check if scene is started
Returns:
Type | Description |
---|
boolean | True if the scene is started |
Check if battle time is active
Returns:
Type | Description |
---|
boolean | True if battle time is active |
Get the rectangle that represents the item window's x/y/width/height
Returns:
Type | Description |
---|
Rectangle | The rectangle that represents the item window |
Get the rectangle that represents the battle log window's x/y/width/height
Returns:
Type | Description |
---|
Rectangle | The rectangle that represents the battle log window |
Get the main command width
Returns:
Type | Description |
---|
number | Width of a main command |
Get the rectangle that represents the message window's x/y/width/height
Returns:
Type | Description |
---|
Rectangle | The rectangle that represents the message window |
Check if the input window should change
Returns:
Type | Description |
---|
boolean | True if the input window should change |
needsSlowFadeOut()boolean
Check if the battle scene should slowly fade out
Returns:
Type | Description |
---|
boolean | True if the battle scene should slowly fade out |
Processing for cancel input on the actor window
Processing for OK input on the actor window
Processing for when an autosave attempt failed
Processing for when an autosave attempt was successful
Processing for cancel input on the enemy window
Processing for OK input on the enemy window
Processing for cancel input on the item window
Processing for OK input on the item window
Processing for command selection
Processing for cancel input on the skill window
Processing for OK input on the skill window
Get the rectangle that represents the party command window's x/y/width/height
Returns:
Type | Description |
---|
Rectangle | The rectangle that represents the party command window |
Pops the scene to return to the previous scene
Requests an autosave
Scales a given sprite to fit in the game window
Name | Type | Description |
---|
sprite | Sprite | The sprite to scale |
Get the rectangle that represents the scroll text window's x/y/width/height
Returns:
Type | Description |
---|
Rectangle | The rectangle that represents the scroll text window |
Selects the next command
Selects the previous command
Check if the scene should autosave
Returns:
Type | Description |
---|
boolean | True if next scene is the map scene |
shouldOpenStatusWindow()boolean
Check if the status window should open
Returns:
Type | Description |
---|
boolean | True if status window should open |
Get the rectangle that represents the skill window's x/y/width/height
Returns:
Type | Description |
---|
Rectangle | The rectangle that represents the skill window |
Default speed for a slow fade
Returns:
Type | Description |
---|
number | Amount of frames to fade |
Starts the scene
startActorCommandSelection()
Start actor command selection
Starts the actor selection
Starts enemy selection
Start to fade the scene in
Name | Type | Description |
---|
duration | number | Frames to fade in the scene |
white | boolean | If the fade color is white or not |
Start to fade the scene out
Name | Type | Description |
---|
duration | number | Frames to fade out the scene |
white | boolean | If the fade color is white or not |
startPartyCommandSelection()
Starts party command selection
Get the rectangle that represents the status window's x/y/width/height
Returns:
Type | Description |
---|
Rectangle | The rectangle that represents the status window |
Get the X coordinate of the left of the status window
Returns:
Type | Description |
---|
number | Pixel of the left of the status window |
Stops the scene
Terminates the scene
Updates the scene
Update the cancel Touch UI button
Updates the scene's children
Updates the scene's fade
Update the input window visibility
updateLogWindowVisibility()
Updates the battle log window visibility
updateStatusWindowPosition()
Updates the position of the status window
updateStatusWindowVisibility()
Updates the status window visibility
Updates the visibility of screen elements
Get the height in pixels of the window area
Returns:
Type | Description |
---|
number | The height of the window area |