mirror of
https://github.com/Insality/druid
synced 2025-09-27 18:12:21 +02:00
Update layout component, add layout fit example
This commit is contained in:
@@ -70,7 +70,7 @@ nodes {
|
||||
}
|
||||
nodes {
|
||||
position {
|
||||
x: -100.0
|
||||
x: 0.0
|
||||
y: 250.0
|
||||
z: 0.0
|
||||
w: 1.0
|
||||
@@ -190,7 +190,7 @@ nodes {
|
||||
}
|
||||
nodes {
|
||||
position {
|
||||
x: -100.0
|
||||
x: 0.0
|
||||
y: 100.0
|
||||
z: 0.0
|
||||
w: 1.0
|
||||
@@ -310,7 +310,7 @@ nodes {
|
||||
}
|
||||
nodes {
|
||||
position {
|
||||
x: -100.0
|
||||
x: 0.0
|
||||
y: -50.0
|
||||
z: 0.0
|
||||
w: 1.0
|
||||
@@ -430,7 +430,7 @@ nodes {
|
||||
}
|
||||
nodes {
|
||||
position {
|
||||
x: -100.0
|
||||
x: 0.0
|
||||
y: -200.0
|
||||
z: 0.0
|
||||
w: 1.0
|
||||
@@ -637,7 +637,7 @@ nodes {
|
||||
}
|
||||
type: TYPE_TEXT
|
||||
blend_mode: BLEND_MODE_ALPHA
|
||||
text: "Layout Stretch by Y Anchor W"
|
||||
text: "Layout Stretch by X Anchor W"
|
||||
font: "game"
|
||||
id: "text_layout_stretch3"
|
||||
xanchor: XANCHOR_NONE
|
||||
|
@@ -9,7 +9,7 @@ function init(self)
|
||||
self.druid:new_layout("node_layout_stretch", const_druid.LAYOUT_MODE.STRETCH)
|
||||
self.druid:new_layout("node_layout_stretch_x", const_druid.LAYOUT_MODE.STRETCH_X)
|
||||
self.druid:new_layout("node_layout_stretch_y", const_druid.LAYOUT_MODE.STRETCH_Y)
|
||||
self.druid:new_layout("node_layout_stretch_y_anchor_w", const_druid.LAYOUT_MODE.STRETCH_Y)
|
||||
self.druid:new_layout("node_layout_stretch_y_anchor_w", const_druid.LAYOUT_MODE.STRETCH_X)
|
||||
end
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user