20,741
edits
(→Adding Text Elements: Adding a text.) |
m (ascending complexity) |
||
| Line 149: | Line 149: | ||
|- | |- | ||
|} | |} | ||
== Canvas Input Dialog == | |||
{| class="wikitable" | |||
|- | |||
! Screenshot !! Code !! | |||
|- | |||
|[[File:Snippets-canvas-input-dialog.png|thumb|Canvas input dialog]] | |||
|| | |||
<syntaxhighlight lang="nasal" enclose="div"> | |||
# create a new InputDialog with a title, label, and a callback | |||
canvas.InputDialog.getText("Input Dialog Title", "Please enter some text", func(btn,value) { | |||
if (value) gui.popupTip("You entered: "~value); | |||
}); | |||
</syntaxhighlight> | |||
|- | |||
|} | |||
== Using Layouts == | == Using Layouts == | ||
| Line 180: | Line 198: | ||
== Adding a NavDisplay == | == Adding a NavDisplay == | ||