Skip to content

Working with dropdowns

Jeppe Zapp edited this page May 13, 2014 · 5 revisions
  • If you haven't set up an OGRoot and OGPage yet, do it via the OpenGUI menu.
  • With the same menu under "Widgets", click "DropDown".
  • In the inspector for the OGDropDown object, locate the "submenu" array.
  • The "tickable", and "isTicked" variables determine whether the submenu item should use a defined toggle icon to indicate whether an option is "on" or "off".
  • Every submenu item has a "nestedMenu" array to allow for one more level of menus. These menu items have a "tickOverrides" flag, which determines whether or not to untick every other tickable items when it is ticked.
  • Menu items also have a "message" variable intended for sending to the "target" variable of the OGDropDown object.
  • Setting this up via scripting would be quite tedious, so I'd recommend sticking with the inspector for this one.

Clone this wiki locally