mirror of
https://github.com/Insality/druid
synced 2025-06-27 10:27:48 +02:00
Whitespace fixes
This commit is contained in:
parent
87e6f6ef1f
commit
c38354e532
@ -37,7 +37,7 @@ end
|
|||||||
--- Create UI instance for ui elements
|
--- Create UI instance for ui elements
|
||||||
-- @return instance with all ui components
|
-- @return instance with all ui components
|
||||||
function M.new(self)
|
function M.new(self)
|
||||||
if register_basic_components then
|
if register_basic_components then
|
||||||
register_basic_components()
|
register_basic_components()
|
||||||
register_basic_components = false
|
register_basic_components = false
|
||||||
end
|
end
|
||||||
|
@ -29,16 +29,16 @@ function init(self)
|
|||||||
self.druid:new_button("button_1", function()
|
self.druid:new_button("button_1", function()
|
||||||
print("On button 1")
|
print("On button 1")
|
||||||
end)
|
end)
|
||||||
|
|
||||||
--alternative way of component creation
|
--alternative way of component creation
|
||||||
self.druid:new(druid.comps.button, "button_2", function()
|
self.druid:new(druid.comps.button, "button_2", function()
|
||||||
print("On button 2")
|
print("On button 2")
|
||||||
end)
|
end)
|
||||||
|
|
||||||
self.druid:new_button("button_3", function()
|
self.druid:new_button("button_3", function()
|
||||||
print("On button 3")
|
print("On button 3")
|
||||||
end)
|
end)
|
||||||
|
|
||||||
self.druid:new_android_back(function(self, params)
|
self.druid:new_android_back(function(self, params)
|
||||||
print("On android back", params)
|
print("On android back", params)
|
||||||
end, 2)
|
end, 2)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user