three buttons in example.gui

This commit is contained in:
Insality
2019-03-27 09:13:12 +03:00
parent 5f2541c757
commit c241f26ae1
2 changed files with 247 additions and 7 deletions

View File

@@ -3,8 +3,14 @@ local druid = require "druid.druid"
function init(self)
self.druid = druid.new(self)
self.button = self.druid:new_button("button", function()
print("New click")
self.druid:new_button("button_1", function()
print("On button 1")
end)
self.druid:new_button("button_2", function()
print("On button 2")
end)
self.druid:new_button("button_3", function()
print("On button 3")
end)
end