Creates an instance of Window_ShopBuy.
The closing property; determines if the window is closing.
The boolean property that determines if the cursor is fixed(locked to a position).
The index property of Window_Selectable; this is used to select items from the list within the window.
The opening property; determines if the window is opening.
The standard face height; default is 144.
The standard face width; default is 144.
The standard icon height; default is 32.
The standard icon width; default is 32.
Activates the window, allowing it to be processed and to update.
Returns the actor name given an index; the index starts from 1.
Calculates the text height of the textState (when using drawTextEx); if all is set to true, all lines of text are calculated, otherwise only a single line is processed.
Calls the ok handler and begins processing confirmation of selection.
Returns the x coordinate of the mouse to a local window x coordinate.
Returns the y coordinate of the mouse to a local window y coordinate.
Changes the paintOpacity (the opacity of the text drawn to the window); if true the opacity is set to 255, otherwise the opacity is set to 160.
Changes the text color property given a css color string.
Closes the window.
Returns the inner content height of the window.
Returns the inner content width of the window.
Converts the escape characters and returns the text content after processing the characters.
Creates the contents of the window; this is the area of the window which text is drawn to.
Returns the crisis color as a css color string.
Moves the cursor down; if wrap is passed as true, then it will return to the top when at the end of the list.
Returns true if the _cursorFixed property is true; this means the cursor is locked to a position.
Moves the cursor up; if wrap is passed as true, then it will return to the bottom when at the top of the list.
Deactives the window, preventing further processing.
Returns the death color as a css color string.
Deselects the currently selected index.
Color 1 of the dimmer sprite bitmap. for the gradient.
Color 2 of the dimmer sprite bitmap for the gradient.
Draws the actor class at the specified x and y coordinates within the given width.
Draws the actor face at the specified x and y coordinates within the given width.
Draws the actor hp at the specified x and y coordinates within the given width.
Draws the actor icons at the specified x and y coordinates within the given width.
Draws the actor level at the specified x and y coordinates.
Draws the actor mp at the specified x and y coordinates within the given width.
Draws the actor name at the specified x and y coordinates within the given width.
Draws the actor nickname at the specified x and y coordinates within the given width.
Draws a simple status for the game actor passed into the method at the specified x and y coordinates within the given width.
Draws the actor tp at the specified x and y coordinates within the given width.
Draws all items within the window; this method cals drawItem multiple times.
Draws a character (map sprites) at the specified x and y coordinate. CharacterName refers to character spritesheet, and characterIndex refers to the characterIndex on the spritesheet.
Draws the currency value given at the specified x and y coordinates within the width given. Useful if you want to write your own custom currency value.
Draws the current and max number at the specified x and y coordinate within the given width. Color1 represents the current number and color2 represents the max number when the text is drawn.
Draws a gauge at the specified x and y coordinates within the given width. Color1 and Color2 represent the gradient as css color strings of the gauge.
Draws an icon given the specified iconIndex at the specified x and y coordinates. The Width and Height of the icon is based on the _iconWidth and _iconHeight properties.
Draws the item name at the specified x and y coordinates within the given width.
Given text or a number, draws the content to the window's contents layer at the specified x and y coordinate within the max width. The text content can also be aligned with the align property. The possible alignments are: "left", "center", "right".
Draws text with text codes included; this will draw icons, increase text height, and more.
Returns the fitting height given a number of lines based on the line height plus standard padding of the window. Default formula: numLines lineHeight + standardPadding 2
Returns the gauage back color as a css color string.
Hides the window, making it invisible; the window is not closed when hidden.
Hides the background dimmer sprite.
Hides the attached help window.
Returns the hp color as a css string.
Returns the hp gauge color 1 as a css color string.
Returns the hp gauge color 2 as a css color string.
Returns the current position of the _index property.
Returns true if the window is currently closing.
Determines if the cursor is visible within the window.
Checks if the current item is enabled (can be bought/sold).
Returns true if the window is horizontal; means the window only has a single row.
Determines if ok is enabled as an option; this means whether you can confirm selection of an item within the window.
Returns true if the window is currently opening.
Determines if touch ok is enabled as an option; this means whether you can confirm the selection of an item within the window with touch input.
Returns the current item of the window.
Returns the height of an item within the window; determines the height of a row.
Creates a new rectangle based on itemWidth and itemHeight. The rectangle is mainly used for positioning items within the selectable window.
Creates a new rectangle based on itemWidth and itemHeight The rectangle is used for positioning text within the selectable window.
Returns the width of an item within the window; determines the width of a column.
Returns the standard line height of the current window; default is 36.
Loads the window skin from the img/system directory.
Makes the font bigger by a value of 12.
Makes the font smaller by a value of 12.
Creates a list of items for the shop window.
Returns the maximum number of columns for the window.
Returns the maximum number of items within the window; useful to overwrite when creating a new window. This method is used to calculate the number of rows and more.
Returns the mp color as a css color string.
Returns the mp cost color as a css color string.
Returns the mp gauge color 1 as a css color string.
Returns the mp gauge color 2 as a css color string.
Returns the normal color as a css color string.
Obtains the escape parameters from text codes in the text state when drawTextEx is used to draw text.
Opens the window.
Changes the text color based on the powerUpColor, powerDownColor and normal color. powerUpColor is any number greater than 0, powerDownColor is any color less than 0, otherwise normal color is returned.
Returns a party member name given an index; the index starts from 1.
Returns the pending color as a css color string.
Plays the buzzer sound effect when input is incorrect.
Plays a sound effect when okay is processed.
Returns the power down color as a css color string.
Returns the power up color as a css color string.
Process each character in the text when drawTextEx is used to draw text.
Handles the processing of cursor movement.
Processes drawing an icon when drawTextEx is used for drawing text.
Processes escape characters when drawTextEx is used for drawing text.
Handles the process of attached handlers.
Processes new line when drawTextEx is used to draw text.
Processes new page when drawTexttEx is used to draw text.
Processes the normal characters in the text when drawTextEx is used to draw text. Normal characters are letters and numbers.
Handles the processing of touch input.
Handles the processing of the scroll wheel within the window.
Refreshes the window contents.
Refreshes the bitmap attached to the dimmer sprite based on the window dimensions.
Reselects the index based on the window's _index property.
Reverses the face images of the game party members.
Resets the font settings of the window back to the default.
Resets the text color of the window back to the default.
Selects the current index within the window given a number.
Sets the background type of the window. 0 is 255 window opacity (standard). 1 is the window with background dimmer. Any other number changes the opacity to 0.
Sets the _cursorFixed property of the window.
Creates a new handler with the symbol as the handler name and a method (JS function) bound to it.
Sets the current top row of the given a number. The top row will then be moved to an index of the window.
Shows the window, making it visible.
Shows the background dimmer sprite.
Shows the attached help window.
Returns the standard back opacity of the window; this is the opacity of the area behind the window's text content. Default is 192.
Returns the standard font face of the game based on what language the game is in.
Returns the standard font size of the text in window; default is 28.
Returns the standard padding of the window; default is 18.
Returns the system color as a css color string.
Returns a text color given a numbered index as a css color string; this index maps directly to the img/system/window.png colors by default.
Returns the text padding of the window; default is 6.
Calculates the width of a text string and returns a number.
Returns the tp color as a css color string.
Returns the tp cost color as a css color string.
Returns the tp gauge color 1 as a css color string.
Returns tp gauge color 2 as a css color string.
Returns the translucentOpacity for the window; The default is 160.
The update method of the window; this is run every frame to do logic processing for the window.
Updates the back opacity of the window based on the standardBackOpacity method.
Updates the background dimmer sprite opacity based on the openness of the window.
Updates the openness of the window when the _closing property is set to true. Openness is decreased.
Updates the openness of the window when the _opening property is set to true. Openness is increased.
Updates the window padding based on the standardPadding method.
Updates the tone of the window based on the game system window tone defined in the database.
Returns the width of the window.
Generated using TypeDoc
Window_ShopBuy
The window for selecting an item to buy on the shop screen.
Window_ShopBuy