A dialog (also known as dialogue) is a user interface element that is used to display messages and provide interactivity. Some types of dialogs Scratch uses are help dialogs, file chooser dialogs, and message dialogs.
Types
Variable Creation
When a variable is being created, it is done in a dialog. This dialog has a place to type the variable's name, and radio buttons determining the scope; a Cloud Data checkbox has been included since Scratch 2.0.
Procedure Creation
When creating a custom block, a dialog with the name and arguments, as well as buttons to add arguments, is shown.
File Selection
File selection dialogs are used when importing or exporting something. They show files and folders in the current directory, a way to go to the upper directory, a directory tree (by clicking the dropdown with the current one's name), and some common places. In exports, it also contains a place to write the filename.
Library
The media library includes sprites, costumes, and sounds. The library dialog contains filters to sort the media. It also has a search bar.
Sprites can be sorted by category, theme, type, or what media it features (scripts, costumes, sounds). If it has multiple costumes, they can be toggled with arrows. Information is shown in a tooltip.
Costumes can be sorted by category, theme, or type, but scenes only by category to theme.
Sounds can be sorted by category. It shows the duration in seconds, and a button to preview the sound.
Camera
This article or section documents something not included in the current version of Scratch (3.0). It is only useful from a historical perspective. |
Prior to May 2021, costume could be created through the camera dialog, which allowed a user to take a picture using their webcam. This was removed to avoid encouraging users to put images of themself in their projects which did not meet Scratch's privacy standards.[1]
Recording
The sound recording dialog is shown when a user creates a sound by the Record button in the Sound Editor, or by the "record..." option in Dropdown Menus for Sound Blocks.
Quit
The quit dialog is a feature used in a variety of different programs.[citation needed] When the window is told to close, if the project is not saved, this dialog appears asking if the user wants to save, quit, or cancel.
Features
Some features that nearly all dialogs share are the buttons. A dialog with user input always has at least two — OK, and cancel. The help dialog, or a message dialog such as one produced by the show dialog [info] with text [] ::sensing
block in Panther, only has an OK button. The styling of a dialog is usually uniform across a program.
Images
Please expand this Please add more images.. You can help by adding more information if you are an editor. More information might be found in a section of the talk page. (January 2016) |
Images of the different types of dialogs presented in this article are shown below.
Scratch 3.0
Scratch 2.0
The camera dialog, to create a costume from the webcam. This was added in 1.4.
Scratch 1.4
The help dialog for the Point in Direction () block.
References
- ↑ ScratchCat. (13/05/21). "While this vision and feature do promote creative expression, a feature which was designed to encourage people to share pictures of themselves does not meet our privacy standards. In response to this, we have removed the feature which created a costume or backdrop from the camera." topic:513228