I am currently working on a new buttons class that replaces the SIWL's buttons and allows customization of color. Currently, it does not handle events and likely will not because it would require you to either add extra lines of code in various places or use a different extension of BasicFrame or canvas. It does however draw buttons (rather primitive looking now) to the screen in 5 preset themes or a customizable theme. Download the Puzzle Pack demo, this shows off a custom theme of the button class. Go to the nine spot from the main menu and click options, then "change theme" to scroll through the default possibilities.
I will likely make this open source and encourage other users to help improve the interface. If there is interest, i will control making the "official" builds etc.
The goals for this project:
- Keep it lightweight (use of images etc should be limited or none)
- Keep it simple (let the most novice user be able to figure it out); this will be accomplished by keeping variable names simple and providing a well commented example
- Keep it customizable
Items included:
- labels for non-interactive text
- buttons have two states on/off can be used for toggle or pressed unpressed confirmation
- Image includes a background framed around an image
- Slider for setting values in a finite range
- labels and buttons allow for multiline text
- centering of text is performed automatically
Future:
- Text boxes that allow scrolling of large amounts of text
- ?