GameMaker Touhou Engine   Home   Downloads   Documentation

_UPDATE_CREATE_MENU()


A script that creates a menu object.


Returns: Void


Syntax:


_UPDATE_CREATE_MENU(obj, cfs, cfns, cfl, cbs, cbns, cbl, img, fnt, names, dx, dy, rms, inst, cond)

Arguments:


Name Type Significance
obj* Reference to Object The object to create.
cfs Color The text color of a selected menu option.
cfns Color The text color of a non-selected menu option.
cfl Color The text color of a locked menu option.
cbs Color The text border color of a selected menu option.
cbns Color The text border color of a non-selected menu option.
cbl Color The text border color of a locked menu option.
img Various Type Array The values in this array are triplets comprising of X, Y and a sprite index for images to be drawn by the menu.
fnt Font The font that the menu should use.
names String Array The text for each menu option, from the top.
dx Integer Array The X-coordinate for each menu option, from the top.
dy Integer Array The Y-coordinate for each menu option, from the top.
rms Room Reference Array The value to set global._NEXT_ROOM to when an option is selected. Set a value to noone to ignore, or to -1 to make the corresponding option exit the game.
inst Object Reference Array The indexes of the objects that should be created when an option is seleceted. Set a value to noone to ignore.
cond String Array Keys for boolean values inside global._DATA_MAP that dictate whether or not each option is unlocked. Set a value to an empty string to ignore.

*Can be set to noone for the script to create an instance of _MENU_PARENT instead.