MyGUIExtended
[Source Code: MyGUIExtended MyGUIBox ] [Built with Processing]
This sketch demonstrates how you can extend MyGUI with your own custom objects; in this case a MyGUIBox, which inherits all the basic properties of MyGUIObject and uses colours from MyGUIStyle to draw a box. It supports colouring for normal and disabled states and can be grouped, rotated and scaled like any other MyGUIObject.
There are many more methods available including automatic checking for hit states, but these have been left out of this very primitive example. The key to a successful MyGUI object is in the drawStates method - ensuring that the object has a representation for every user interaction.
Note, this example only compatable with MyGUI version >= 0010