ShowMenuCommand

Extends: ESCBaseCommand < Resource

Description

show_menu menu_type

Shows either the main menu or the pause menu. Transitions to the menu using the default transition type (set in the Escoria project settings).

Parameters

  • menu_type: Which menu to show. Can be either main or pause (default: main)

@ESC

Method Descriptions

configure

func configure() -> ESCCommandArgumentDescriptor

Return the descriptor of the arguments of this command

validate

func validate(arguments: Array)

Validate whether the given arguments match the command descriptor

run

func run(command_params: Array) -> var

Run the command

interrupt

func interrupt()

Function called when the command is interrupted.