Interface

SelectorButtonTemplate {
  eventIn  SFBool set_enabled
  eventIn  SFBool set_selected
  field    SFNode activeAppearance             NULL
  field    SFNode activeGeometry               NULL
  field    SFNode activeOverAppearance         NULL
  field    SFNode activeOverGeometry           NULL
  field    SFNode appearance                   NULL
  field    SFNode disabledAppearance           NULL
  field    SFNode disabledGeometry             NULL
  field    SFNode disabledSelectedAppearance   NULL
  field    SFNode disabledSelectedGeometry     NULL
  field    SFBool enabled                      TRUE
  field    SFNode geometry                     NULL
  field    SFNode overAppearance               NULL
  field    SFNode overGeometry                 NULL
  field    SFBool selected                     FALSE
  field    SFNode selectedActiveAppearance     NULL
  field    SFNode selectedActiveGeometry       NULL
  field    SFNode selectedActiveOverAppearance NULL
  field    SFNode selectedActiveOverGeometry   NULL
  field    SFNode selectedAppearance           NULL
  field    SFNode selectedGeometry             NULL
  field    SFNode selectedOverAppearance       NULL
  field    SFNode selectedOverGeometry         NULL
  eventOut SFBool enabled_changed
  eventOut SFBool isActive
  eventOut SFBool isOver
  eventOut SFBool selected_changed
}

Description

The SelectorButtonTemplate is employed to create a button that operates as a light switch.
SelectorButtonTemplate Preview

SelectorButtonTemplate is similar to ButtonTemplate; where the latter provides a simple event-firing pushbutton, SelectorButtonTemplate has a notion of state and operates as a two-way switch.

Download