show title dialog
Shows the configured title dialog above the TurboWarp stage.
Block type: COMMAND. Opcode: showTitle. Permanent link
This block has no arguments.
Complete block reference (14 blocks)
Reusable title, menu, and DSL source storage controls for TurboWarp projects.
show title dialog: shows title, author, license, official website, and close controls above the stage.show application menu: shows a stage-mounted menu for DSL open, reload, about, and close actions.has saved DSL source?: reports whether localStorage contains a saved DSL source.saved DSL file name: reports the stored DSL source file name.Host runtimes can import createTitleDialog, createApplicationMenu, and createDslStorage from @kubohiroya/turbowarp-title-menu, or use the TurboWarpTitleMenu global exposed by the standalone extension bundle.
The extension is unsandboxed because it mounts DOM controls and uses browser storage. Load reviewed builds only.
See the repository README and architecture documentation for build, test, release, and compatibility details.
All 14 blocks are documented below, including compatibility blocks and blocks available through optional features. Select a block to read its behavior, arguments, default values, and menu choices. Each block has a permanent link.
show title dialogShows the configured title dialog above the TurboWarp stage.
Block type: COMMAND. Opcode: showTitle. Permanent link
This block has no arguments.
show application menuShows the application menu above the TurboWarp stage.
Block type: COMMAND. Opcode: showMenu. Permanent link
This block has no arguments.
add app menu action [ACTION] labelled [LABEL]Adds an application menu action this project owns, or relabels one it already added.
Block type: COMMAND. Opcode: addAppMenuAction. Permanent link
| Argument | Type | Default value | Menu choices |
|---|---|---|---|
ACTION | STRING | start | |
LABEL | STRING | Start |
clear app menu actionsRemoves every application menu action, including the built-in ones, so a project can define its own set.
Block type: COMMAND. Opcode: clearAppMenuActions. Permanent link
This block has no arguments.
set app menu action [ACTION] enabled [ENABLED]Enables or disables one application menu action.
Block type: COMMAND. Opcode: setAppMenuActionEnabled. Permanent link
| Argument | Type | Default value | Menu choices |
|---|---|---|---|
ACTION | STRING | Not specified | Available choices depend on the current project or environment. |
ENABLED | BOOLEAN | true |
when app menu action [ACTION] selectedRuns when the operator selects the named application menu action.
Block type: HAT. Opcode: whenAppMenuActionSelected. Permanent link
| Argument | Type | Default value | Menu choices |
|---|---|---|---|
ACTION | STRING | Not specified | Available choices depend on the current project or environment. |
show DSL file managerShows the dialog that adds, opens, renames, deletes, and sorts stored DSL files.
Block type: COMMAND. Opcode: showDslFiles. Permanent link
This block has no arguments.
when a DSL source is openedRuns after the operator opens a stored DSL file, or after the opened source is announced again.
Block type: HAT. Opcode: whenDslSourceOpened. Permanent link
This block has no arguments.
reload the opened DSL sourceAnnounces the currently opened DSL source again without showing a dialog.
Block type: COMMAND. Opcode: reloadOpenedDsl. Permanent link
This block has no arguments.
opened DSL file nameReturns the name of the DSL file that is currently open, or an empty string.
Block type: REPORTER. Opcode: openedDslName. Permanent link
This block has no arguments.
opened DSL sourceReturns the text of the DSL file that is currently open, or an empty string.
Block type: REPORTER. Opcode: openedDslSource. Permanent link
This block has no arguments.
has a saved DSL file?Reports whether at least one DSL file is stored in IndexedDB.
Block type: BOOLEAN. Opcode: hasSavedDsl. Permanent link
This block has no arguments.
saved DSL file countReturns how many DSL files are stored in IndexedDB.
Block type: REPORTER. Opcode: savedDslCount. Permanent link
This block has no arguments.
last DSL storage errorReturns the most recent DSL storage failure in the interface language, or an empty string.
Block type: REPORTER. Opcode: lastDslError. Permanent link
This block has no arguments.