mirror of
https://github.com/Insality/druid
synced 2025-09-27 10:02:19 +02:00
Update
This commit is contained in:
@@ -16,7 +16,7 @@ function M.get_examples()
|
||||
information_text_id = "ui_example_widget_properties_panel_description",
|
||||
template = "properties_panel",
|
||||
root = "properties_panel/root",
|
||||
code_url = "example/examples/widgets/properties_panel/properties_panel.lua",
|
||||
code_url = "example/examples/widgets/examples_list.lua",
|
||||
widget_class = require("druid.widget.properties_panel.properties_panel"),
|
||||
on_create = function(instance, output_list)
|
||||
---@cast instance druid.widget.properties_panel
|
||||
@@ -96,7 +96,7 @@ function M.get_examples()
|
||||
information_text_id = "ui_example_widget_property_input_description",
|
||||
template = "property_input",
|
||||
root = "property_input/root",
|
||||
code_url = "druid/widget/properties_panel/properties/property_input.lua",
|
||||
code_url = "example/examples/widgets/examples_list.lua",
|
||||
widget_class = require("druid.widget.properties_panel.properties.property_input"),
|
||||
},
|
||||
{
|
||||
|
@@ -7,12 +7,8 @@ embedded_instances {
|
||||
" component: \"/example/examples/widgets/go_widgets/go_widget.gui\"\n"
|
||||
"}\n"
|
||||
"components {\n"
|
||||
" id: \"go_bindings\"\n"
|
||||
" component: \"/example/examples/widgets/go_widgets/go_widget.script\"\n"
|
||||
"}\n"
|
||||
"components {\n"
|
||||
" id: \"druid\"\n"
|
||||
" component: \"/druid/druid.script\"\n"
|
||||
" id: \"go_with_widget\"\n"
|
||||
" component: \"/example/examples/widgets/go_widgets/go_with_widget.script\"\n"
|
||||
"}\n"
|
||||
"embedded_components {\n"
|
||||
" id: \"sprite\"\n"
|
@@ -1,6 +1,6 @@
|
||||
local panthera = require("panthera.panthera")
|
||||
|
||||
local animation = require("example.examples.widgets.go_widgets.go_bindings_panthera")
|
||||
local animation = require("example.examples.widgets.go_widgets.go_with_widget_panthera")
|
||||
|
||||
local druid = require("druid.druid")
|
||||
local widget = require("example.examples.widgets.go_widgets.go_widget")
|
||||
@@ -8,6 +8,7 @@ local widget = require("example.examples.widgets.go_widgets.go_widget")
|
||||
function init(self)
|
||||
local gui_url = msg.url(nil, nil, "go_widget")
|
||||
self.go_widget = druid.get_widget(widget, gui_url)
|
||||
|
||||
self.go_widget:play_animation()
|
||||
self.go_widget:set_position(go.get_position())
|
||||
|
@@ -89,7 +89,7 @@ return {
|
||||
fps = 60,
|
||||
gizmo_steps = {
|
||||
},
|
||||
gui_path = "/example/examples/widgets/go_widgets/go_widget.collection",
|
||||
gui_path = "/example/examples/widgets/go_widgets/go_with_widget.collection",
|
||||
layers = {
|
||||
},
|
||||
settings = {
|
||||
@@ -104,4 +104,4 @@ return {
|
||||
format = "json",
|
||||
type = "animation_editor",
|
||||
version = 1,
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user