mirror of
https://github.com/Insality/druid
synced 2025-06-27 10:27:48 +02:00
Solve #204 fix code url from direct example url open
This commit is contained in:
parent
13003e4721
commit
65f5d2db01
@ -32,6 +32,7 @@ end
|
||||
local function show_scene(self, scene_name, text_header)
|
||||
print("Show scene:", scene_name)
|
||||
|
||||
self.current_script_url = self.scene_urls[scene_name]
|
||||
monarch.show(scene_name)
|
||||
gui.set_enabled(gui.get_node("C_Anchor"), false)
|
||||
gui.set_enabled(self.button_menu.node, true)
|
||||
@ -88,9 +89,9 @@ local function get_button(self, text, scene_name, script_url)
|
||||
gui.set_enabled(root, true)
|
||||
|
||||
self.scene_names[scene_name] = text
|
||||
self.scene_urls[scene_name] = script_url
|
||||
|
||||
self.druid:new_button(root, function()
|
||||
self.current_script_url = script_url
|
||||
show_scene(self, scene_name, text)
|
||||
end):set_click_zone(self.lobby_scroll.view_node)
|
||||
|
||||
@ -115,6 +116,7 @@ end
|
||||
local function init_lobby(self)
|
||||
gui.set_enabled(gui.get_node("prefabs"), false)
|
||||
self.scene_names = {}
|
||||
self.scene_urls = {}
|
||||
|
||||
self.lobby_scroll = self.druid:new_scroll("lobby_view", "lobby_content")
|
||||
self.lobby_grid = self.druid:new_dynamic_grid("lobby_content")
|
||||
|
Loading…
x
Reference in New Issue
Block a user