GameMaker Touhou Engine   Home   Downloads   Documentation

_INPUT_RESULTS


The object that updates the high-score list.


Locals:


Name Value/Default Significance
_NAME_CONFIRMING <boolean>/false true: The player is confirming whether or not to save the results and return to the main menu. false: The player is still inputting their name onto the scoreboard (if applicable).
_PLAYER_NAME <string>/"" The name to associate with the achieved high-score.
_DRAWING_COLOR <color>/make_colour_rgb(150, 5, 5) The color to draw the row containing the achieved high-score.
_SELECTED <integer(0-1)>/0 The selected option inside the confirmation menu.

Events:


Trigger # Actions
Create 1 Reinitialize global._DATA_MAP if the file "score.dat" doesn't exist, set local variables to default values.
Draw 1 Draw the table that contains the scores inside global._DATA_MAP. If the player is inside the confirmation menu, draw it too.
Press <any key> 1 If the player is inside the confirmation menu, either change the selection or save the results (and copy global._SPELL_MAP_TEMP into global._DATA_MAP) and initiate a replay save prompt. Otherwise, update _PLAYER_NAME.
Release <any key> 1 Update _PLAYER_NAME if the player isn't inside the confirmation menu.