Class: Scene_Shop

Scene_Shop()

new Scene_Shop()

The scene class of the shop screen.

Extends

Methods

activateBuyWindow()

Activates the buy window within the shop scene.

activateSellWindow()

Activates the sell window within the shop scene.

actor() → {Game_Actor}

Returns the current game actor.
Inherited From:
Returns:
Type
Game_Actor

addChild(child) → {Object}

[super] Adds a child to the container.
Parameters:
Name Type Description
child Object The child to add
Inherited From:
Returns:
The child that was added
Type
Object

addChildAt(child, index) → {Object}

[super] Adds a child to the container at a specified index.
Parameters:
Name Type Description
child Object The child to add
index Number The index to place the child in
Inherited From:
Returns:
The child that was added
Type
Object

addWindow()

Add the children window to the windowLayer processing.
Inherited From:

attachReservation()

Attach a reservation to the reserve queue.
Inherited From:

buyingPrice() → {Number}

Returns the buying price for the current item.
Returns:
Type
Number

checkGameover()

Check whether the game should be triggering a gameover.
Inherited From:

commandBuy()

Handler for pressing buy within the shop scene.

commandSell()

Handler for pressing sell within the shop scene.

create()

Overrides:

createBuyWindow()

Creates the buy window.

createCategoryWindow()

Creates the category window.

createCommandWindow()

Creates the command window for buying or selling.

createDummyWindow()

createFadeSprite()

Create a Screen sprite for the fadein and fadeOut purpose and add it to the rendering process.
Inherited From:

createGoldWindow()

Creates the gold window on the shop scene.

createHelpWindow()

Creates the help window.
Inherited From:

createNumberWindow()

Creates the number input window on the shop scene.

createSellWindow()

Creates the sell window.

createStatusWindow()

Creates the status window.

createWindowLayer()

Create the layer for the windows children and add it to the rendering process.
Inherited From:

currencyUnit() → {String}

Returns the currency unit of the game within the shop scene.
Returns:
Type
String

detachReservation()

Remove the reservation from the Reserve queue.
Inherited From:

doBuy(number)

Parameters:
Name Type Description
number Number

doSell(number)

Parameters:
Name Type Description
number Number

endNumberInput()

fadeOutAll()

Slowly fade out all the visual and audio of the scene.
Inherited From:

fadeSpeed() → {Number}

Return the screen fade speed value.
Inherited From:
Returns:
Return the fade speed
Type
Number

initialize()

Overrides:

isActive() → {Boolean}

Returns whether the scene is active or not.
Inherited From:
Returns:
return true if the scene is active
Type
Boolean

isBusy() → {Boolean}

Return whether the scene is busy or not.
Inherited From:
Returns:
Return true if the scene is currently busy
Type
Boolean

isReady() → {Boolean}

Return whether the scene is ready to start or not.
Inherited From:
Returns:
Return true if the scene is ready to start
Type
Boolean

maxBuy() → {Number}

Returns the maximum number bought.
Returns:
Type
Number

maxSell() → {Number}

Returns the maximum number sold.
Returns:
Type
Number

money() → {Number}

Returns the player gold within the shop scene.
Returns:
Type
Number

nextActor()

Moves to the next actor in the party.
Inherited From:

onActorChange()

Inherited From:

onBuyCancel()

Handler for when buying is cancelled.

onBuyOk()

Handler for when buying is confirmed.

onCategoryCancel()

onCategoryOk()

onNumberCancel()

onNumberOk()

onSellCancel()

onSellOk()

popScene()

Pop the scene from the stack array and switch to the previous scene.
Inherited From:

prepare(goods, purchaseOnly)

Parameters:
Name Type Description
goods Array.<Array.<*>>
purchaseOnly Boolean

previousActor()

Moves to the previous actor in the party.
Inherited From:

removeChild(child) → {Object}

[super] Removes a child to the container.
Parameters:
Name Type Description
child Object The child to remove
Inherited From:
Returns:
The child that was removed
Type
Object

removeChildAt(index) → {Object}

[super] Removes a child from the specified index position.
Parameters:
Name Type Description
index Number The index to get the child from
Inherited From:
Returns:
The child that was removed
Type
Object

sellingPrice() → {Number}

Returns the selling price for the current item.
Returns:
Type
Number

setBackgroundOpacity(opacity)

Parameters:
Name Type Description
opacity Number
Inherited From:

slowFadeSpeed() → {Number}

Return a slow screen fade speed value.
Inherited From:
Returns:
Return the fade speed
Type
Number

start()

Start the scene processing.
Inherited From:

startFadeIn(durationopt, whiteopt)

Request a fadeIn screen process.
Parameters:
Name Type Attributes Default Description
duration Number <optional>
30 The time the process will take for fadeIn the screen
white Boolean <optional>
false If true the fadein will be process with a white color else it's will be black
Inherited From:

startFadeOut(durationopt, whiteopt)

Request a fadeOut screen process.
Parameters:
Name Type Attributes Default Description
duration Number <optional>
30 The time the process will take for fadeOut the screen
white Boolean <optional>
false If true the fadeOut will be process with a white color else it's will be black
Inherited From:

stop()

Stop the scene processing.
Inherited From:

terminate()

Terminate the scene before switching to a another scene.
Inherited From:

update()

Update the scene processing each new frame.
Inherited From:

updateActor()

Updates the current actor.
Inherited From:

updateChildren()

Update the children of the scene EACH frame.
Inherited From:

updateFade()

Update the screen fade processing.
Inherited From: