StandardDialog
Base node for standard and custom Roku dialog layouts
Extends Group
The StandardDialog node is the base for Roku's pre-built standard message, keyboard, pinpad, and progress dialogs. It can also be used directly with a custom dialog structure built with the StdDialogItem nodes.
Fields
| Field | Type | Default | Access Permission | Description |
|---|---|---|---|---|
| width | float | 0.0f | READ_WRITE | Sets the width of the dialog:
|
| height | float | 0.0f | READ_WRITE | Sets the height of the dialog. If this field is set to greater than 0, and the layout of the dialog for the specified width results in a dialog with a height less than the value of this field, the dialog layout is increased so that the dialog height matches the value of this field. In this case, the button area is moved to the bottom of the dialog and a blank region exists between the content area and the button area. |
| buttonSelected | int | 0 | READ_ONLY | Indicates the index of the selected button when the user selects one of the buttons in the button area. |
| buttonFocused | int | 0 | READ_ONLY | Indicates the index of the button that gained focus when the user moved the focus onto one of the buttons in the button area. |
| palette | RSGPalette node | not set | READ_WRITE | Sets the color palette for the dialog's background, text, buttons, and other elements. By default, no palette is specified; therefore, the dialog inherits the color palette from the nodes higher in the scene graph (typically, from the dialog's Scene node, which has a palette field that can be used to consistently color the standard dialogs and keyboards in the app). The RSGPalette color values used by the StandardDialog node are listed in the RSGPalette color node fields section. |
| close | boolean | false | WRITE_ONLY | Dismisses the dialog. The dialog is dismissed whenever the close field is set, regardless of whether the field is set to true or false. |
| wasClosed | event | N/A | READ_ONLY | An event that indicates the dialog was dismissed. This event is triggered when one of the following occurs:
|
RSG Palette Color Node fields
| Palette Color Name | Usages |
|---|---|
| DialogBackgroundColor | Blend color for dialog's background bitmap. |
| DialogItemColor | Blend color for the following items:
|
| DialogTextColor | Color for the text in the following items:
|
| DialogFocusColor | Blend color for the following:
|
| DialogFocusItemColor | Color for the text of the focused button. |
| DialogSecondaryTextColor | Color for the text in the following items:
|
| DialogSecondaryItemColor | Color for the following items:
|
| DialogInputFieldColor | The blend color for the text edit box background bitmap for keyboards used inside dialogs. |
| DialogKeyboardColor | The blend color for the keyboard background bitmap for keyboards used inside dialogs |
| DialogFootprintColor | The blend color for the following items:
|
Updated 2 months ago
Did this page help you?
