Class: Scene_Message

Scene_Message

new Scene_Message()

The superclass of Scene_Map and Scene_Battle.

Extends

Methods

Adds a window to the scene's WindowLayer
NameTypeDescription
windowWindowThe window to add as a child

associateWindows()

Associates the windows with each other

buttonAreaBottom()numberinherited

Gets the bottom of the touch UI button area in the scene
Returns:
TypeDescription
numberY Pixel for the cottom coordinate of the button area

buttonAreaHeight()numberinherited

Gets the height of the touch UI button area
Returns:
TypeDescription
numberHeight in pixels of the button area

buttonAreaTop()numberinherited

Gets the top of the touch UI button area in the scene
Returns:
TypeDescription
numberY Pixel for the top coordinate of the button area
Gets the Y pixel of the buttons
Returns:
TypeDescription
numberY Pixel for the top coordinate of the buttons

calcWindowHeight(numLines, selectable)numberinherited

Calculates how many pixels tall a window is
NameTypeDescription
numLinesnumberAmount of text lines in the window
selectablebooleanIf the window is selectable (or inherits from Window_Selectable) or not
Returns:
TypeDescription
numberAmount of pixels tall the window is

cancelMessageWait()

Cancel the message window wait
Since:
  • 1.8.0

centerSprite(sprite)inherited

Centers a given sprite within the game window
NameTypeDescription
spriteSpriteThe sprite to center
Check if there is a gameover, and go to Scene_Gameover if so
Creates the scene

createAllWindows()

Create all of the windows in the scene

createChoiceListWindow()

Creates the choice list window

createColorFilter()inherited

Creates the scene's ColorFilter

createEventItemWindow()

Creates the event item window

createGoldWindow()

Creates the gold window

createMessageWindow()

Create the message window

createNameBoxWindow()

Creates the name box window

createNumberInputWindow()

Creates the number input window

createScrollTextWindow()

Creates the scroll text window

createWindowLayer()inherited

Create the scene's WindowLayer
Destroys the stage

eventItemWindowRect()Rectangle

Get the rectangle that represents the event item window's x/y/width/height
Returns:
TypeDescription
RectangleThe 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:
TypeDescription
numberAmount of frames to fade
Get the rectangle that represents the gold window's x/y/width/height
Returns:
TypeDescription
RectangleThe rectangle that represents the gold window
Initializes the scene

isActive()booleaninherited

Check if scene is active
Returns:
TypeDescription
booleanTrue if the scene is active

isAutosaveEnabled()booleaninherited

Check if autosaving is enabled
Returns:
TypeDescription
booleanTrue if the game can autosave

isBottomButtonMode()booleaninherited

Check if touch UI buttons appear on bottom
Returns:
TypeDescription
booleanTrue if bottom button mode is enabled

isBottomHelpMode()booleaninherited

Check if the help window appears on bottom
Returns:
TypeDescription
booleanTrue if bottom help mode is enabled
Check if scene is busy
Returns:
TypeDescription
booleanTrue if the scene is busy
Check if scene is currently fading the screen
Returns:
TypeDescription
booleanTrue if the scene is fading

isMessageWindowClosing()boolean

Check if the message window is closing
Returns:
TypeDescription
booleanIf the message window is currently closing
Check if scene is ready
Returns:
TypeDescription
booleanTrue if the scene is ready

isRightInputMode()booleaninherited

Check if right input mode is enabled
Returns:
TypeDescription
booleanTrue if right input mode is enabled

isStarted()booleaninherited

Check if scene is started
Returns:
TypeDescription
booleanTrue if the scene is started

mainCommandWidth()numberinherited

Get the main command width
Returns:
TypeDescription
numberWidth of a main command

messageWindowRect()Rectangle

Get the rectangle that represents the message window's x/y/width/height
Returns:
TypeDescription
RectangleThe rectangle that represents the message window

onAutosaveFailure()inherited

Processing for when an autosave attempt failed

onAutosaveSuccess()inherited

Processing for when an autosave attempt was successful
Pops the scene to return to the previous scene
Requests an autosave

scaleSprite(sprite)inherited

Scales a given sprite to fit in the game window
NameTypeDescription
spriteSpriteThe sprite to scale

scrollTextWindowRect()Rectangle

Get the rectangle that represents the scroll text window's x/y/width/height
Returns:
TypeDescription
RectangleThe rectangle that represents the scroll text window

slowFadeSpeed()numberinherited

Default speed for a slow fade
Returns:
TypeDescription
numberAmount of frames to fade
Starts the scene

startFadeIn(duration, white)inherited

Start to fade the scene in
NameTypeDescription
durationnumberFrames to fade in the scene
whitebooleanIf the fade color is white or not

startFadeOut(duration, white)inherited

Start to fade the scene out
NameTypeDescription
durationnumberFrames to fade out the scene
whitebooleanIf the fade color is white or not
Stops the scene
Terminates the scene
Updates the scene
Updates the scene's children

updateColorFilter()inherited

Updates the scene's ColorFilter
Updates the scene's fade