# Module `ExpGamingCore.Gui.Toolbar`

Adds a toolbar to the top left of the screen

### Info:

- License: https://github.com/explosivegaming/scenario/blob/master/LICENSE
- Author: Cooldude2606

## Functions

_comment () | This is a submodule of ExpGamingCore.Gui but for ldoc reasons it is under its own module
add (name, caption, tooltip, callback) | Add a button to the toolbar, ranks need to be allowed to use these buttons if ranks is preset
draw (player) | Draws the toolbar for a certain player

## Functions

_comment ()
  This is a submodule of ExpGamingCore.Gui but for ldoc reasons it is under its own module
add (name, caption, tooltip, callback)
  Add a button to the toolbar, ranks need to be allowed to use these buttons if ranks is preset

  ### Parameters:

  - name string the name of the button
  - caption string can be a sprite path or text to show
  - tooltip string the help to show for the button
  - callback function the function which is called on_click

  ### Returns:

  table the button object that was made

  ### Usage:

      toolbar.add('foo','Foo','Test',function() game.print('test') end)

draw (player)
  Draws the toolbar for a certain player

  ### Parameters:

  - player the player to draw the tool bar of

  ### Usage:

      toolbar.draw(1)

generated by LDoc 1.4.6 Last updated 2018-06-07 12:58:23