2020-02-24 09:34:16 +03:00

24 lines
472 B
Lua

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