Update docs, add Editor script: Create Druid GUI Script, add simple using widgets example

This commit is contained in:
Insality
2025-04-25 20:37:00 +03:00
parent 749666a4a5
commit 6795934a1f
19 changed files with 466 additions and 77 deletions

View File

@@ -40,7 +40,7 @@ nodes {
y: 100.0
}
type: TYPE_TEXT
text: "Can be used as relative anchors"
text: "Can be resized with different rules"
font: "text_bold"
id: "text"
parent: "root"
@@ -204,6 +204,7 @@ nodes {
z: 16.0
w: 16.0
}
alpha: 0.25
}
nodes {
position {
@@ -230,6 +231,7 @@ nodes {
z: 16.0
w: 16.0
}
alpha: 0.25
}
nodes {
position {
@@ -257,6 +259,7 @@ nodes {
z: 16.0
w: 16.0
}
alpha: 0.25
}
nodes {
size {
@@ -279,6 +282,7 @@ nodes {
z: 16.0
w: 16.0
}
alpha: 0.25
}
nodes {
position {
@@ -305,6 +309,7 @@ nodes {
z: 16.0
w: 16.0
}
alpha: 0.25
}
nodes {
position {
@@ -331,6 +336,7 @@ nodes {
z: 16.0
w: 16.0
}
alpha: 0.25
}
nodes {
position {
@@ -358,6 +364,7 @@ nodes {
z: 16.0
w: 16.0
}
alpha: 0.25
}
nodes {
position {
@@ -384,6 +391,7 @@ nodes {
z: 16.0
w: 16.0
}
alpha: 0.25
}
nodes {
position {
@@ -411,6 +419,7 @@ nodes {
z: 16.0
w: 16.0
}
alpha: 0.25
}
material: "/builtins/materials/gui.material"
adjust_reference: ADJUST_REFERENCE_PARENT

View File

@@ -18,7 +18,7 @@ function M.get_examples()
root = "container_resize/root",
code_url = "example/examples/container/container_resize/container_resize.lua",
widget_class = require("example.examples.container.container_resize.container_resize"),
},
}
}
end