show_info(text,bgcolor,left,top,width,height,embedGameWindow,showBorder,allowResize,stayOnTop,pauseGame,caption)

From ENIGMA
Jump to navigation Jump to search

Description

Displays the given Rich Text Formatted information in a dialog window or embedded to the main game window. This function is more advanced than the traditional Game Maker version in that it allows you to specify the settings at runtime.

Parameters

Parameter Data Type Description
text string the rich text formatted information to display
bgcolor integer color of the RTF control background
left integer x coordinate of the dialog or client area, use -1 to center to the screen
top integer y coordinate of the dialog or client area, use -1 to center to the screen
width integer width of the dialog or client area
height integer height of the dialog or client area
embedGameWindow boolean whether or not to embed into the main game window
showBorder boolean whether to show the border for the dialog
allowResize boolean whether to allow the dialog to be resized
stayOnTop boolean whether the dialog should stay on top of all other dialogs
pauseGame boolean whether or not to pause the game in the background
caption string the caption of the dialog

Return Values

void: This function does not return anything.

Example Call

// demonstrates showing the game information
show_info();

// demonstrates showing custom information
show_info("Press F4 to toggle fullscreen", c_white, -1, -1, 600, 480, false, true, true, true, false, "Help");