mirror of
https://github.com/Insality/druid
synced 2025-09-27 18:12:21 +02:00
Update
This commit is contained in:
33
example/examples/widgets/tiling_node/example_tiling_node.gui
Normal file
33
example/examples/widgets/tiling_node/example_tiling_node.gui
Normal 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"
|
||||
}
|
12
example/examples/widgets/tiling_node/example_tiling_node.lua
Normal file
12
example/examples/widgets/tiling_node/example_tiling_node.lua
Normal 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
|
BIN
example/examples/widgets/tiling_node/pattern_0004.png
Normal file
BIN
example/examples/widgets/tiling_node/pattern_0004.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.2 KiB |
@@ -0,0 +1,3 @@
|
||||
images {
|
||||
image: "/example/examples/widgets/tiling_node/pattern_0004.png"
|
||||
}
|
Reference in New Issue
Block a user