Skip to content

Button Wheel

Gregory "Mad Pink" Miller edited this page Nov 25, 2019 · 3 revisions

The button wheel is a group of 8 buttons in a circle.

How some shared properties work:

  • workingAreaOffsetH - decreases the height of the working area for decreasing the area of the circle
  • workingAreaOffsetW - decreases the width of the working area for decreasing the area of the circle
  • controlItemSpacing - decreases the distance of the buttons from the edge of the wheel
  • controlObjectSize - determines the size of the buttons
  • controlValueWidth - when buttonBarStyle is "icon," adjusts the size of the icon within the button
  • mainSquareColor - the paint of the circle

buttonBarType (property that determines the style/type)

Default = "Action"

  • Single - this is similar to a group of radio buttons. When a button is pressed a value of true is put in "selected" and all other buttons will be changed to false.
  • Multiple - this is similar to a group of checkboxes. When a button is pressed, the value of "selected" is toggled between true and false.
  • Action (default) - when a button is pressed, it will post "actionSelected" with the corresponding key number, the selected button key is also stored in the property buttonActionButton

buttonBarStyle (property that determines the general appearance of each button)

Default = "Icon Above Text"

  • Text (default) - displays only text in the button
  • Icon - displays only an icon in the button
  • Icon Above Text - the other options left over will display an icon with the text under (all other options in buttonBarStyle will act this way as well)

showConfirmButtons (still in works)

  • Confirm Buttons Apply to single and action types, and they essentially become the same thing, the selected button appears in the center and pressing posts buttonSelected
  • showConfirmButtons - displays another circle in the center of the wheel where the selected icon will be displayed
  • showTitle - switches center circle to a static confirmation instead of the same icon and text used in the selected button
  • controlIconC - icon to be displayed if a static confirm button is selected
  • button1Text - text to be displayed if a static confirm button is selected
  • confirmButtonTextColor - icon color for confirm button
  • confirmButtonBackColor - background of confirm button
  • titleTextColor - text color for confirm button
  • titleTextFont - font for confirm button
  • titleTextSize - font size for confirm button

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
  • "show" - boolean when false does not shbow the button (but leaves an empty space where it would have been); default = true
  • "selectedtextcolor" - color of the button text when selected is true; default = controlValueColor
  • "selectedbuttoncolor" - color of the button background when selected is true; default = controlHiliteColor
  • "unselectedtextcolor" - color of the button text when selected is false; default = controlObjectColor
  • "unselectedbuttoncolor" - color of the button background when selected is false; default = controlTextColor
  • "selectediconcolor" - color of the icon when selected is true (if displayed); default = controlHiliteColor
  • "unselectediconcolor" - color of the button icon when selected is false (if displayed); default = controlObjectColor
  • "selected" - boolean that determines of the button has been selected; default = false
  • "unselectedicon" - the icon that will be displayed if applicable, and selected is false; default = controlIconA
  • "selectedicon" - the icon that will be displayed if applicable, and selected is true; default = controlIconB
  • (not added yet) "textsize" - font size for button text; default = textSize
  • (not added yet) "textfont" - font for button text; default = textFont
  • "value" - an optional value which can be used in LCS handlers; default = button number

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

Clone this wiki locally