This commit is contained in:
Insality
2025-03-29 14:03:03 +02:00
parent b053b5044b
commit 3f22e9c542
27 changed files with 501 additions and 50 deletions

View File

@@ -0,0 +1,33 @@
textures {
name: "tiling_texture"
texture: "/example/examples/widgets/tiling_node/tiling_texture.atlas"
}
nodes {
size {
x: 200.0
y: 100.0
}
type: TYPE_BOX
id: "root"
inherit_alpha: true
size_mode: SIZE_MODE_AUTO
visible: false
}
nodes {
size {
x: 500.0
y: 500.0
}
type: TYPE_BOX
texture: "tiling_texture/pattern_0004"
id: "tiling_node"
parent: "root"
inherit_alpha: true
material: "gui_tiling_node"
}
material: "/builtins/materials/gui.material"
adjust_reference: ADJUST_REFERENCE_PARENT
materials {
name: "gui_tiling_node"
material: "/druid/materials/gui_tiling_node/gui_tiling_node.material"
}

View File

@@ -0,0 +1,12 @@
local tiling_node = require("druid.widget.tiling_node.tiling_node")
---@class examples.example_tiling_node: druid.widget
local M = {}
function M:init()
self.tiling_node = self.druid:new_widget(tiling_node, nil, nil, self:get_node("tiling_node"))
end
return M

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

@@ -0,0 +1,3 @@
images {
image: "/example/examples/widgets/tiling_node/pattern_0004.png"
}