mirror of
https://github.com/Insality/druid.git
synced 2025-09-27 18:12:19 +02:00
add simple example resources
This commit is contained in:
@@ -1,8 +1,17 @@
|
||||
local druid = require "druid.druid"
|
||||
local druid = require("druid.druid")
|
||||
local druid_settings = require("druid.settings")
|
||||
|
||||
local function setup_druid(self)
|
||||
druid_settings.play_sound = function(name)
|
||||
sound.play("sounds#" .. name)
|
||||
end
|
||||
end
|
||||
|
||||
function init(self)
|
||||
setup_druid(self)
|
||||
self.druid = druid.new(self)
|
||||
|
||||
|
||||
self.druid:new_button("button_1", function()
|
||||
print("On button 1")
|
||||
end)
|
||||
|
Reference in New Issue
Block a user