Skip to content

Switches

Gregory "Mad Pink" Miller edited this page Aug 14, 2019 · 3 revisions

These controls are true and false indicators that can be used for settings. Mutiple checkboxes can be selected.

myData configuration

The follow are the subkeys that can be individually set for each control:

  • "label" - the text that will be displayed in the button
  • "selected" - boolean that determines of the switch has been selected; default = false
  • "iconunchecked" - icon that will be used to indicate that clicked is false; default = controlIconB
  • "iconchecked" - icon that will be used to indicate that clicked is true; default = controlIconA
  • "uncheckediconcolor" - color of the icon that is displayed when clicked is false; default = controlIconColor
  • "checkediconcolor" - color of the icon that is displayed when clicked is true; default = controlHiliteColor
  • "value" - the current numeric value; default = the switch number
  • "textcolor" - color of the label text displayed; default = controlTextColor
  • "textsize" - font size for label text; default = controlTextSize
  • "textfont" - font for label text; default = controlTextFont

Unless specified above, the value is set to "default"