Added more verbose to gui loading

This commit is contained in:
Cooldude2606
2018-05-20 18:41:27 +01:00
parent a2f64f2aef
commit 8571a510f7
6 changed files with 15 additions and 8 deletions

View File

@@ -17,6 +17,7 @@ local toolbar = {}
-- @tparam function callback the function which is called on_click
-- @treturn table the button object that was made
function toolbar.add(name,caption,tooltip,callback)
verbose('Created Toolbar Button: '..name)
local button = Gui.inputs.add{type='button',name=name,caption=caption,tooltip=tooltip}
button:on_event(Gui.inputs.events.click,callback)
Gui._add_data('toolbar',name,button)