Skip to content

Commit

Permalink
Update editor-scripts-ui.md
Browse files Browse the repository at this point in the history
  • Loading branch information
britzl committed Oct 17, 2024
1 parent 9337bda commit 214c910
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/en/manuals/editor-scripts-ui.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,14 +105,14 @@ editor.ui.grid({
text = "Level Name",
alignment = editor.ui.ALIGNMENT.RIGHT
}),
editor.ui.text_field({})
editor.ui.string_field({})
},
{
editor.ui.label({
text = "Author",
alignment = editor.ui.ALIGNMENT.RIGHT
}),
editor.ui.text_field({})
editor.ui.string_field({})
}
}
})
Expand Down Expand Up @@ -149,7 +149,7 @@ local create_file = editor.ui.show_dialog(editor.ui.dialog({
text = "New File Name",
alignment = editor.ui.ALIGNMENT.CENTER
}),
editor.ui.text_field({
editor.ui.string_field({
grow = true,
text = file_name,
-- Typing callback:
Expand Down

0 comments on commit 214c910

Please sign in to comment.