User Tools

Site Tools


crpl:docs:showmessagedismissible

<- CRPL reference <- Screen Commands

ShowMessageDismissibile

ArgumentsResultNotation
Message and Coordinatesn1 i1 i2 –

Description

Displays a message in the User Interface at coordinates (i1,i2) in screen pixel coordinates (upper left origin). The message will disappear next frame so you'll have to call it every frame. Limit one message or message dismissible at a time.

Unlike ShowMessage, the message will have an X in the upper right corner that the player can click. Use WasMessageDismissed to learn of the player's choice.

Examples

once 0 ->mode endonce
if (<-mode eq(0))
    ShowMessageDismissible("Close this message!\n(After you're done reading it.)" -1 60)
    if (WasMessageDismissed)
        1 ->mode 	
	PlaySound("Retro22")
    endif
endif
crpl/docs/showmessagedismissible.txt · Last modified: 2021/02/05 11:44 by Karsten75