mirror of
https://github.com/Insality/druid
synced 2025-09-27 18:12:21 +02:00
Remove current Druid example
This commit is contained in:
@@ -1,37 +0,0 @@
|
||||
name: "layout_fit"
|
||||
scale_along_z: 0
|
||||
embedded_instances {
|
||||
id: "go"
|
||||
data: "components {\n"
|
||||
" id: \"layout_fit\"\n"
|
||||
" component: \"/example/examples/layout/layout_fit/layout_fit.gui\"\n"
|
||||
" position {\n"
|
||||
" x: 0.0\n"
|
||||
" y: 0.0\n"
|
||||
" z: 0.0\n"
|
||||
" }\n"
|
||||
" rotation {\n"
|
||||
" x: 0.0\n"
|
||||
" y: 0.0\n"
|
||||
" z: 0.0\n"
|
||||
" w: 1.0\n"
|
||||
" }\n"
|
||||
"}\n"
|
||||
""
|
||||
position {
|
||||
x: 0.0
|
||||
y: 0.0
|
||||
z: 0.0
|
||||
}
|
||||
rotation {
|
||||
x: 0.0
|
||||
y: 0.0
|
||||
z: 0.0
|
||||
w: 1.0
|
||||
}
|
||||
scale3 {
|
||||
x: 1.0
|
||||
y: 1.0
|
||||
z: 1.0
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
@@ -1,44 +0,0 @@
|
||||
local druid = require("druid.druid")
|
||||
local const_druid = require("druid.const")
|
||||
local layout = require("druid.extended.layout")
|
||||
|
||||
function init(self)
|
||||
druid.register("layout", layout)
|
||||
self.druid = druid.new(self)
|
||||
|
||||
self.druid:new_layout("node_zoom_test", const_druid.LAYOUT_MODE.STRETCH)
|
||||
:fit_into_window()
|
||||
|
||||
self.druid:new_layout("image_1", const_druid.LAYOUT_MODE.STRETCH)
|
||||
:fit_into_node(gui.get_node("back_1"))
|
||||
self.druid:new_layout("image_2", const_druid.LAYOUT_MODE.ZOOM_MAX)
|
||||
:fit_into_node(gui.get_node("back_2"))
|
||||
self.druid:new_layout("image_3", const_druid.LAYOUT_MODE.ZOOM_MIN)
|
||||
:fit_into_node(gui.get_node("back_3"))
|
||||
self.druid:new_layout("image_4", const_druid.LAYOUT_MODE.STRETCH_X)
|
||||
:fit_into_node(gui.get_node("back_4"))
|
||||
self.druid:new_layout("image_5", const_druid.LAYOUT_MODE.STRETCH_Y)
|
||||
:fit_into_node(gui.get_node("back_5"))
|
||||
self.druid:new_layout("image_6", const_druid.LAYOUT_MODE.FIT)
|
||||
:fit_into_node(gui.get_node("back_6"))
|
||||
end
|
||||
|
||||
|
||||
function final(self)
|
||||
self.druid:final()
|
||||
end
|
||||
|
||||
|
||||
function update(self, dt)
|
||||
self.druid:update(dt)
|
||||
end
|
||||
|
||||
|
||||
function on_message(self, message_id, message, sender)
|
||||
self.druid:on_message(message_id, message, sender)
|
||||
end
|
||||
|
||||
|
||||
function on_input(self, action_id, action)
|
||||
return self.druid:on_input(action_id, action)
|
||||
end
|
Reference in New Issue
Block a user