Toolbars
Toolbars allow quick creation of buttons with sprites in them, and are created using :
DDgui_toolbar(id_buttons$[], id_sprites[])
The id$_buttons$[] array contains the list of ID's that will be used to detect button presses, while id_sprites[] array contain the sprite indexes of the sprites to be used.
These sprites should be loaded before hand – if not, all you will see are small dots :
With sprites loaded, the list would look like :
Note that these buttons are slightly different than sprites in normal buttons. The button with the mouse over it always has a blue border around it.
Which button is pressed can be detected using DDgui_get.