mirror of
https://github.com/Insality/druid.git
synced 2025-06-27 10:27:47 +02:00
Update examples
This commit is contained in:
parent
29f4d6f47a
commit
f8458f8554
@ -480,7 +480,7 @@ nodes {
|
||||
w: 1.0
|
||||
}
|
||||
size {
|
||||
x: 600.0
|
||||
x: 460.0
|
||||
y: 60.0
|
||||
z: 0.0
|
||||
w: 1.0
|
||||
|
@ -32,7 +32,9 @@ local function init_top_panel(self)
|
||||
self.druid:new_back_handler(back_to_lobby)
|
||||
gui.set_enabled(self.button_menu.node, false)
|
||||
|
||||
self.button_api = self.druid:new_button("button_api/button", sys.open_url, "https://insality.github.io/druid/")
|
||||
self.button_api = self.druid:new_button("button_api/button", function()
|
||||
sys.open_url("https://insality.github.io/druid/")
|
||||
end)
|
||||
|
||||
self.text_header = self.druid:new_text("text_header", "Druid")
|
||||
end
|
||||
@ -60,8 +62,8 @@ local function get_button(self, text, scene_name)
|
||||
gui.set_enabled(root, true)
|
||||
self.druid:new_button(root, function()
|
||||
show_scene(self, scene_name, text)
|
||||
end)
|
||||
:set_click_zone(self.lobby_scroll.view_node)
|
||||
end):set_click_zone(self.lobby_scroll.view_node)
|
||||
|
||||
gui.set_text(nodes["text_button_lobby"], text)
|
||||
|
||||
return root
|
||||
|
Loading…
x
Reference in New Issue
Block a user