Skip to content

Interface API

Xeltica edited this page Jun 21, 2018 · 5 revisions

This API provides controlling user interfaces such as message windows and selector windows.

[sprite_tag]+say <text>

Output text to the message box. If you specify sprite_tag, display as the entity.

You can also write like [sprite_tag]:<text>.


+yesno [goto/gosub,] <yes> ,<no>

(Not implemented)

Display the yes/no selector.


+shop <shopId>

(Not implemented)

Display the market UI.

+fade [[<in/out>, ]<time>]

Do the fade effect.

Specify in if you want to do fade-in and specify out if you want to do fade-out.

Specify a time in second units to fade to the time parameter.

in/out is omittable and in is the default value.

time is also omittable and the default value is 1s but you have to omit in/out.

This command syncs until fading is finished.


+fadeasync [[<in/out>, ]<time>]

Do the fade effect. This command doesn't sync.

Clone this wiki locally