mirror of
https://github.com/Insality/druid
synced 2025-09-27 10:02:19 +02:00
Solve #159 Add auto layouting for generate custom Druid component
This commit is contained in:
@@ -66,6 +66,7 @@ nodes {
|
||||
alpha: 1.0
|
||||
template_node_child: false
|
||||
size_mode: SIZE_MODE_MANUAL
|
||||
custom_type: 0
|
||||
}
|
||||
nodes {
|
||||
position {
|
||||
@@ -106,6 +107,7 @@ nodes {
|
||||
alpha: 1.0
|
||||
template: "/example/examples/system/inner_templates/inner_panel.gui"
|
||||
template_node_child: false
|
||||
custom_type: 0
|
||||
}
|
||||
nodes {
|
||||
position {
|
||||
@@ -161,6 +163,7 @@ nodes {
|
||||
alpha: 1.0
|
||||
template_node_child: true
|
||||
size_mode: SIZE_MODE_AUTO
|
||||
custom_type: 0
|
||||
}
|
||||
nodes {
|
||||
position {
|
||||
@@ -216,6 +219,7 @@ nodes {
|
||||
alpha: 1.0
|
||||
template_node_child: true
|
||||
size_mode: SIZE_MODE_MANUAL
|
||||
custom_type: 0
|
||||
}
|
||||
nodes {
|
||||
position {
|
||||
@@ -256,6 +260,7 @@ nodes {
|
||||
alpha: 1.0
|
||||
template: "/example/examples/system/inner_templates/inner_button.gui"
|
||||
template_node_child: true
|
||||
custom_type: 0
|
||||
}
|
||||
nodes {
|
||||
position {
|
||||
@@ -311,6 +316,7 @@ nodes {
|
||||
alpha: 1.0
|
||||
template_node_child: true
|
||||
size_mode: SIZE_MODE_AUTO
|
||||
custom_type: 0
|
||||
}
|
||||
nodes {
|
||||
position {
|
||||
@@ -366,6 +372,7 @@ nodes {
|
||||
alpha: 1.0
|
||||
template_node_child: true
|
||||
size_mode: SIZE_MODE_MANUAL
|
||||
custom_type: 0
|
||||
}
|
||||
nodes {
|
||||
position {
|
||||
@@ -429,6 +436,7 @@ nodes {
|
||||
template_node_child: true
|
||||
text_leading: 1.0
|
||||
text_tracking: 0.0
|
||||
custom_type: 0
|
||||
}
|
||||
nodes {
|
||||
position {
|
||||
@@ -469,6 +477,7 @@ nodes {
|
||||
alpha: 1.0
|
||||
template: "/example/examples/system/inner_templates/inner_button.gui"
|
||||
template_node_child: true
|
||||
custom_type: 0
|
||||
}
|
||||
nodes {
|
||||
position {
|
||||
@@ -524,6 +533,7 @@ nodes {
|
||||
alpha: 1.0
|
||||
template_node_child: true
|
||||
size_mode: SIZE_MODE_AUTO
|
||||
custom_type: 0
|
||||
}
|
||||
nodes {
|
||||
position {
|
||||
@@ -579,6 +589,7 @@ nodes {
|
||||
alpha: 1.0
|
||||
template_node_child: true
|
||||
size_mode: SIZE_MODE_MANUAL
|
||||
custom_type: 0
|
||||
}
|
||||
nodes {
|
||||
position {
|
||||
@@ -642,6 +653,7 @@ nodes {
|
||||
template_node_child: true
|
||||
text_leading: 1.0
|
||||
text_tracking: 0.0
|
||||
custom_type: 0
|
||||
}
|
||||
nodes {
|
||||
position {
|
||||
@@ -682,6 +694,7 @@ nodes {
|
||||
alpha: 1.0
|
||||
template: "/example/examples/system/inner_templates/inner_button.gui"
|
||||
template_node_child: true
|
||||
custom_type: 0
|
||||
}
|
||||
nodes {
|
||||
position {
|
||||
@@ -737,6 +750,7 @@ nodes {
|
||||
alpha: 1.0
|
||||
template_node_child: true
|
||||
size_mode: SIZE_MODE_AUTO
|
||||
custom_type: 0
|
||||
}
|
||||
nodes {
|
||||
position {
|
||||
@@ -792,6 +806,7 @@ nodes {
|
||||
alpha: 1.0
|
||||
template_node_child: true
|
||||
size_mode: SIZE_MODE_MANUAL
|
||||
custom_type: 0
|
||||
}
|
||||
nodes {
|
||||
position {
|
||||
@@ -855,6 +870,7 @@ nodes {
|
||||
template_node_child: true
|
||||
text_leading: 1.0
|
||||
text_tracking: 0.0
|
||||
custom_type: 0
|
||||
}
|
||||
nodes {
|
||||
position {
|
||||
@@ -918,6 +934,7 @@ nodes {
|
||||
template_node_child: false
|
||||
text_leading: 1.0
|
||||
text_tracking: 0.0
|
||||
custom_type: 0
|
||||
}
|
||||
nodes {
|
||||
position {
|
||||
@@ -981,6 +998,7 @@ nodes {
|
||||
template_node_child: false
|
||||
text_leading: 1.0
|
||||
text_tracking: 0.0
|
||||
custom_type: 0
|
||||
}
|
||||
layers {
|
||||
name: "image"
|
||||
|
@@ -2,7 +2,6 @@ local druid = require("druid.druid")
|
||||
|
||||
local InnerPanel = require("example.examples.system.inner_templates.inner_panel")
|
||||
|
||||
|
||||
function init(self)
|
||||
self.druid = druid.new(self)
|
||||
local root = gui.get_node("inner_panel/root")
|
||||
|
Reference in New Issue
Block a user