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

FieldTypeDefaultAccess PermissionDescription
widthfloat0.0fREAD_WRITESets the width of the dialog:

  • If set to 0, the standard system dialog width is used (1038 for FHD, 692 for HD). If the title or any button text is too wide to fit within the standard width, the dialog width will be automatically increased to show the full title or button text up to a preset maximum (1380 for FHD and 920 for HD).
  • If set to greater than 0, the specified width is used as the overall width of the dialog.
heightfloat0.0fREAD_WRITESets 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.
buttonSelectedint0READ_ONLYIndicates the index of the selected button when the user selects one of the buttons in the button area.
buttonFocusedint0READ_ONLYIndicates the index of the button that gained focus when the user moved the focus onto one of the buttons in the button area.
paletteRSGPalette nodenot setREAD_WRITESets 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.
closebooleanfalseWRITE_ONLYDismisses the dialog. The dialog is dismissed whenever the close field is set, regardless of whether the field is set to true or false.
wasClosedeventN/AREAD_ONLYAn event that indicates the dialog was dismissed. This event is triggered when one of the following occurs:

  • The close field is set.
  • The Back, Home, or Options key is pressed.
  • Another dialog is displayed.

RSG Palette Color Node fields

Palette Color NameUsages
DialogBackgroundColorBlend color for dialog's background bitmap.
DialogItemColorBlend color for the following items:

DialogTextColorColor for the text in the following items:

DialogFocusColorBlend color for the following:

  • The button area focus bitmap.

  • The focused scrollbar thumb.
DialogFocusItemColorColor for the text of the focused button.
DialogSecondaryTextColorColor for the text in the following items:

DialogSecondaryItemColorColor for the following items:

DialogInputFieldColorThe blend color for the text edit box background bitmap for keyboards used inside dialogs.
DialogKeyboardColorThe blend color for the keyboard background bitmap for keyboards used inside dialogs
DialogFootprintColorThe blend color for the following items:

  • The button focus footprint bitmap that is displayed when the button area does not have focus.

  • Unfocused scrollbar thumb and scrollbar track.

Did this page help you?