Add druid events in components

This commit is contained in:
Insality
2020-02-24 09:34:16 +03:00
parent a81d49de9d
commit ac2bbc29d3
15 changed files with 1019 additions and 32 deletions

View File

@@ -0,0 +1,23 @@
local sprite_change_style = {}
local M = {}
local function setup_buttons(self)
self.druid:new_button("button_usual/button")
local custom_style = self.druid:new_button("button_custom_style/button")
custom_style:set_style(sprite_change_style)
-- HOVER_IMAGE and DEFAULT_IMAGE - from our custom style params
custom_style.HOVER_IMAGE = "button_yellow"
custom_style.DEFAULT_IMAGE = "button_blue"
end
function M.setup_page(self)
setup_buttons(self)
end
return M

View File

@@ -0,0 +1,8 @@
local M = {}
function M.setup_page(self)
end
return M