This commit is contained in:
Insality
2024-11-20 23:36:04 +02:00
parent f2fa5320d2
commit 7ea8691fc5
104 changed files with 451 additions and 12743 deletions

View File

@@ -216,7 +216,7 @@ Static grid have constant node size, so it possible to calculate node positions
Static grid can shift elements on add/remove functions. Static grid can shift elements on add/remove functions.
### Setup ### Setup
Create component with druid: `grid = druid:new_static_grid(parent_node, prefab_node, max_in_row_elements)` Create component with druid: `grid = druid:new_grid(parent_node, prefab_node, max_in_row_elements)`
### Notes ### Notes
- On _add node_ grid will set nodeup parent to _parent_node_ - On _add node_ grid will set nodeup parent to _parent_node_

View File

@@ -34,7 +34,7 @@
-- <a href="https://insality.github.io/druid/druid/index.html?example=general_grid" target="_blank"><b>Example Link</b></a> -- <a href="https://insality.github.io/druid/druid/index.html?example=general_grid" target="_blank"><b>Example Link</b></a>
-- @module StaticGrid -- @module StaticGrid
-- @within BaseComponent -- @within BaseComponent
-- @alias druid.static_grid -- @alias druid.grid
--- On item add callback(self, node, index) --- On item add callback(self, node, index)
-- @tfield druid.event on_add_item druid.event -- @tfield druid.event on_add_item druid.event
@@ -377,7 +377,7 @@ end
--- Change set position function for grid nodes. It will call on --- Change set position function for grid nodes. It will call on
-- update poses on grid elements. Default: gui.set_position -- update poses on grid elements. Default: gui.set_position
---@param callback function Function on node set position ---@param callback function Function on node set position
---@return druid.static_grid Current grid instance ---@return druid.grid Current grid instance
function M:set_position_function(callback) function M:set_position_function(callback)
self._set_position_function = callback or gui.set_position self._set_position_function = callback or gui.set_position
@@ -387,7 +387,7 @@ end
--- Clear grid nodes array. GUI nodes will be not deleted! --- Clear grid nodes array. GUI nodes will be not deleted!
-- If you want to delete GUI nodes, use static_grid.nodes array before grid:clear -- If you want to delete GUI nodes, use static_grid.nodes array before grid:clear
---@return druid.static_grid Current grid instance ---@return druid.grid Current grid instance
function M:clear() function M:clear()
self.border.x = 0 self.border.x = 0
self.border.y = 0 self.border.y = 0
@@ -421,7 +421,7 @@ end
--- Set new in_row elements for grid --- Set new in_row elements for grid
---@param in_row number The new in_row value ---@param in_row number The new in_row value
---@return druid.static_grid Current grid instance ---@return druid.grid Current grid instance
function M:set_in_row(in_row) function M:set_in_row(in_row)
self.in_row = in_row self.in_row = in_row
self._grid_horizonal_offset = self.node_size.x * (self.in_row - 1) * self.anchor.x self._grid_horizonal_offset = self.node_size.x * (self.in_row - 1) * self.anchor.x
@@ -440,7 +440,7 @@ end
--- Set new node size for grid --- Set new node size for grid
-- @tparam[opt] number width The new node width -- @tparam[opt] number width The new node width
-- @tparam[opt] number height The new node height -- @tparam[opt] number height The new node height
---@return druid.static_grid Current grid instance ---@return druid.grid Current grid instance
function M:set_item_size(width, height) function M:set_item_size(width, height)
if width then if width then
self.node_size.x = width self.node_size.x = width
@@ -463,7 +463,7 @@ end
--- Sort grid nodes by custom comparator function --- Sort grid nodes by custom comparator function
---@param comparator function The comparator function. (a, b) -> boolean ---@param comparator function The comparator function. (a, b) -> boolean
---@return druid.static_grid Current grid instance ---@return druid.grid Current grid instance
function M:sort_nodes(comparator) function M:sort_nodes(comparator)
table.sort(self.nodes, comparator) table.sort(self.nodes, comparator)
self:_update(true) self:_update(true)

View File

@@ -1,6 +1,6 @@
fonts { fonts {
name: "text_bold" name: "druid_text_bold"
font: "/druid/fonts/text_bold.font" font: "/druid/fonts/druid_text_bold.font"
} }
textures { textures {
name: "druid" name: "druid"

View File

@@ -1,12 +1,9 @@
# @license MIT, Insality 2021
# @source https://github.com/Insality/druid
import os import os
import sys import sys
import deftree import deftree
current_filepath = os.path.abspath(os.path.dirname(__file__)) current_filepath = os.path.abspath(os.path.dirname(__file__))
TEMPLATE_PATH = current_filepath + "/component.lua_template" TEMPLATE_PATH = current_filepath + "/widget.lua_template"
component_annotations = "" component_annotations = ""
component_functions = "" component_functions = ""
@@ -44,9 +41,9 @@ def process_component(node_name, component_name):
component_define += "\n\tself.{0} = self.druid:new_lang_text(\"{1}\", \"lang_id\")".format(node_name, node_name) component_define += "\n\tself.{0} = self.druid:new_lang_text(\"{1}\", \"lang_id\")".format(node_name, node_name)
if node_name.startswith("grid") or node_name.startswith("static_grid"): if node_name.startswith("grid") or node_name.startswith("static_grid"):
component_annotations += "\n---@field {0} druid.static_grid".format(node_name) component_annotations += "\n---@field {0} druid.grid".format(node_name)
component_define += "\n--TODO: Replace prefab_name with grid element prefab" component_define += "\n--TODO: Replace prefab_name with grid element prefab"
component_define += "\n\tself.{0} = self.druid:new_static_grid(\"{1}\", \"prefab_name\", 1)".format(node_name, node_name) component_define += "\n\tself.{0} = self.druid:new_grid(\"{1}\", \"prefab_name\", 1)".format(node_name, node_name)
if node_name.startswith("scroll_view"): if node_name.startswith("scroll_view"):
field_name = node_name.replace("_view", "") field_name = node_name.replace("_view", "")

View File

@@ -50,7 +50,7 @@ function M.get_commands()
}, },
{ {
label = "Create Druid Component", label = "Create Druid Widget",
locations = { "Edit", "Assets" }, locations = { "Edit", "Assets" },
query = { selection = {type = "resource", cardinality = "one"} }, query = { selection = {type = "resource", cardinality = "one"} },
active = function(opts) active = function(opts)
@@ -62,7 +62,7 @@ function M.get_commands()
print("Run script for", editor.get(file, "path")) print("Run script for", editor.get(file, "path"))
save_file_from_dependency('/druid/editor_scripts/run_python_script_on_gui.sh', "./build/run_python_script_on_gui.sh") save_file_from_dependency('/druid/editor_scripts/run_python_script_on_gui.sh', "./build/run_python_script_on_gui.sh")
save_file_from_dependency('/druid/editor_scripts/create_druid_component.py', "./build/create_druid_component.py") save_file_from_dependency('/druid/editor_scripts/create_druid_component.py', "./build/create_druid_component.py")
save_file_from_dependency('/druid/editor_scripts/component.lua_template', "./build/component.lua_template") save_file_from_dependency('/druid/editor_scripts/widget.lua_template', "./build/widget.lua_template")
return { return {
{ {
action = "shell", action = "shell",

View File

@@ -1,9 +1,14 @@
---@class widget.TEMPLATE: druid.widget ---This is a template for a {COMPONENT_NAME} Druid widget.
---Instantiate this template with `druid.new_widget(widget_module, [template_id], [nodes])`.
---Read more about Druid Widgets here: ...
---@class widget.{COMPONENT_TYPE}: druid.widget
local M = {} local M = {}
function M:init() function M:init()
self.root = self:get_node("root") self.root = self:get_node("root")
self.button = self.druid:new_button("button"), self.on_button, self) self.button = self.druid:new_button("button", self.on_button, self)
end end

View File

@@ -1,16 +1,16 @@
local component = require("druid.component") ---@class widget.TEMPLATE: druid.widget
local M = {}
---@class component_name : druid.base_component
local M = component.create("component_name")
-- Component constructor. Template name and nodes are optional. Pass it if you use it in your component function M:init()
function M:init(template, nodes)
self.druid = self:get_druid(template, nodes)
self.root = self:get_node("root") self.root = self:get_node("root")
self.button = self.druid:new_button("button", self.on_button, self)
self.button = self.druid:new_button("button", function() end)
end end
return M function M:on_button()
print("Root node", self.root)
end
return M

View File

@@ -1,10 +1,10 @@
fonts { fonts {
name: "text_regular" name: "druid_text_regular"
font: "/druid/fonts/text_regular.font" font: "/druid/fonts/druid_text_regular.font"
} }
fonts { fonts {
name: "text_bold" name: "druid_text_bold"
font: "/druid/fonts/text_bold.font" font: "/druid/fonts/druid_text_bold.font"
} }
textures { textures {
name: "druid" name: "druid"
@@ -122,7 +122,7 @@ nodes {
} }
type: TYPE_TEXT type: TYPE_TEXT
text: "12 FPS" text: "12 FPS"
font: "text_regular" font: "druid_text_regular"
id: "text_min_fps" id: "text_min_fps"
pivot: PIVOT_W pivot: PIVOT_W
outline { outline {
@@ -159,7 +159,7 @@ nodes {
} }
type: TYPE_TEXT type: TYPE_TEXT
text: "60 FPS" text: "60 FPS"
font: "text_bold" font: "druid_text_bold"
id: "text_fps" id: "text_fps"
outline { outline {
x: 1.0 x: 1.0

View File

@@ -75,9 +75,9 @@ function M:push_fps_value()
self.mini_graph:push_line_value(1 / average_frame_time) self.mini_graph:push_line_value(1 / average_frame_time)
self.text_fps:set_to(tostring(math.ceil(1 / average_frame_time) .. " FPS")) self.text_fps:set_text(tostring(math.ceil(1 / average_frame_time) .. " FPS"))
local lowest_value = math.ceil(self.mini_graph:get_lowest_value()) local lowest_value = math.ceil(self.mini_graph:get_lowest_value())
self.text_min_fps:set_to(lowest_value .. " lowest") self.text_min_fps:set_text(lowest_value .. " lowest")
end end

View File

@@ -1,10 +1,10 @@
fonts { fonts {
name: "text_regular" name: "druid_text_regular"
font: "/druid/fonts/text_regular.font" font: "/druid/fonts/druid_text_regular.font"
} }
fonts { fonts {
name: "text_bold" name: "druid_text_bold"
font: "/druid/fonts/text_bold.font" font: "/druid/fonts/druid_text_bold.font"
} }
textures { textures {
name: "druid" name: "druid"
@@ -104,7 +104,7 @@ nodes {
} }
type: TYPE_TEXT type: TYPE_TEXT
text: "120.23 KB" text: "120.23 KB"
font: "text_regular" font: "druid_text_regular"
id: "text_max_value" id: "text_max_value"
pivot: PIVOT_W pivot: PIVOT_W
outline { outline {
@@ -142,7 +142,7 @@ nodes {
} }
type: TYPE_TEXT type: TYPE_TEXT
text: "120 KB/s" text: "120 KB/s"
font: "text_regular" font: "druid_text_regular"
id: "text_per_second" id: "text_per_second"
pivot: PIVOT_E pivot: PIVOT_E
outline { outline {
@@ -221,7 +221,7 @@ nodes {
} }
type: TYPE_TEXT type: TYPE_TEXT
text: "120 KB" text: "120 KB"
font: "text_bold" font: "druid_text_bold"
id: "text_memory" id: "text_memory"
outline { outline {
x: 1.0 x: 1.0

View File

@@ -51,14 +51,14 @@ function M:push_next_value()
self.mini_graph:set_max_value(max_value) self.mini_graph:set_max_value(max_value)
local max_memory = math.ceil(self.mini_graph:get_highest_value()) local max_memory = math.ceil(self.mini_graph:get_highest_value())
self.max_value:set_to(max_memory .. " KB") self.max_value:set_text(max_memory .. " KB")
local last_second = 0 local last_second = 0
local last_second_samples = math.ceil(1 / self.delta_time) local last_second_samples = math.ceil(1 / self.delta_time)
for index = #self.memory_samples - last_second_samples + 1, #self.memory_samples do for index = #self.memory_samples - last_second_samples + 1, #self.memory_samples do
last_second = last_second + (self.memory_samples[index] or 0) last_second = last_second + (self.memory_samples[index] or 0)
end end
self.text_per_second:set_to(math.ceil(last_second) .. " KB/s") self.text_per_second:set_text(math.ceil(last_second) .. " KB/s")
end end
@@ -66,9 +66,9 @@ function M:update_text_memory()
local memory = math.ceil(collectgarbage("count")) -- in KB local memory = math.ceil(collectgarbage("count")) -- in KB
if memory > 1024 then if memory > 1024 then
memory = memory / 1024 memory = memory / 1024
self.text_memory:set_to(string.format("%.2f", memory) .. " MB") self.text_memory:set_text(string.format("%.2f", memory) .. " MB")
else else
self.text_memory:set_to(memory .. " KB") self.text_memory:set_text(memory .. " KB")
end end
end end

View File

@@ -1,10 +1,10 @@
fonts { fonts {
name: "text_regular" name: "druid_text_regular"
font: "/druid/fonts/text_regular.font" font: "/druid/fonts/druid_text_regular.font"
} }
fonts { fonts {
name: "text_bold" name: "druid_text_bold"
font: "/druid/fonts/text_bold.font" font: "/druid/fonts/druid_text_bold.font"
} }
textures { textures {
name: "druid" name: "druid"
@@ -67,7 +67,7 @@ nodes {
} }
type: TYPE_TEXT type: TYPE_TEXT
text: "Mini Graph" text: "Mini Graph"
font: "text_regular" font: "druid_text_regular"
id: "text_header" id: "text_header"
pivot: PIVOT_NW pivot: PIVOT_NW
outline { outline {

View File

@@ -1,6 +1,6 @@
fonts { fonts {
name: "text_bold" name: "druid_text_bold"
font: "/druid/fonts/text_bold.font" font: "/druid/fonts/druid_text_bold.font"
} }
textures { textures {
name: "druid" name: "druid"

View File

@@ -1,6 +1,6 @@
fonts { fonts {
name: "text_bold" name: "druid_text_bold"
font: "/druid/fonts/text_bold.font" font: "/druid/fonts/druid_text_bold.font"
} }
textures { textures {
name: "druid" name: "druid"

View File

@@ -1,6 +1,6 @@
fonts { fonts {
name: "text_bold" name: "druid_text_bold"
font: "/druid/fonts/text_bold.font" font: "/druid/fonts/druid_text_bold.font"
} }
textures { textures {
name: "druid" name: "druid"

View File

@@ -1,6 +1,6 @@
fonts { fonts {
name: "text_bold" name: "druid_text_bold"
font: "/druid/fonts/text_bold.font" font: "/druid/fonts/druid_text_bold.font"
} }
textures { textures {
name: "druid" name: "druid"

View File

@@ -1,6 +1,6 @@
fonts { fonts {
name: "text_bold" name: "druid_text_bold"
font: "/druid/fonts/text_bold.font" font: "/druid/fonts/druid_text_bold.font"
} }
textures { textures {
name: "druid" name: "druid"
@@ -37,7 +37,7 @@ nodes {
} }
type: TYPE_TEXT type: TYPE_TEXT
text: "Slider" text: "Slider"
font: "text_bold" font: "druid_text_bold"
id: "text_name" id: "text_name"
pivot: PIVOT_W pivot: PIVOT_W
outline { outline {
@@ -201,7 +201,7 @@ nodes {
} }
type: TYPE_TEXT type: TYPE_TEXT
text: "25 %" text: "25 %"
font: "text_bold" font: "druid_text_bold"
id: "text_value" id: "text_value"
outline { outline {
x: 1.0 x: 1.0

View File

@@ -1,6 +1,6 @@
fonts { fonts {
name: "text_bold" name: "druid_text_bold"
font: "/druid/fonts/text_bold.font" font: "/druid/fonts/druid_text_bold.font"
} }
textures { textures {
name: "druid" name: "druid"

View File

@@ -1,10 +1,10 @@
fonts { fonts {
name: "text_regular" name: "druid_text_regular"
font: "/druid/fonts/text_regular.font" font: "/druid/fonts/druid_text_regular.font"
} }
fonts { fonts {
name: "text_bold" name: "druid_text_bold"
font: "/druid/fonts/text_bold.font" font: "/druid/fonts/druid_text_bold.font"
} }
textures { textures {
name: "druid" name: "druid"
@@ -67,7 +67,7 @@ nodes {
} }
type: TYPE_TEXT type: TYPE_TEXT
text: "Properties" text: "Properties"
font: "text_regular" font: "druid_text_regular"
id: "text_header" id: "text_header"
pivot: PIVOT_NW pivot: PIVOT_NW
outline { outline {

View File

@@ -1,4 +1,3 @@
script: ""
fonts { fonts {
name: "text_regular" name: "text_regular"
font: "/example/assets/fonts/text_regular.font" font: "/example/assets/fonts/text_regular.font"
@@ -8,434 +7,129 @@ textures {
texture: "/example/assets/druid_logo.atlas" texture: "/example/assets/druid_logo.atlas"
} }
textures { textures {
name: "druid" name: "druid_example"
texture: "/example/assets/druid.atlas" texture: "/example/assets/druid_example.atlas"
}
background_color {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size { size {
x: 400.0 x: 400.0
y: 170.0 y: 170.0
z: 0.0
w: 1.0
} }
color { color {
x: 0.129 x: 0.129
y: 0.141 y: 0.141
z: 0.157 z: 0.157
w: 1.0
} }
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: "druid/pixel" texture: "druid/pixel"
id: "root" id: "root"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
adjust_mode: ADJUST_MODE_FIT
layer: "druid" layer: "druid"
inherit_alpha: true inherit_alpha: true
slice9 {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
}
clipping_mode: CLIPPING_MODE_STENCIL clipping_mode: CLIPPING_MODE_STENCIL
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: false
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: true
material: ""
} }
nodes { nodes {
position { position {
x: 200.0 x: 200.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
} }
size { size {
x: 16.0 x: 16.0
y: 16.0 y: 16.0
z: 0.0
w: 1.0
}
color {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
} }
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: ""
id: "E_Anchor" id: "E_Anchor"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_E pivot: PIVOT_E
adjust_mode: ADJUST_MODE_STRETCH adjust_mode: ADJUST_MODE_STRETCH
parent: "root" parent: "root"
layer: ""
inherit_alpha: true inherit_alpha: true
slice9 {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
}
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: false
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: false visible: false
material: ""
} }
nodes { nodes {
position { position {
x: 10.0 x: 10.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size {
x: 200.0
y: 100.0
z: 0.0
w: 1.0
}
color {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
} }
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: "druid_logo/icon_druid" texture: "druid_logo/icon_druid"
id: "icon_druid_right" id: "icon_druid_right"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
adjust_mode: ADJUST_MODE_FIT
parent: "E_Anchor" parent: "E_Anchor"
layer: "druid_logo" layer: "druid_logo"
inherit_alpha: true inherit_alpha: true
slice9 {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
}
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 0.5 alpha: 0.5
template_node_child: false
size_mode: SIZE_MODE_AUTO size_mode: SIZE_MODE_AUTO
custom_type: 0
enabled: true
visible: true
material: ""
} }
nodes { nodes {
position { position {
x: -200.0 x: -200.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
} }
size { size {
x: 16.0 x: 16.0
y: 16.0 y: 16.0
z: 0.0
w: 1.0
}
color {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
} }
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: ""
id: "W_Anchor" id: "W_Anchor"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_W pivot: PIVOT_W
adjust_mode: ADJUST_MODE_STRETCH adjust_mode: ADJUST_MODE_STRETCH
parent: "root" parent: "root"
layer: ""
inherit_alpha: true inherit_alpha: true
slice9 {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
}
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: false
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: false visible: false
material: ""
} }
nodes { nodes {
position { position {
x: -10.0 x: -10.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size {
x: 200.0
y: 100.0
z: 0.0
w: 1.0
}
color {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
} }
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: "druid_logo/icon_druid" texture: "druid_logo/icon_druid"
id: "icon_druid_left" id: "icon_druid_left"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
adjust_mode: ADJUST_MODE_FIT
parent: "W_Anchor" parent: "W_Anchor"
layer: "druid_logo" layer: "druid_logo"
inherit_alpha: true inherit_alpha: true
slice9 {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
}
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 0.5 alpha: 0.5
template_node_child: false
size_mode: SIZE_MODE_AUTO size_mode: SIZE_MODE_AUTO
custom_type: 0
enabled: true
visible: true
material: ""
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size {
x: 200.0
y: 100.0
z: 0.0
w: 1.0
}
color {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: "druid_logo/logo_druid" texture: "druid_logo/logo_druid"
id: "icon_logo" id: "icon_logo"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
adjust_mode: ADJUST_MODE_FIT
parent: "root" parent: "root"
layer: "druid_logo" layer: "druid_logo"
inherit_alpha: true inherit_alpha: true
slice9 {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
}
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: false
size_mode: SIZE_MODE_AUTO size_mode: SIZE_MODE_AUTO
custom_type: 0
enabled: true
visible: true
material: ""
} }
nodes { nodes {
position { position {
x: 0.0
y: -50.0 y: -50.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
} }
scale { scale {
x: 0.6 x: 0.6
y: 0.6 y: 0.6
z: 1.0
w: 1.0
} }
size { size {
x: 400.0 x: 400.0
y: 50.0 y: 50.0
z: 0.0
w: 1.0
} }
color { color {
x: 0.463 x: 0.463
y: 0.475 y: 0.475
z: 0.49 z: 0.49
w: 1.0
} }
type: TYPE_TEXT type: TYPE_TEXT
blend_mode: BLEND_MODE_ALPHA
text: "Defold UI Framework" text: "Defold UI Framework"
font: "text_regular" font: "text_regular"
id: "text_description" id: "text_description"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
outline { outline {
x: 1.0 x: 1.0
y: 1.0 y: 1.0
z: 1.0 z: 1.0
w: 1.0
} }
shadow { shadow {
x: 1.0 x: 1.0
y: 1.0 y: 1.0
z: 1.0 z: 1.0
w: 1.0
} }
adjust_mode: ADJUST_MODE_FIT
line_break: false
parent: "root" parent: "root"
layer: "text_regular" layer: "text_regular"
inherit_alpha: true inherit_alpha: true
alpha: 1.0
outline_alpha: 0.0 outline_alpha: 0.0
shadow_alpha: 0.0 shadow_alpha: 0.0
template_node_child: false
text_leading: 1.0
text_tracking: 0.0
custom_type: 0
enabled: true
visible: true
material: ""
} }
layers { layers {
name: "druid" name: "druid"
@@ -448,4 +142,3 @@ layers {
} }
material: "/builtins/materials/gui.material" material: "/builtins/materials/gui.material"
adjust_reference: ADJUST_REFERENCE_PARENT adjust_reference: ADJUST_REFERENCE_PARENT
max_nodes: 512

View File

@@ -1,605 +1,140 @@
script: ""
fonts { fonts {
name: "text_regular" name: "text_regular"
font: "/example/assets/fonts/text_regular.font" font: "/example/assets/fonts/text_regular.font"
} }
textures { textures {
name: "druid" name: "druid_example"
texture: "/example/assets/druid.atlas" texture: "/example/assets/druid_example.atlas"
}
background_color {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size { size {
x: 400.0 x: 400.0
y: 910.0 y: 910.0
z: 0.0
w: 1.0
} }
color { color {
x: 0.173 x: 0.173
y: 0.184 y: 0.184
z: 0.204 z: 0.204
w: 1.0
} }
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: "druid/pixel" texture: "druid/pixel"
id: "root" id: "root"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
adjust_mode: ADJUST_MODE_STRETCH adjust_mode: ADJUST_MODE_STRETCH
layer: "druid" layer: "druid"
inherit_alpha: true inherit_alpha: true
slice9 {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
}
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: false
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: true
material: ""
} }
nodes { nodes {
position { position {
x: -190.0 x: -190.0
y: 445.0 y: 445.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
} }
scale { scale {
x: 0.9 x: 0.9
y: 0.9 y: 0.9
z: 1.0
w: 1.0
} }
size { size {
x: 250.0 x: 250.0
y: 60.0 y: 60.0
z: 0.0
w: 1.0
} }
color { color {
x: 0.463 x: 0.463
y: 0.475 y: 0.475
z: 0.49 z: 0.49
w: 1.0
} }
type: TYPE_TEXT type: TYPE_TEXT
blend_mode: BLEND_MODE_ALPHA
text: "Examples" text: "Examples"
font: "text_regular" font: "text_regular"
id: "text_header" id: "text_header"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_NW pivot: PIVOT_NW
outline { outline {
x: 1.0 x: 1.0
y: 1.0 y: 1.0
z: 1.0 z: 1.0
w: 1.0
} }
shadow { shadow {
x: 1.0 x: 1.0
y: 1.0 y: 1.0
z: 1.0 z: 1.0
w: 1.0
} }
adjust_mode: ADJUST_MODE_FIT
line_break: false
parent: "root" parent: "root"
layer: "text_regular" layer: "text_regular"
inherit_alpha: true inherit_alpha: true
alpha: 1.0
outline_alpha: 0.0 outline_alpha: 0.0
shadow_alpha: 0.0 shadow_alpha: 0.0
template_node_child: false
text_leading: 1.0
text_tracking: 0.0
custom_type: 0
enabled: true
visible: true
material: ""
} }
nodes { nodes {
position { position {
x: -200.0 x: -200.0
y: 395.0 y: 395.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
} }
size { size {
x: 400.0 x: 400.0
y: 850.0 y: 850.0
z: 0.0
w: 1.0
}
color {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
} }
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: "druid/empty" texture: "druid/empty"
id: "scroll_view" id: "scroll_view"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_NW pivot: PIVOT_NW
adjust_mode: ADJUST_MODE_STRETCH adjust_mode: ADJUST_MODE_STRETCH
parent: "root" parent: "root"
layer: "druid" layer: "druid"
inherit_alpha: true inherit_alpha: true
slice9 {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
}
clipping_mode: CLIPPING_MODE_STENCIL clipping_mode: CLIPPING_MODE_STENCIL
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: false
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: true
material: ""
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size { size {
x: 400.0 x: 400.0
y: 850.0 y: 850.0
z: 0.0
w: 1.0
}
color {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
} }
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: "druid/empty" texture: "druid/empty"
id: "scroll_content" id: "scroll_content"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_NW pivot: PIVOT_NW
adjust_mode: ADJUST_MODE_STRETCH adjust_mode: ADJUST_MODE_STRETCH
parent: "scroll_view" parent: "scroll_view"
layer: "druid" layer: "druid"
inherit_alpha: true inherit_alpha: true
slice9 {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
}
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: false
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: false visible: false
material: ""
} }
nodes { nodes {
position { position {
x: 0.0
y: -52.0 y: -52.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size {
x: 200.0
y: 100.0
z: 0.0
w: 1.0
}
color {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
} }
type: TYPE_TEMPLATE type: TYPE_TEMPLATE
id: "examples_list_view_item" id: "examples_list_view_item"
parent: "scroll_content" parent: "scroll_content"
layer: ""
inherit_alpha: true inherit_alpha: true
alpha: 1.0
template: "/example/components/examples_list_view/examples_list_view_item.gui" template: "/example/components/examples_list_view/examples_list_view_item.gui"
template_node_child: false
custom_type: 0
enabled: true
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size {
x: 400.0
y: 50.0
z: 0.0
w: 1.0
}
color {
x: 0.173
y: 0.184
z: 0.204
w: 1.0
}
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: "druid/empty"
id: "examples_list_view_item/root" id: "examples_list_view_item/root"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_W
adjust_mode: ADJUST_MODE_STRETCH
parent: "examples_list_view_item" parent: "examples_list_view_item"
layer: "druid"
inherit_alpha: true
slice9 {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
}
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: true template_node_child: true
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: false
material: ""
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size {
x: 400.0
y: 50.0
z: 0.0
w: 1.0
}
color {
x: 0.31
y: 0.318
z: 0.322
w: 1.0
}
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: "druid/pixel"
id: "examples_list_view_item/panel_highlight" id: "examples_list_view_item/panel_highlight"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_W
adjust_mode: ADJUST_MODE_FIT
parent: "examples_list_view_item/root" parent: "examples_list_view_item/root"
layer: "druid"
inherit_alpha: true
slice9 {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
}
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 0.0
template_node_child: true template_node_child: true
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: true
material: ""
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size {
x: 4.0
y: 50.0
z: 0.0
w: 1.0
}
color {
x: 0.894
y: 0.506
z: 0.333
w: 1.0
}
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: "druid/pixel"
id: "examples_list_view_item/panel_selected" id: "examples_list_view_item/panel_selected"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_W
adjust_mode: ADJUST_MODE_FIT
parent: "examples_list_view_item/root" parent: "examples_list_view_item/root"
layer: "druid"
inherit_alpha: true
slice9 {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
}
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: true template_node_child: true
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: false
visible: true
material: ""
} }
nodes { nodes {
position {
x: 18.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 0.6
y: 0.6
z: 1.0
w: 1.0
}
size {
x: 200.0
y: 100.0
z: 0.0
w: 1.0
}
color {
x: 0.851
y: 0.851
z: 0.851
w: 1.0
}
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: "druid/icon_arrow"
id: "examples_list_view_item/icon" id: "examples_list_view_item/icon"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
adjust_mode: ADJUST_MODE_FIT
parent: "examples_list_view_item/root" parent: "examples_list_view_item/root"
layer: "druid"
inherit_alpha: true
slice9 {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
}
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: true template_node_child: true
size_mode: SIZE_MODE_AUTO
custom_type: 0
enabled: false
visible: true
material: ""
} }
nodes { nodes {
position {
x: 36.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 0.7
y: 0.7
z: 1.0
w: 1.0
}
size {
x: 500.0
y: 60.0
z: 0.0
w: 1.0
}
color {
x: 0.463
y: 0.475
z: 0.49
w: 1.0
}
type: TYPE_TEXT type: TYPE_TEXT
blend_mode: BLEND_MODE_ALPHA
text: "Basic"
font: "text_bold"
id: "examples_list_view_item/text" id: "examples_list_view_item/text"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_W
outline {
x: 0.941
y: 0.984
z: 1.0
w: 1.0
}
shadow {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
adjust_mode: ADJUST_MODE_FIT
line_break: false
parent: "examples_list_view_item/root" parent: "examples_list_view_item/root"
layer: "text_bold"
inherit_alpha: true
alpha: 1.0
outline_alpha: 0.0
shadow_alpha: 0.0
template_node_child: true template_node_child: true
text_leading: 1.0
text_tracking: 0.0
custom_type: 0
enabled: true
visible: true
material: ""
} }
layers { layers {
name: "druid" name: "druid"
@@ -609,4 +144,3 @@ layers {
} }
material: "/builtins/materials/gui.material" material: "/builtins/materials/gui.material"
adjust_reference: ADJUST_REFERENCE_PARENT adjust_reference: ADJUST_REFERENCE_PARENT
max_nodes: 512

View File

@@ -10,7 +10,7 @@ local examples_list_view_item = require("example.components.examples_list_view.e
---@field root druid.container ---@field root druid.container
---@field druid druid_instance ---@field druid druid_instance
---@field scroll druid.scroll ---@field scroll druid.scroll
---@field grid druid.static_grid ---@field grid druid.grid
local M = component.create("examples_list_view") local M = component.create("examples_list_view")
@@ -29,7 +29,7 @@ function M:init(template, nodes)
gui.set_enabled(self.prefab, false) gui.set_enabled(self.prefab, false)
self.scroll = self.druid:new_scroll("scroll_view", "scroll_content") self.scroll = self.druid:new_scroll("scroll_view", "scroll_content")
self.grid = self.druid:new_static_grid("scroll_content", self.prefab, 1) self.grid = self.druid:new_grid("scroll_content", self.prefab, 1)
self.scroll:bind_grid(self.grid) self.scroll:bind_grid(self.grid)
self.root:add_container("scroll_view", nil, function(_, size) self.root:add_container("scroll_view", nil, function(_, size)

View File

@@ -1,319 +1,127 @@
script: ""
fonts { fonts {
name: "text_bold" name: "text_bold"
font: "/example/assets/fonts/text_bold.font" font: "/example/assets/fonts/text_bold.font"
} }
textures { textures {
name: "druid" name: "druid_example"
texture: "/example/assets/druid.atlas" texture: "/example/assets/druid_example.atlas"
}
background_color {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size { size {
x: 400.0 x: 400.0
y: 50.0 y: 50.0
z: 0.0
w: 1.0
} }
color { color {
x: 0.173 x: 0.173
y: 0.184 y: 0.184
z: 0.204 z: 0.204
w: 1.0
} }
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: "druid/empty" texture: "druid/empty"
id: "root" id: "root"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_W pivot: PIVOT_W
adjust_mode: ADJUST_MODE_STRETCH adjust_mode: ADJUST_MODE_STRETCH
layer: "druid" layer: "druid"
inherit_alpha: true inherit_alpha: true
slice9 {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
}
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: false
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: false visible: false
material: ""
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size { size {
x: 400.0 x: 400.0
y: 50.0 y: 50.0
z: 0.0
w: 1.0
} }
color { color {
x: 0.31 x: 0.31
y: 0.318 y: 0.318
z: 0.322 z: 0.322
w: 1.0
} }
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: "druid/pixel" texture: "druid/pixel"
id: "panel_highlight" id: "panel_highlight"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_W pivot: PIVOT_W
adjust_mode: ADJUST_MODE_FIT
parent: "root" parent: "root"
layer: "druid" layer: "druid"
inherit_alpha: true inherit_alpha: true
slice9 {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
}
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 0.0 alpha: 0.0
template_node_child: false
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: true
material: ""
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size { size {
x: 4.0 x: 4.0
y: 50.0 y: 50.0
z: 0.0
w: 1.0
} }
color { color {
x: 0.894 x: 0.894
y: 0.506 y: 0.506
z: 0.333 z: 0.333
w: 1.0
} }
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: "druid/pixel" texture: "druid/pixel"
id: "panel_selected" id: "panel_selected"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_W pivot: PIVOT_W
adjust_mode: ADJUST_MODE_FIT
parent: "root" parent: "root"
layer: "druid" layer: "druid"
inherit_alpha: true inherit_alpha: true
slice9 {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
}
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: false
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: false enabled: false
visible: true
material: ""
} }
nodes { nodes {
position { position {
x: 18.0 x: 18.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
} }
scale { scale {
x: 0.6 x: 0.6
y: 0.6 y: 0.6
z: 1.0
w: 1.0
}
size {
x: 200.0
y: 100.0
z: 0.0
w: 1.0
} }
color { color {
x: 0.851 x: 0.851
y: 0.851 y: 0.851
z: 0.851 z: 0.851
w: 1.0
} }
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: "druid/icon_arrow" texture: "druid/icon_arrow"
id: "icon" id: "icon"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
adjust_mode: ADJUST_MODE_FIT
parent: "root" parent: "root"
layer: "druid" layer: "druid"
inherit_alpha: true inherit_alpha: true
slice9 {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
}
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: false
size_mode: SIZE_MODE_AUTO size_mode: SIZE_MODE_AUTO
custom_type: 0
enabled: false enabled: false
visible: true
material: ""
} }
nodes { nodes {
position { position {
x: 36.0 x: 36.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
} }
scale { scale {
x: 0.7 x: 0.7
y: 0.7 y: 0.7
z: 1.0
w: 1.0
} }
size { size {
x: 500.0 x: 500.0
y: 60.0 y: 60.0
z: 0.0
w: 1.0
} }
color { color {
x: 0.463 x: 0.463
y: 0.475 y: 0.475
z: 0.49 z: 0.49
w: 1.0
} }
type: TYPE_TEXT type: TYPE_TEXT
blend_mode: BLEND_MODE_ALPHA
text: "Basic" text: "Basic"
font: "text_bold" font: "text_bold"
id: "text" id: "text"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_W pivot: PIVOT_W
outline { outline {
x: 0.941 x: 0.941
y: 0.984 y: 0.984
z: 1.0 z: 1.0
w: 1.0
} }
shadow { shadow {
x: 1.0 x: 1.0
y: 1.0 y: 1.0
z: 1.0 z: 1.0
w: 1.0
} }
adjust_mode: ADJUST_MODE_FIT
line_break: false
parent: "root" parent: "root"
layer: "text_bold" layer: "text_bold"
inherit_alpha: true inherit_alpha: true
alpha: 1.0
outline_alpha: 0.0 outline_alpha: 0.0
shadow_alpha: 0.0 shadow_alpha: 0.0
template_node_child: false
text_leading: 1.0
text_tracking: 0.0
custom_type: 0
enabled: true
visible: true
material: ""
} }
layers { layers {
name: "druid" name: "druid"
@@ -323,4 +131,3 @@ layers {
} }
material: "/builtins/materials/gui.material" material: "/builtins/materials/gui.material"
adjust_reference: ADJUST_REFERENCE_PARENT adjust_reference: ADJUST_REFERENCE_PARENT
max_nodes: 512

View File

@@ -7,8 +7,8 @@ fonts {
font: "/example/assets/fonts/text_bold.font" font: "/example/assets/fonts/text_bold.font"
} }
textures { textures {
name: "druid" name: "druid_example"
texture: "/example/assets/druid.atlas" texture: "/example/assets/druid_example.atlas"
} }
nodes { nodes {
size { size {

View File

@@ -22,7 +22,7 @@ function M:init(template, nodes)
self.prefab = self:get_node("text") self.prefab = self:get_node("text")
gui.set_enabled(self.prefab, false) gui.set_enabled(self.prefab, false)
self.grid = self.druid:new_static_grid("scroll_content", "text", 1) self.grid = self.druid:new_grid("scroll_content", "text", 1)
self.scroll = self.druid:new_scroll("scroll_view", "scroll_content") self.scroll = self.druid:new_scroll("scroll_view", "scroll_content")
self.scroll:bind_grid(self.grid) self.scroll:bind_grid(self.grid)
self.scroll:set_horizontal_scroll(false) self.scroll:set_horizontal_scroll(false)

View File

@@ -1,981 +1,459 @@
script: ""
fonts { fonts {
name: "text_bold" name: "text_bold"
font: "/example/assets/fonts/text_bold.font" font: "/example/assets/fonts/text_bold.font"
} }
textures { textures {
name: "druid" name: "druid_example"
texture: "/example/assets/druid.atlas" texture: "/example/assets/druid_example.atlas"
}
background_color {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size { size {
x: 1080.0 x: 1080.0
y: 50.0 y: 50.0
z: 0.0
w: 1.0
} }
color { color {
x: 0.129 x: 0.129
y: 0.141 y: 0.141
z: 0.157 z: 0.157
w: 1.0
} }
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: ""
id: "root" id: "root"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
adjust_mode: ADJUST_MODE_STRETCH adjust_mode: ADJUST_MODE_STRETCH
layer: ""
inherit_alpha: true inherit_alpha: true
slice9 {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
}
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: false
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: true
material: ""
} }
nodes { nodes {
position { position {
x: -530.0 x: -530.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
} }
size { size {
x: 16.0 x: 16.0
y: 50.0 y: 50.0
z: 0.0
w: 1.0
}
color {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
} }
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: ""
id: "group_memory" id: "group_memory"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_W pivot: PIVOT_W
adjust_mode: ADJUST_MODE_FIT
parent: "root" parent: "root"
layer: ""
inherit_alpha: true inherit_alpha: true
slice9 {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
}
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: false
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: false visible: false
material: ""
} }
nodes { nodes {
position { position {
x: 89.0 x: 89.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
} }
scale { scale {
x: 0.8 x: 0.8
y: 0.8 y: 0.8
z: 1.0
w: 1.0
} }
size { size {
x: 200.0 x: 200.0
y: 50.0 y: 50.0
z: 0.0
w: 1.0
} }
color { color {
x: 0.306 x: 0.306
y: 0.31 y: 0.31
z: 0.314 z: 0.314
w: 1.0
} }
type: TYPE_TEXT type: TYPE_TEXT
blend_mode: BLEND_MODE_ALPHA
text: "Memory" text: "Memory"
font: "text_bold" font: "text_bold"
id: "text_memory" id: "text_memory"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
outline { outline {
x: 1.0 x: 1.0
y: 1.0 y: 1.0
z: 1.0 z: 1.0
w: 1.0
} }
shadow { shadow {
x: 1.0 x: 1.0
y: 1.0 y: 1.0
z: 1.0 z: 1.0
w: 1.0
} }
adjust_mode: ADJUST_MODE_FIT
line_break: false
parent: "group_memory" parent: "group_memory"
layer: "text_bold" layer: "text_bold"
inherit_alpha: true inherit_alpha: true
alpha: 1.0
outline_alpha: 0.0 outline_alpha: 0.0
shadow_alpha: 0.0 shadow_alpha: 0.0
template_node_child: false
text_leading: 1.0
text_tracking: 0.0
custom_type: 0
enabled: true
visible: true
material: ""
} }
nodes { nodes {
position { position {
x: 199.0 x: 199.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
} }
scale { scale {
x: 0.8 x: 0.8
y: 0.8 y: 0.8
z: 1.0
w: 1.0
} }
size { size {
x: 200.0 x: 200.0
y: 50.0 y: 50.0
z: 0.0
w: 1.0
} }
color { color {
x: 0.463 x: 0.463
y: 0.475 y: 0.475
z: 0.49 z: 0.49
w: 1.0
} }
type: TYPE_TEXT type: TYPE_TEXT
blend_mode: BLEND_MODE_ALPHA
text: "2048" text: "2048"
font: "text_bold" font: "text_bold"
id: "text_memory_amount" id: "text_memory_amount"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
outline { outline {
x: 1.0 x: 1.0
y: 1.0 y: 1.0
z: 1.0 z: 1.0
w: 1.0
} }
shadow { shadow {
x: 1.0 x: 1.0
y: 1.0 y: 1.0
z: 1.0 z: 1.0
w: 1.0
} }
adjust_mode: ADJUST_MODE_FIT
line_break: false
parent: "group_memory" parent: "group_memory"
layer: "text_bold" layer: "text_bold"
inherit_alpha: true inherit_alpha: true
alpha: 1.0
outline_alpha: 0.0 outline_alpha: 0.0
shadow_alpha: 0.0 shadow_alpha: 0.0
template_node_child: false
text_leading: 1.0
text_tracking: 0.0
custom_type: 0
enabled: true
visible: true
material: ""
} }
nodes { nodes {
position { position {
x: 273.0 x: 273.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
} }
scale { scale {
x: 0.8 x: 0.8
y: 0.8 y: 0.8
z: 1.0
w: 1.0
} }
size { size {
x: 200.0 x: 200.0
y: 50.0 y: 50.0
z: 0.0
w: 1.0
} }
color { color {
x: 0.306 x: 0.306
y: 0.31 y: 0.31
z: 0.314 z: 0.314
w: 1.0
} }
type: TYPE_TEXT type: TYPE_TEXT
blend_mode: BLEND_MODE_ALPHA
text: "KB" text: "KB"
font: "text_bold" font: "text_bold"
id: "text_memory_kb" id: "text_memory_kb"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
outline { outline {
x: 1.0 x: 1.0
y: 1.0 y: 1.0
z: 1.0 z: 1.0
w: 1.0
} }
shadow { shadow {
x: 1.0 x: 1.0
y: 1.0 y: 1.0
z: 1.0 z: 1.0
w: 1.0
} }
adjust_mode: ADJUST_MODE_FIT
line_break: false
parent: "group_memory" parent: "group_memory"
layer: "text_bold" layer: "text_bold"
inherit_alpha: true inherit_alpha: true
alpha: 1.0
outline_alpha: 0.0 outline_alpha: 0.0
shadow_alpha: 0.0 shadow_alpha: 0.0
template_node_child: false
text_leading: 1.0
text_tracking: 0.0
custom_type: 0
enabled: true
visible: true
material: ""
} }
nodes { nodes {
position { position {
x: -130.0 x: -130.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
} }
size { size {
x: 16.0 x: 16.0
y: 50.0 y: 50.0
z: 0.0
w: 1.0
}
color {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
} }
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: "druid/empty" texture: "druid/empty"
id: "group_fps" id: "group_fps"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
adjust_mode: ADJUST_MODE_FIT
parent: "root" parent: "root"
layer: ""
inherit_alpha: true inherit_alpha: true
slice9 {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
}
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: false
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: false visible: false
material: ""
} }
nodes { nodes {
position { position {
x: -50.0 x: -50.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
} }
scale { scale {
x: 0.8 x: 0.8
y: 0.8 y: 0.8
z: 1.0
w: 1.0
} }
size { size {
x: 120.0 x: 120.0
y: 50.0 y: 50.0
z: 0.0
w: 1.0
} }
color { color {
x: 0.306 x: 0.306
y: 0.31 y: 0.31
z: 0.314 z: 0.314
w: 1.0
} }
type: TYPE_TEXT type: TYPE_TEXT
blend_mode: BLEND_MODE_ALPHA
text: "FPS" text: "FPS"
font: "text_bold" font: "text_bold"
id: "text_fps" id: "text_fps"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
outline { outline {
x: 1.0 x: 1.0
y: 1.0 y: 1.0
z: 1.0 z: 1.0
w: 1.0
} }
shadow { shadow {
x: 1.0 x: 1.0
y: 1.0 y: 1.0
z: 1.0 z: 1.0
w: 1.0
} }
adjust_mode: ADJUST_MODE_FIT
line_break: false
parent: "group_fps" parent: "group_fps"
layer: "text_bold" layer: "text_bold"
inherit_alpha: true inherit_alpha: true
alpha: 1.0
outline_alpha: 0.0 outline_alpha: 0.0
shadow_alpha: 0.0 shadow_alpha: 0.0
template_node_child: false
text_leading: 1.0
text_tracking: 0.0
custom_type: 0
enabled: true
visible: true
material: ""
} }
nodes { nodes {
position { position {
x: 17.0 x: 17.0
y: -20.0 y: -20.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
} }
scale { scale {
x: 0.8 x: 0.8
y: 0.8 y: 0.8
z: 1.0
w: 1.0
} }
size { size {
x: 200.0 x: 200.0
y: 50.0 y: 50.0
z: 0.0
w: 1.0
} }
color { color {
x: 0.463 x: 0.463
y: 0.475 y: 0.475
z: 0.49 z: 0.49
w: 1.0
} }
type: TYPE_TEXT type: TYPE_TEXT
blend_mode: BLEND_MODE_ALPHA
text: "60" text: "60"
font: "text_bold" font: "text_bold"
id: "text_fps_amount" id: "text_fps_amount"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_S pivot: PIVOT_S
outline { outline {
x: 1.0 x: 1.0
y: 1.0 y: 1.0
z: 1.0 z: 1.0
w: 1.0
} }
shadow { shadow {
x: 1.0 x: 1.0
y: 1.0 y: 1.0
z: 1.0 z: 1.0
w: 1.0
} }
adjust_mode: ADJUST_MODE_FIT
line_break: false
parent: "group_fps" parent: "group_fps"
layer: "text_bold" layer: "text_bold"
inherit_alpha: true inherit_alpha: true
alpha: 1.0
outline_alpha: 0.0 outline_alpha: 0.0
shadow_alpha: 0.0 shadow_alpha: 0.0
template_node_child: false
text_leading: 1.0
text_tracking: 0.0
custom_type: 0
enabled: true
visible: true
material: ""
} }
nodes { nodes {
position { position {
x: 65.0 x: 65.0
y: -17.5 y: -17.5
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
} }
scale { scale {
x: 0.6 x: 0.6
y: 0.6 y: 0.6
z: 1.0
w: 1.0
} }
size { size {
x: 100.0 x: 100.0
y: 50.0 y: 50.0
z: 0.0
w: 1.0
} }
color { color {
x: 0.31 x: 0.31
y: 0.318 y: 0.318
z: 0.322 z: 0.322
w: 1.0
} }
type: TYPE_TEXT type: TYPE_TEXT
blend_mode: BLEND_MODE_ALPHA
text: "/60" text: "/60"
font: "text_bold" font: "text_bold"
id: "text_fps_min" id: "text_fps_min"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_S pivot: PIVOT_S
outline { outline {
x: 1.0 x: 1.0
y: 1.0 y: 1.0
z: 1.0 z: 1.0
w: 1.0
} }
shadow { shadow {
x: 1.0 x: 1.0
y: 1.0 y: 1.0
z: 1.0 z: 1.0
w: 1.0
} }
adjust_mode: ADJUST_MODE_FIT
line_break: false
parent: "group_fps" parent: "group_fps"
layer: "text_bold" layer: "text_bold"
inherit_alpha: true inherit_alpha: true
alpha: 1.0
outline_alpha: 0.0 outline_alpha: 0.0
shadow_alpha: 0.0 shadow_alpha: 0.0
template_node_child: false
text_leading: 1.0
text_tracking: 0.0
custom_type: 0
enabled: true
visible: true
material: ""
} }
nodes { nodes {
position { position {
x: 130.0 x: 130.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
} }
size { size {
x: 16.0 x: 16.0
y: 50.0 y: 50.0
z: 0.0
w: 1.0
}
color {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
} }
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: "druid/empty" texture: "druid/empty"
id: "group_components" id: "group_components"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
adjust_mode: ADJUST_MODE_FIT
parent: "root" parent: "root"
layer: ""
inherit_alpha: true inherit_alpha: true
slice9 {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
}
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: false
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: false visible: false
material: ""
} }
nodes { nodes {
position { position {
x: -50.0 x: -50.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
} }
scale { scale {
x: 0.8 x: 0.8
y: 0.8 y: 0.8
z: 1.0
w: 1.0
} }
size { size {
x: 350.0 x: 350.0
y: 50.0 y: 50.0
z: 0.0
w: 1.0
} }
color { color {
x: 0.306 x: 0.306
y: 0.31 y: 0.31
z: 0.314 z: 0.314
w: 1.0
} }
type: TYPE_TEXT type: TYPE_TEXT
blend_mode: BLEND_MODE_ALPHA
text: "Components" text: "Components"
font: "text_bold" font: "text_bold"
id: "text_components" id: "text_components"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
outline { outline {
x: 1.0 x: 1.0
y: 1.0 y: 1.0
z: 1.0 z: 1.0
w: 1.0
} }
shadow { shadow {
x: 1.0 x: 1.0
y: 1.0 y: 1.0
z: 1.0 z: 1.0
w: 1.0
} }
adjust_mode: ADJUST_MODE_FIT
line_break: false
parent: "group_components" parent: "group_components"
layer: "text_bold" layer: "text_bold"
inherit_alpha: true inherit_alpha: true
alpha: 1.0
outline_alpha: 0.0 outline_alpha: 0.0
shadow_alpha: 0.0 shadow_alpha: 0.0
template_node_child: false
text_leading: 1.0
text_tracking: 0.0
custom_type: 0
enabled: true
visible: true
material: ""
} }
nodes { nodes {
position { position {
x: 90.0 x: 90.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
} }
scale { scale {
x: 0.8 x: 0.8
y: 0.8 y: 0.8
z: 1.0
w: 1.0
} }
size { size {
x: 200.0 x: 200.0
y: 50.0 y: 50.0
z: 0.0
w: 1.0
} }
color { color {
x: 0.463 x: 0.463
y: 0.475 y: 0.475
z: 0.49 z: 0.49
w: 1.0
} }
type: TYPE_TEXT type: TYPE_TEXT
blend_mode: BLEND_MODE_ALPHA
text: "2004" text: "2004"
font: "text_bold" font: "text_bold"
id: "text_components_amount" id: "text_components_amount"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
outline { outline {
x: 1.0 x: 1.0
y: 1.0 y: 1.0
z: 1.0 z: 1.0
w: 1.0
} }
shadow { shadow {
x: 1.0 x: 1.0
y: 1.0 y: 1.0
z: 1.0 z: 1.0
w: 1.0
} }
adjust_mode: ADJUST_MODE_FIT
line_break: false
parent: "group_components" parent: "group_components"
layer: "text_bold" layer: "text_bold"
inherit_alpha: true inherit_alpha: true
alpha: 1.0
outline_alpha: 0.0 outline_alpha: 0.0
shadow_alpha: 0.0 shadow_alpha: 0.0
template_node_child: false
text_leading: 1.0
text_tracking: 0.0
custom_type: 0
enabled: true
visible: true
material: ""
} }
nodes { nodes {
position { position {
x: 530.0 x: 530.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
} }
size { size {
x: 16.0 x: 16.0
y: 50.0 y: 50.0
z: 0.0
w: 1.0
}
color {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
} }
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: ""
id: "group_events" id: "group_events"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_E pivot: PIVOT_E
adjust_mode: ADJUST_MODE_FIT
parent: "root" parent: "root"
layer: ""
inherit_alpha: true inherit_alpha: true
slice9 {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
}
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: false
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: false visible: false
material: ""
} }
nodes { nodes {
position { position {
x: -163.0 x: -163.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
} }
scale { scale {
x: 0.8 x: 0.8
y: 0.8 y: 0.8
z: 1.0
w: 1.0
} }
size { size {
x: 200.0 x: 200.0
y: 50.0 y: 50.0
z: 0.0
w: 1.0
} }
color { color {
x: 0.306 x: 0.306
y: 0.31 y: 0.31
z: 0.314 z: 0.314
w: 1.0
} }
type: TYPE_TEXT type: TYPE_TEXT
blend_mode: BLEND_MODE_ALPHA
text: "Events" text: "Events"
font: "text_bold" font: "text_bold"
id: "text_events" id: "text_events"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
outline { outline {
x: 1.0 x: 1.0
y: 1.0 y: 1.0
z: 1.0 z: 1.0
w: 1.0
} }
shadow { shadow {
x: 1.0 x: 1.0
y: 1.0 y: 1.0
z: 1.0 z: 1.0
w: 1.0
} }
adjust_mode: ADJUST_MODE_FIT
line_break: false
parent: "group_events" parent: "group_events"
layer: "text_bold" layer: "text_bold"
inherit_alpha: true inherit_alpha: true
alpha: 1.0
outline_alpha: 0.0 outline_alpha: 0.0
shadow_alpha: 0.0 shadow_alpha: 0.0
template_node_child: false
text_leading: 1.0
text_tracking: 0.0
custom_type: 0
enabled: true
visible: true
material: ""
} }
nodes { nodes {
position { position {
x: -59.0 x: -59.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
} }
scale { scale {
x: 0.8 x: 0.8
y: 0.8 y: 0.8
z: 1.0
w: 1.0
} }
size { size {
x: 200.0 x: 200.0
y: 50.0 y: 50.0
z: 0.0
w: 1.0
} }
color { color {
x: 0.463 x: 0.463
y: 0.475 y: 0.475
z: 0.49 z: 0.49
w: 1.0
} }
type: TYPE_TEXT type: TYPE_TEXT
blend_mode: BLEND_MODE_ALPHA
text: "6000" text: "6000"
font: "text_bold" font: "text_bold"
id: "text_events_amount" id: "text_events_amount"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
outline { outline {
x: 1.0 x: 1.0
y: 1.0 y: 1.0
z: 1.0 z: 1.0
w: 1.0
} }
shadow { shadow {
x: 1.0 x: 1.0
y: 1.0 y: 1.0
z: 1.0 z: 1.0
w: 1.0
} }
adjust_mode: ADJUST_MODE_FIT
line_break: false
parent: "group_events" parent: "group_events"
layer: "text_bold" layer: "text_bold"
inherit_alpha: true inherit_alpha: true
alpha: 1.0
outline_alpha: 0.0 outline_alpha: 0.0
shadow_alpha: 0.0 shadow_alpha: 0.0
template_node_child: false
text_leading: 1.0
text_tracking: 0.0
custom_type: 0
enabled: true
visible: true
material: ""
} }
layers { layers {
name: "druid" name: "druid"
@@ -985,4 +463,3 @@ layers {
} }
material: "/builtins/materials/gui.material" material: "/builtins/materials/gui.material"
adjust_reference: ADJUST_REFERENCE_PARENT adjust_reference: ADJUST_REFERENCE_PARENT
max_nodes: 512

View File

@@ -7,8 +7,8 @@ fonts {
font: "/example/assets/fonts/text_regular.font" font: "/example/assets/fonts/text_regular.font"
} }
textures { textures {
name: "druid" name: "druid_example"
texture: "/example/assets/druid.atlas" texture: "/example/assets/druid_example.atlas"
} }
nodes { nodes {
size { size {

View File

@@ -1,184 +1,79 @@
script: ""
fonts { fonts {
name: "text_bold" name: "text_bold"
font: "/example/assets/fonts/text_bold.font" font: "/example/assets/fonts/text_bold.font"
} }
textures { textures {
name: "druid" name: "druid_example"
texture: "/example/assets/druid.atlas" texture: "/example/assets/druid_example.atlas"
}
background_color {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size { size {
x: 400.0 x: 400.0
y: 40.0 y: 40.0
z: 0.0
w: 1.0
}
color {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
} }
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: "druid/empty" texture: "druid/empty"
id: "root" id: "root"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_NW pivot: PIVOT_NW
adjust_mode: ADJUST_MODE_STRETCH adjust_mode: ADJUST_MODE_STRETCH
layer: ""
inherit_alpha: true inherit_alpha: true
slice9 {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
}
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: false
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: false visible: false
material: ""
} }
nodes { nodes {
position { position {
x: 0.0
y: -20.0 y: -20.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
} }
scale { scale {
x: 0.65 x: 0.65
y: 0.65 y: 0.65
z: 1.0
w: 1.0
} }
size { size {
x: 200.0 x: 200.0
y: 40.0 y: 40.0
z: 0.0
w: 1.0
} }
color { color {
x: 0.463 x: 0.463
y: 0.475 y: 0.475
z: 0.49 z: 0.49
w: 1.0
} }
type: TYPE_TEXT type: TYPE_TEXT
blend_mode: BLEND_MODE_ALPHA
text: "Button" text: "Button"
font: "text_bold" font: "text_bold"
id: "text_name" id: "text_name"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_W pivot: PIVOT_W
outline { outline {
x: 1.0 x: 1.0
y: 1.0 y: 1.0
z: 1.0 z: 1.0
w: 1.0
} }
shadow { shadow {
x: 1.0 x: 1.0
y: 1.0 y: 1.0
z: 1.0 z: 1.0
w: 1.0
} }
adjust_mode: ADJUST_MODE_FIT
line_break: false
parent: "root" parent: "root"
layer: ""
inherit_alpha: true inherit_alpha: true
alpha: 1.0
outline_alpha: 0.0 outline_alpha: 0.0
shadow_alpha: 0.0 shadow_alpha: 0.0
template_node_child: false
text_leading: 1.0
text_tracking: 0.0
custom_type: 0
enabled: true
visible: true
material: ""
} }
nodes { nodes {
position { position {
x: 267.0 x: 267.0
y: -20.0 y: -20.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
} }
size { size {
x: 226.0 x: 226.0
y: 40.0 y: 40.0
z: 0.0
w: 1.0
} }
color { color {
x: 0.463 x: 0.463
y: 0.475 y: 0.475
z: 0.49 z: 0.49
w: 1.0
} }
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: "druid/rect_round2_width1" texture: "druid/rect_round2_width1"
id: "button" id: "button"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
adjust_mode: ADJUST_MODE_FIT
parent: "root" parent: "root"
layer: ""
inherit_alpha: true inherit_alpha: true
slice9 { slice9 {
x: 4.0 x: 4.0
@@ -186,143 +81,60 @@ nodes {
z: 4.0 z: 4.0
w: 4.0 w: 4.0
} }
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: false
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: true
material: ""
} }
nodes { nodes {
position { position {
x: 0.0
y: -20.0 y: -20.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
} }
size { size {
x: 226.0 x: 226.0
y: 4.0 y: 4.0
z: 0.0
w: 1.0
} }
color { color {
x: 0.894 x: 0.894
y: 0.506 y: 0.506
z: 0.333 z: 0.333
w: 1.0
} }
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: "druid/pixel" texture: "druid/pixel"
id: "selected" id: "selected"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_S pivot: PIVOT_S
adjust_mode: ADJUST_MODE_STRETCH adjust_mode: ADJUST_MODE_STRETCH
parent: "button" parent: "button"
layer: ""
inherit_alpha: true inherit_alpha: true
slice9 {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
}
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: false
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: true
material: ""
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale { scale {
x: 0.65 x: 0.65
y: 0.65 y: 0.65
z: 1.0
w: 1.0
} }
size { size {
x: 250.0 x: 250.0
y: 30.0 y: 30.0
z: 0.0
w: 1.0
} }
color { color {
x: 0.722 x: 0.722
y: 0.741 y: 0.741
z: 0.761 z: 0.761
w: 1.0
} }
type: TYPE_TEXT type: TYPE_TEXT
blend_mode: BLEND_MODE_ALPHA
text: "Button" text: "Button"
font: "text_bold" font: "text_bold"
id: "text_button" id: "text_button"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
outline { outline {
x: 1.0 x: 1.0
y: 1.0 y: 1.0
z: 1.0 z: 1.0
w: 1.0
} }
shadow { shadow {
x: 1.0 x: 1.0
y: 1.0 y: 1.0
z: 1.0 z: 1.0
w: 1.0
} }
adjust_mode: ADJUST_MODE_FIT
line_break: false
parent: "button" parent: "button"
layer: ""
inherit_alpha: true inherit_alpha: true
alpha: 1.0
outline_alpha: 0.0 outline_alpha: 0.0
shadow_alpha: 0.0 shadow_alpha: 0.0
template_node_child: false
text_leading: 1.0
text_tracking: 0.0
custom_type: 0
enabled: true
visible: true
material: ""
} }
material: "/builtins/materials/gui.material" material: "/builtins/materials/gui.material"
adjust_reference: ADJUST_REFERENCE_PARENT adjust_reference: ADJUST_REFERENCE_PARENT
max_nodes: 512

View File

@@ -1,184 +1,79 @@
script: ""
fonts { fonts {
name: "text_bold" name: "text_bold"
font: "/example/assets/fonts/text_bold.font" font: "/example/assets/fonts/text_bold.font"
} }
textures { textures {
name: "druid" name: "druid_example"
texture: "/example/assets/druid.atlas" texture: "/example/assets/druid_example.atlas"
}
background_color {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size { size {
x: 400.0 x: 400.0
y: 40.0 y: 40.0
z: 0.0
w: 1.0
}
color {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
} }
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: "druid/empty" texture: "druid/empty"
id: "root" id: "root"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_NW pivot: PIVOT_NW
adjust_mode: ADJUST_MODE_STRETCH adjust_mode: ADJUST_MODE_STRETCH
layer: ""
inherit_alpha: true inherit_alpha: true
slice9 {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
}
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: false
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: false visible: false
material: ""
} }
nodes { nodes {
position { position {
x: 0.0
y: -20.0 y: -20.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
} }
scale { scale {
x: 0.65 x: 0.65
y: 0.65 y: 0.65
z: 1.0
w: 1.0
} }
size { size {
x: 200.0 x: 200.0
y: 40.0 y: 40.0
z: 0.0
w: 1.0
} }
color { color {
x: 0.463 x: 0.463
y: 0.475 y: 0.475
z: 0.49 z: 0.49
w: 1.0
} }
type: TYPE_TEXT type: TYPE_TEXT
blend_mode: BLEND_MODE_ALPHA
text: "Checkbox" text: "Checkbox"
font: "text_bold" font: "text_bold"
id: "text_name" id: "text_name"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_W pivot: PIVOT_W
outline { outline {
x: 1.0 x: 1.0
y: 1.0 y: 1.0
z: 1.0 z: 1.0
w: 1.0
} }
shadow { shadow {
x: 1.0 x: 1.0
y: 1.0 y: 1.0
z: 1.0 z: 1.0
w: 1.0
} }
adjust_mode: ADJUST_MODE_FIT
line_break: false
parent: "root" parent: "root"
layer: ""
inherit_alpha: true inherit_alpha: true
alpha: 1.0
outline_alpha: 0.0 outline_alpha: 0.0
shadow_alpha: 0.0 shadow_alpha: 0.0
template_node_child: false
text_leading: 1.0
text_tracking: 0.0
custom_type: 0
enabled: true
visible: true
material: ""
} }
nodes { nodes {
position { position {
x: 174.0 x: 174.0
y: -20.0 y: -20.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
} }
size { size {
x: 40.0 x: 40.0
y: 40.0 y: 40.0
z: 0.0
w: 1.0
} }
color { color {
x: 0.463 x: 0.463
y: 0.475 y: 0.475
z: 0.49 z: 0.49
w: 1.0
} }
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: "druid/rect_round2_width1" texture: "druid/rect_round2_width1"
id: "button" id: "button"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
adjust_mode: ADJUST_MODE_FIT
parent: "root" parent: "root"
layer: ""
inherit_alpha: true inherit_alpha: true
slice9 { slice9 {
x: 4.0 x: 4.0
@@ -186,135 +81,40 @@ nodes {
z: 4.0 z: 4.0
w: 4.0 w: 4.0
} }
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: false
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: true
material: ""
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size {
x: 200.0
y: 100.0
z: 0.0
w: 1.0
}
color { color {
x: 0.722 x: 0.722
y: 0.741 y: 0.741
z: 0.761 z: 0.761
w: 1.0
} }
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: "druid/icon_check" texture: "druid/icon_check"
id: "icon" id: "icon"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
adjust_mode: ADJUST_MODE_FIT
parent: "button" parent: "button"
layer: ""
inherit_alpha: true inherit_alpha: true
slice9 {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
}
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: false
size_mode: SIZE_MODE_AUTO size_mode: SIZE_MODE_AUTO
custom_type: 0
enabled: true
visible: true
material: ""
} }
nodes { nodes {
position { position {
x: 0.0
y: -20.0 y: -20.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
} }
size { size {
x: 40.0 x: 40.0
y: 4.0 y: 4.0
z: 0.0
w: 1.0
} }
color { color {
x: 0.894 x: 0.894
y: 0.506 y: 0.506
z: 0.333 z: 0.333
w: 1.0
} }
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: "druid/pixel" texture: "druid/pixel"
id: "selected" id: "selected"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_S pivot: PIVOT_S
adjust_mode: ADJUST_MODE_STRETCH adjust_mode: ADJUST_MODE_STRETCH
parent: "button" parent: "button"
layer: ""
inherit_alpha: true inherit_alpha: true
slice9 {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
}
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: false
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: true
material: ""
} }
material: "/builtins/materials/gui.material" material: "/builtins/materials/gui.material"
adjust_reference: ADJUST_REFERENCE_PARENT adjust_reference: ADJUST_REFERENCE_PARENT
max_nodes: 512

View File

@@ -3,8 +3,8 @@ fonts {
font: "/example/assets/fonts/text_bold.font" font: "/example/assets/fonts/text_bold.font"
} }
textures { textures {
name: "druid" name: "druid_example"
texture: "/example/assets/druid.atlas" texture: "/example/assets/druid_example.atlas"
} }
nodes { nodes {
size { size {

File diff suppressed because it is too large Load Diff

View File

@@ -31,7 +31,7 @@ function M:init(template, nodes)
self.text_no_properties = self.druid:new(lang_text, "text_no_properties", "ui_no_properties") --[[@as druid.lang_text]] self.text_no_properties = self.druid:new(lang_text, "text_no_properties", "ui_no_properties") --[[@as druid.lang_text]]
self.scroll = self.druid:new_scroll("scroll_view", "scroll_content") self.scroll = self.druid:new_scroll("scroll_view", "scroll_content")
self.grid = self.druid:new_static_grid("scroll_content", "item_size", 1) self.grid = self.druid:new_grid("scroll_content", "item_size", 1)
self.scroll:bind_grid(self.grid) self.scroll:bind_grid(self.grid)
self.property_checkbox_prefab = self:get_node("property_checkbox/root") self.property_checkbox_prefab = self:get_node("property_checkbox/root")

View File

@@ -8,8 +8,8 @@ fonts {
font: "/example/assets/fonts/text_regular.font" font: "/example/assets/fonts/text_regular.font"
} }
textures { textures {
name: "druid" name: "druid_example"
texture: "/example/assets/druid.atlas" texture: "/example/assets/druid_example.atlas"
} }
textures { textures {
name: "druid_logo" name: "druid_logo"
@@ -3919,6 +3919,109 @@ nodes {
parent: "property_slider/slider" parent: "property_slider/slider"
template_node_child: true template_node_child: true
} }
nodes {
type: TYPE_TEMPLATE
id: "example_memory_panel"
parent: "widgets"
inherit_alpha: true
template: "/example/examples/widgets/memory_panel/example_memory_panel.gui"
}
nodes {
type: TYPE_TEMPLATE
id: "example_memory_panel/memory_panel"
parent: "example_memory_panel"
template_node_child: true
}
nodes {
type: TYPE_BOX
id: "example_memory_panel/memory_panel/root"
parent: "example_memory_panel/memory_panel"
template_node_child: true
}
nodes {
type: TYPE_TEMPLATE
id: "example_memory_panel/memory_panel/mini_graph"
parent: "example_memory_panel/memory_panel/root"
template_node_child: true
}
nodes {
type: TYPE_BOX
id: "example_memory_panel/memory_panel/mini_graph/root"
parent: "example_memory_panel/memory_panel/mini_graph"
template_node_child: true
}
nodes {
type: TYPE_BOX
id: "example_memory_panel/memory_panel/mini_graph/header"
parent: "example_memory_panel/memory_panel/mini_graph/root"
template_node_child: true
}
nodes {
type: TYPE_TEXT
id: "example_memory_panel/memory_panel/mini_graph/text_header"
parent: "example_memory_panel/memory_panel/mini_graph/header"
template_node_child: true
}
nodes {
type: TYPE_BOX
id: "example_memory_panel/memory_panel/mini_graph/icon_drag"
parent: "example_memory_panel/memory_panel/mini_graph/header"
template_node_child: true
}
nodes {
type: TYPE_BOX
id: "example_memory_panel/memory_panel/mini_graph/content"
parent: "example_memory_panel/memory_panel/mini_graph/root"
template_node_child: true
}
nodes {
type: TYPE_BOX
id: "example_memory_panel/memory_panel/mini_graph/prefab_line"
parent: "example_memory_panel/memory_panel/mini_graph/content"
template_node_child: true
}
nodes {
type: TYPE_BOX
id: "example_memory_panel/memory_panel/mini_graph/color_low"
parent: "example_memory_panel/memory_panel/mini_graph/content"
template_node_child: true
}
nodes {
type: TYPE_BOX
id: "example_memory_panel/memory_panel/content"
parent: "example_memory_panel/memory_panel/root"
template_node_child: true
}
nodes {
type: TYPE_TEXT
id: "example_memory_panel/memory_panel/text_max_value"
parent: "example_memory_panel/memory_panel/content"
template_node_child: true
}
nodes {
type: TYPE_TEXT
id: "example_memory_panel/memory_panel/text_per_second"
parent: "example_memory_panel/memory_panel/content"
template_node_child: true
}
nodes {
type: TYPE_BOX
id: "example_memory_panel/memory_panel/line_second_1"
parent: "example_memory_panel/memory_panel/content"
template_node_child: true
}
nodes {
type: TYPE_BOX
id: "example_memory_panel/memory_panel/line_second_2"
parent: "example_memory_panel/memory_panel/content"
template_node_child: true
}
nodes {
type: TYPE_TEXT
id: "example_memory_panel/memory_panel/text_memory"
parent: "example_memory_panel/memory_panel/content"
template_node_child: true
}
nodes { nodes {
position { position {
x: -20.0 x: -20.0

View File

@@ -3,8 +3,8 @@ fonts {
font: "/example/assets/fonts/text_bold.font" font: "/example/assets/fonts/text_bold.font"
} }
textures { textures {
name: "druid" name: "druid_example"
texture: "/example/assets/druid.atlas" texture: "/example/assets/druid_example.atlas"
} }
nodes { nodes {
size { size {

View File

@@ -3,8 +3,8 @@ fonts {
font: "/example/assets/fonts/text_bold.font" font: "/example/assets/fonts/text_bold.font"
} }
textures { textures {
name: "druid" name: "druid_example"
texture: "/example/assets/druid.atlas" texture: "/example/assets/druid_example.atlas"
} }
nodes { nodes {
size { size {

View File

@@ -3,8 +3,8 @@ fonts {
font: "/example/assets/fonts/text_bold.font" font: "/example/assets/fonts/text_bold.font"
} }
textures { textures {
name: "druid" name: "druid_example"
texture: "/example/assets/druid.atlas" texture: "/example/assets/druid_example.atlas"
} }
nodes { nodes {
size { size {

View File

@@ -3,8 +3,8 @@ fonts {
font: "/example/assets/fonts/text_bold.font" font: "/example/assets/fonts/text_bold.font"
} }
textures { textures {
name: "druid" name: "druid_example"
texture: "/example/assets/druid.atlas" texture: "/example/assets/druid_example.atlas"
} }
nodes { nodes {
size { size {

View File

@@ -3,8 +3,8 @@ fonts {
font: "/example/assets/fonts/text_bold.font" font: "/example/assets/fonts/text_bold.font"
} }
textures { textures {
name: "druid" name: "druid_example"
texture: "/example/assets/druid.atlas" texture: "/example/assets/druid_example.atlas"
} }
nodes { nodes {
size { size {

View File

@@ -1,241 +1,37 @@
script: ""
textures { textures {
name: "druid" name: "druid_example"
texture: "/example/assets/druid.atlas" texture: "/example/assets/druid_example.atlas"
}
background_color {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size { size {
x: 1000.0 x: 1000.0
y: 1000.0 y: 1000.0
z: 0.0
w: 1.0
}
color {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
} }
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: ""
id: "root" id: "root"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
adjust_mode: ADJUST_MODE_FIT
layer: ""
inherit_alpha: true inherit_alpha: true
slice9 {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
}
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: false
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: false visible: false
material: ""
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size {
x: 200.0
y: 100.0
z: 0.0
w: 1.0
}
color {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
type: TYPE_TEMPLATE type: TYPE_TEMPLATE
id: "drag" id: "drag"
parent: "root" parent: "root"
layer: ""
inherit_alpha: true inherit_alpha: true
alpha: 1.0
template: "/example/templates/button_text_blue.gui" template: "/example/templates/button_text_blue.gui"
template_node_child: false
custom_type: 0
enabled: true
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size {
x: 280.0
y: 90.0
z: 0.0
w: 1.0
}
color {
x: 0.631
y: 0.843
z: 0.961
w: 1.0
}
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: "druid/ui_circle_32"
id: "drag/root" id: "drag/root"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
adjust_mode: ADJUST_MODE_FIT
parent: "drag" parent: "drag"
layer: "druid"
inherit_alpha: true
slice9 {
x: 16.0
y: 16.0
z: 16.0
w: 16.0
}
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: true template_node_child: true
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: true
material: ""
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size {
x: 245.0
y: 50.0
z: 0.0
w: 1.0
}
color {
x: 0.31
y: 0.318
z: 0.322
w: 1.0
}
type: TYPE_TEXT type: TYPE_TEXT
blend_mode: BLEND_MODE_ALPHA
text: "Drag Me" text: "Drag Me"
font: "text_bold"
id: "drag/text" id: "drag/text"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
outline {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
shadow {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
adjust_mode: ADJUST_MODE_FIT
line_break: false
parent: "drag/root" parent: "drag/root"
layer: "text_bold"
inherit_alpha: true
alpha: 1.0
outline_alpha: 0.0
shadow_alpha: 0.0
overridden_fields: 8 overridden_fields: 8
template_node_child: true template_node_child: true
text_leading: 1.0
text_tracking: 0.0
custom_type: 0
enabled: true
visible: true
material: ""
} }
material: "/builtins/materials/gui.material" material: "/builtins/materials/gui.material"
adjust_reference: ADJUST_REFERENCE_PARENT adjust_reference: ADJUST_REFERENCE_PARENT
max_nodes: 512

View File

@@ -3,8 +3,8 @@ fonts {
font: "/example/assets/fonts/text_bold.font" font: "/example/assets/fonts/text_bold.font"
} }
textures { textures {
name: "druid" name: "druid_example"
texture: "/example/assets/druid.atlas" texture: "/example/assets/druid_example.atlas"
} }
nodes { nodes {
size { size {

View File

@@ -1,117 +1,40 @@
script: ""
fonts { fonts {
name: "text_bold" name: "text_bold"
font: "/example/assets/fonts/text_bold.font" font: "/example/assets/fonts/text_bold.font"
} }
textures { textures {
name: "druid" name: "druid_example"
texture: "/example/assets/druid.atlas" texture: "/example/assets/druid_example.atlas"
}
background_color {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size { size {
x: 1000.0 x: 1000.0
y: 1000.0 y: 1000.0
z: 0.0
w: 1.0
}
color {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
} }
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: "druid/empty" texture: "druid/empty"
id: "root" id: "root"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
adjust_mode: ADJUST_MODE_FIT
layer: ""
inherit_alpha: true inherit_alpha: true
slice9 {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
}
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: false
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: false visible: false
material: ""
} }
nodes { nodes {
position { position {
x: 0.0
y: 300.0 y: 300.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
} }
size { size {
x: 600.0 x: 600.0
y: 600.0 y: 600.0
z: 0.0
w: 1.0
} }
color { color {
x: 0.173 x: 0.173
y: 0.184 y: 0.184
z: 0.204 z: 0.204
w: 1.0
} }
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: "druid/ui_circle_32" texture: "druid/ui_circle_32"
id: "grid" id: "grid"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_N pivot: PIVOT_N
adjust_mode: ADJUST_MODE_FIT
parent: "root" parent: "root"
layer: ""
inherit_alpha: true inherit_alpha: true
slice9 { slice9 {
x: 16.0 x: 16.0
@@ -119,117 +42,32 @@ nodes {
z: 16.0 z: 16.0
w: 16.0 w: 16.0
} }
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: false
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: true
material: ""
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size { size {
x: 100.0 x: 100.0
y: 100.0 y: 100.0
z: 0.0
w: 1.0
}
color {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
} }
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: ""
id: "prefab" id: "prefab"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
adjust_mode: ADJUST_MODE_FIT
parent: "grid" parent: "grid"
layer: ""
inherit_alpha: true inherit_alpha: true
slice9 {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
}
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: false
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: false visible: false
material: ""
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size { size {
x: 90.0 x: 90.0
y: 90.0 y: 90.0
z: 0.0
w: 1.0
} }
color { color {
x: 0.631 x: 0.631
y: 0.843 y: 0.843
z: 0.961 z: 0.961
w: 1.0
} }
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: "druid/ui_circle_32" texture: "druid/ui_circle_32"
id: "panel" id: "panel"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
adjust_mode: ADJUST_MODE_FIT
parent: "prefab" parent: "prefab"
layer: ""
inherit_alpha: true inherit_alpha: true
slice9 { slice9 {
x: 16.0 x: 16.0
@@ -237,84 +75,39 @@ nodes {
z: 16.0 z: 16.0
w: 16.0 w: 16.0
} }
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: false
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: true
material: ""
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale { scale {
x: 1.5 x: 1.5
y: 1.5 y: 1.5
z: 1.0
w: 1.0
} }
size { size {
x: 50.0 x: 50.0
y: 50.0 y: 50.0
z: 0.0
w: 1.0
} }
color { color {
x: 0.31 x: 0.31
y: 0.318 y: 0.318
z: 0.322 z: 0.322
w: 1.0
} }
type: TYPE_TEXT type: TYPE_TEXT
blend_mode: BLEND_MODE_ALPHA
text: "1" text: "1"
font: "text_bold" font: "text_bold"
id: "text" id: "text"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
outline { outline {
x: 1.0 x: 1.0
y: 1.0 y: 1.0
z: 1.0 z: 1.0
w: 1.0
} }
shadow { shadow {
x: 1.0 x: 1.0
y: 1.0 y: 1.0
z: 1.0 z: 1.0
w: 1.0
} }
adjust_mode: ADJUST_MODE_FIT
line_break: false
parent: "prefab" parent: "prefab"
layer: ""
inherit_alpha: true inherit_alpha: true
alpha: 1.0
outline_alpha: 0.0 outline_alpha: 0.0
shadow_alpha: 0.0 shadow_alpha: 0.0
template_node_child: false
text_leading: 1.0
text_tracking: 0.0
custom_type: 0
enabled: true
visible: true
material: ""
} }
material: "/builtins/materials/gui.material" material: "/builtins/materials/gui.material"
adjust_reference: ADJUST_REFERENCE_PARENT adjust_reference: ADJUST_REFERENCE_PARENT
max_nodes: 512

View File

@@ -1,7 +1,7 @@
local component = require("druid.component") local component = require("druid.component")
---@class grid: druid.base_component ---@class grid: druid.base_component
---@field grid druid.static_grid ---@field grid druid.grid
---@field text druid.text ---@field text druid.text
---@field druid druid_instance ---@field druid druid_instance
local M = component.create("grid") local M = component.create("grid")
@@ -17,7 +17,7 @@ function M:init(template, nodes)
self.prefab = self:get_node("prefab") self.prefab = self:get_node("prefab")
gui.set_enabled(self.prefab, false) gui.set_enabled(self.prefab, false)
self.grid = self.druid:new_static_grid("grid", "prefab", 3) self.grid = self.druid:new_grid("grid", "prefab", 3)
for index = 1, 9 do for index = 1, 9 do
self:add_element() self:add_element()

View File

@@ -1,410 +1,64 @@
script: ""
textures { textures {
name: "druid" name: "druid_example"
texture: "/example/assets/druid.atlas" texture: "/example/assets/druid_example.atlas"
}
background_color {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size { size {
x: 1000.0 x: 1000.0
y: 1000.0 y: 1000.0
z: 0.0
w: 1.0
}
color {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
} }
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: ""
id: "root" id: "root"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
adjust_mode: ADJUST_MODE_FIT
layer: ""
inherit_alpha: true inherit_alpha: true
slice9 {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
}
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: false
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: false visible: false
material: ""
} }
nodes { nodes {
position { position {
x: 0.0
y: 100.0 y: 100.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size {
x: 200.0
y: 100.0
z: 0.0
w: 1.0
}
color {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
} }
type: TYPE_TEMPLATE type: TYPE_TEMPLATE
id: "button_mouse_hover" id: "button_mouse_hover"
parent: "root" parent: "root"
layer: ""
inherit_alpha: true inherit_alpha: true
alpha: 1.0
template: "/example/templates/button_text_green.gui" template: "/example/templates/button_text_green.gui"
template_node_child: false
custom_type: 0
enabled: true
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size {
x: 280.0
y: 90.0
z: 0.0
w: 1.0
}
color {
x: 0.557
y: 0.835
z: 0.62
w: 1.0
}
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: "druid/ui_circle_32"
id: "button_mouse_hover/root" id: "button_mouse_hover/root"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
adjust_mode: ADJUST_MODE_FIT
parent: "button_mouse_hover" parent: "button_mouse_hover"
layer: "druid"
inherit_alpha: true
slice9 {
x: 16.0
y: 16.0
z: 16.0
w: 16.0
}
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: true template_node_child: true
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: true
material: ""
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size {
x: 245.0
y: 50.0
z: 0.0
w: 1.0
}
color {
x: 0.31
y: 0.318
z: 0.322
w: 1.0
}
type: TYPE_TEXT type: TYPE_TEXT
blend_mode: BLEND_MODE_ALPHA
text: "Mouse Hover" text: "Mouse Hover"
font: "text_bold"
id: "button_mouse_hover/text" id: "button_mouse_hover/text"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
outline {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
shadow {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
adjust_mode: ADJUST_MODE_FIT
line_break: false
parent: "button_mouse_hover/root" parent: "button_mouse_hover/root"
layer: "text_bold"
inherit_alpha: true
alpha: 1.0
outline_alpha: 0.0
shadow_alpha: 0.0
overridden_fields: 8 overridden_fields: 8
template_node_child: true template_node_child: true
text_leading: 1.0
text_tracking: 0.0
custom_type: 0
enabled: true
visible: true
material: ""
} }
nodes { nodes {
position { position {
x: 0.0
y: -100.0 y: -100.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size {
x: 200.0
y: 100.0
z: 0.0
w: 1.0
}
color {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
} }
type: TYPE_TEMPLATE type: TYPE_TEMPLATE
id: "button_mobile_hover" id: "button_mobile_hover"
parent: "root" parent: "root"
layer: ""
inherit_alpha: true inherit_alpha: true
alpha: 1.0
template: "/example/templates/button_text_green.gui" template: "/example/templates/button_text_green.gui"
template_node_child: false
custom_type: 0
enabled: true
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size {
x: 280.0
y: 90.0
z: 0.0
w: 1.0
}
color {
x: 0.557
y: 0.835
z: 0.62
w: 1.0
}
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: "druid/ui_circle_32"
id: "button_mobile_hover/root" id: "button_mobile_hover/root"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
adjust_mode: ADJUST_MODE_FIT
parent: "button_mobile_hover" parent: "button_mobile_hover"
layer: "druid"
inherit_alpha: true
slice9 {
x: 16.0
y: 16.0
z: 16.0
w: 16.0
}
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: true template_node_child: true
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: true
material: ""
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size {
x: 245.0
y: 50.0
z: 0.0
w: 1.0
}
color {
x: 0.31
y: 0.318
z: 0.322
w: 1.0
}
type: TYPE_TEXT type: TYPE_TEXT
blend_mode: BLEND_MODE_ALPHA
text: "Mobile Hover" text: "Mobile Hover"
font: "text_bold"
id: "button_mobile_hover/text" id: "button_mobile_hover/text"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
outline {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
shadow {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
adjust_mode: ADJUST_MODE_FIT
line_break: false
parent: "button_mobile_hover/root" parent: "button_mobile_hover/root"
layer: "text_bold"
inherit_alpha: true
alpha: 1.0
outline_alpha: 0.0
shadow_alpha: 0.0
overridden_fields: 8 overridden_fields: 8
template_node_child: true template_node_child: true
text_leading: 1.0
text_tracking: 0.0
custom_type: 0
enabled: true
visible: true
material: ""
} }
material: "/builtins/materials/gui.material" material: "/builtins/materials/gui.material"
adjust_reference: ADJUST_REFERENCE_PARENT adjust_reference: ADJUST_REFERENCE_PARENT
max_nodes: 512

View File

@@ -1,918 +1,119 @@
script: ""
textures { textures {
name: "druid" name: "druid_example"
texture: "/example/assets/druid.atlas" texture: "/example/assets/druid_example.atlas"
}
background_color {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size { size {
x: 1000.0 x: 1000.0
y: 1000.0 y: 1000.0
z: 0.0
w: 1.0
}
color {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
} }
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: ""
id: "root" id: "root"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
adjust_mode: ADJUST_MODE_FIT
layer: ""
inherit_alpha: true inherit_alpha: true
slice9 {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
}
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: false
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: false visible: false
material: ""
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size {
x: 200.0
y: 100.0
z: 0.0
w: 1.0
}
color {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
type: TYPE_TEMPLATE type: TYPE_TEMPLATE
id: "rich_input" id: "rich_input"
parent: "root" parent: "root"
layer: ""
inherit_alpha: true inherit_alpha: true
alpha: 1.0
template: "/example/templates/rich_input.gui" template: "/example/templates/rich_input.gui"
template_node_child: false
custom_type: 0
enabled: true
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size {
x: 500.0
y: 80.0
z: 0.0
w: 1.0
}
color {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: ""
id: "rich_input/root" id: "rich_input/root"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
adjust_mode: ADJUST_MODE_FIT
parent: "rich_input" parent: "rich_input"
layer: ""
inherit_alpha: true
slice9 {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
}
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: true template_node_child: true
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: false
material: ""
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size {
x: 500.0
y: 80.0
z: 0.0
w: 1.0
}
color {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: "druid/rect_round2_width1"
id: "rich_input/button" id: "rich_input/button"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
adjust_mode: ADJUST_MODE_FIT
parent: "rich_input/root" parent: "rich_input/root"
layer: ""
inherit_alpha: true
slice9 {
x: 4.0
y: 4.0
z: 4.0
w: 4.0
}
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: true template_node_child: true
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: true
material: ""
} }
nodes { nodes {
position { position {
x: -240.0 x: -240.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size {
x: 480.0
y: 60.0
z: 0.0
w: 1.0
}
color {
x: 0.31
y: 0.318
z: 0.322
w: 1.0
} }
type: TYPE_TEXT type: TYPE_TEXT
blend_mode: BLEND_MODE_ALPHA
text: "Placeholder"
font: "text_bold"
id: "rich_input/placeholder_text" id: "rich_input/placeholder_text"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_W pivot: PIVOT_W
outline {
x: 0.4
y: 0.4
z: 0.4
w: 1.0
}
shadow {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
adjust_mode: ADJUST_MODE_FIT
line_break: false
parent: "rich_input/button" parent: "rich_input/button"
layer: ""
inherit_alpha: true
alpha: 1.0
outline_alpha: 0.0
shadow_alpha: 0.0
overridden_fields: 1 overridden_fields: 1
overridden_fields: 14 overridden_fields: 14
template_node_child: true template_node_child: true
text_leading: 1.0
text_tracking: 0.0
custom_type: 0
enabled: true
visible: true
material: ""
} }
nodes { nodes {
position { position {
x: -240.0 x: -240.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size {
x: 480.0
y: 60.0
z: 0.0
w: 1.0
}
color {
x: 0.722
y: 0.741
z: 0.761
w: 1.0
} }
type: TYPE_TEXT type: TYPE_TEXT
blend_mode: BLEND_MODE_ALPHA
text: "User input"
font: "text_bold"
id: "rich_input/input_text" id: "rich_input/input_text"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_W pivot: PIVOT_W
outline {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
shadow {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
adjust_mode: ADJUST_MODE_FIT
line_break: false
parent: "rich_input/button" parent: "rich_input/button"
layer: ""
inherit_alpha: true
alpha: 1.0
outline_alpha: 0.0
shadow_alpha: 0.0
overridden_fields: 1 overridden_fields: 1
overridden_fields: 14 overridden_fields: 14
template_node_child: true template_node_child: true
text_leading: 1.0
text_tracking: 0.0
custom_type: 0
enabled: true
visible: true
material: ""
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size {
x: 16.0
y: 50.0
z: 0.0
w: 1.0
}
color {
x: 0.631
y: 0.843
z: 0.961
w: 1.0
}
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: "druid/ui_circle_16"
id: "rich_input/cursor_node" id: "rich_input/cursor_node"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
adjust_mode: ADJUST_MODE_FIT
parent: "rich_input/button" parent: "rich_input/button"
layer: ""
inherit_alpha: true
slice9 {
x: 8.0
y: 8.0
z: 8.0
w: 8.0
}
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 0.5
overridden_fields: 1 overridden_fields: 1
template_node_child: true template_node_child: true
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: true
material: ""
} }
nodes { nodes {
position {
x: 0.0
y: 4.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.2
y: 1.2
z: 1.0
w: 1.0
}
size {
x: 20.0
y: 40.0
z: 0.0
w: 1.0
}
color {
x: 0.722
y: 0.741
z: 0.761
w: 1.0
}
type: TYPE_TEXT type: TYPE_TEXT
blend_mode: BLEND_MODE_ALPHA
text: "|"
font: "text_bold"
id: "rich_input/cursor_text" id: "rich_input/cursor_text"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
outline {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
shadow {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
adjust_mode: ADJUST_MODE_FIT
line_break: false
parent: "rich_input/cursor_node" parent: "rich_input/cursor_node"
layer: ""
inherit_alpha: false
alpha: 1.0
outline_alpha: 0.0
shadow_alpha: 0.0
template_node_child: true template_node_child: true
text_leading: 1.0
text_tracking: 0.0
custom_type: 0
enabled: true
visible: true
material: ""
} }
nodes { nodes {
position { position {
x: 0.0
y: -150.0 y: -150.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size {
x: 200.0
y: 100.0
z: 0.0
w: 1.0
}
color {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
} }
type: TYPE_TEMPLATE type: TYPE_TEMPLATE
id: "rich_input_2" id: "rich_input_2"
parent: "root" parent: "root"
layer: ""
inherit_alpha: true inherit_alpha: true
alpha: 1.0
template: "/example/templates/rich_input.gui" template: "/example/templates/rich_input.gui"
template_node_child: false
custom_type: 0
enabled: true
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size {
x: 500.0
y: 80.0
z: 0.0
w: 1.0
}
color {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: ""
id: "rich_input_2/root" id: "rich_input_2/root"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
adjust_mode: ADJUST_MODE_FIT
parent: "rich_input_2" parent: "rich_input_2"
layer: ""
inherit_alpha: true
slice9 {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
}
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: true template_node_child: true
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: false
material: ""
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size {
x: 500.0
y: 80.0
z: 0.0
w: 1.0
}
color {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: "druid/rect_round2_width1"
id: "rich_input_2/button" id: "rich_input_2/button"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
adjust_mode: ADJUST_MODE_FIT
parent: "rich_input_2/root" parent: "rich_input_2/root"
layer: ""
inherit_alpha: true
slice9 {
x: 4.0
y: 4.0
z: 4.0
w: 4.0
}
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: true template_node_child: true
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: true
material: ""
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size {
x: 480.0
y: 60.0
z: 0.0
w: 1.0
}
color {
x: 0.31
y: 0.318
z: 0.322
w: 1.0
}
type: TYPE_TEXT type: TYPE_TEXT
blend_mode: BLEND_MODE_ALPHA
text: "Placeholder"
font: "text_bold"
id: "rich_input_2/placeholder_text" id: "rich_input_2/placeholder_text"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
outline {
x: 0.4
y: 0.4
z: 0.4
w: 1.0
}
shadow {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
adjust_mode: ADJUST_MODE_FIT
line_break: false
parent: "rich_input_2/button" parent: "rich_input_2/button"
layer: ""
inherit_alpha: true
alpha: 1.0
outline_alpha: 0.0
shadow_alpha: 0.0
template_node_child: true template_node_child: true
text_leading: 1.0
text_tracking: 0.0
custom_type: 0
enabled: true
visible: true
material: ""
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size {
x: 480.0
y: 60.0
z: 0.0
w: 1.0
}
color {
x: 0.722
y: 0.741
z: 0.761
w: 1.0
}
type: TYPE_TEXT type: TYPE_TEXT
blend_mode: BLEND_MODE_ALPHA
text: "User input"
font: "text_bold"
id: "rich_input_2/input_text" id: "rich_input_2/input_text"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
outline {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
shadow {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
adjust_mode: ADJUST_MODE_FIT
line_break: false
parent: "rich_input_2/button" parent: "rich_input_2/button"
layer: ""
inherit_alpha: true
alpha: 1.0
outline_alpha: 0.0
shadow_alpha: 0.0
template_node_child: true template_node_child: true
text_leading: 1.0
text_tracking: 0.0
custom_type: 0
enabled: true
visible: true
material: ""
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size {
x: 16.0
y: 50.0
z: 0.0
w: 1.0
}
color {
x: 0.631
y: 0.843
z: 0.961
w: 1.0
}
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: "druid/ui_circle_16"
id: "rich_input_2/cursor_node" id: "rich_input_2/cursor_node"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
adjust_mode: ADJUST_MODE_FIT
parent: "rich_input_2/button" parent: "rich_input_2/button"
layer: ""
inherit_alpha: true
slice9 {
x: 8.0
y: 8.0
z: 8.0
w: 8.0
}
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 0.5
overridden_fields: 1 overridden_fields: 1
template_node_child: true template_node_child: true
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: true
material: ""
} }
nodes { nodes {
position {
x: 0.0
y: 4.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.2
y: 1.2
z: 1.0
w: 1.0
}
size {
x: 20.0
y: 40.0
z: 0.0
w: 1.0
}
color {
x: 0.722
y: 0.741
z: 0.761
w: 1.0
}
type: TYPE_TEXT type: TYPE_TEXT
blend_mode: BLEND_MODE_ALPHA
text: "|"
font: "text_bold"
id: "rich_input_2/cursor_text" id: "rich_input_2/cursor_text"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
outline {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
shadow {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
adjust_mode: ADJUST_MODE_FIT
line_break: false
parent: "rich_input_2/cursor_node" parent: "rich_input_2/cursor_node"
layer: ""
inherit_alpha: false
alpha: 1.0
outline_alpha: 0.0
shadow_alpha: 0.0
template_node_child: true template_node_child: true
text_leading: 1.0
text_tracking: 0.0
custom_type: 0
enabled: true
visible: true
material: ""
} }
material: "/builtins/materials/gui.material" material: "/builtins/materials/gui.material"
adjust_reference: ADJUST_REFERENCE_PARENT adjust_reference: ADJUST_REFERENCE_PARENT
max_nodes: 512

View File

@@ -3,8 +3,8 @@ fonts {
font: "/example/assets/fonts/text_bold.font" font: "/example/assets/fonts/text_bold.font"
} }
textures { textures {
name: "druid" name: "druid_example"
texture: "/example/assets/druid.atlas" texture: "/example/assets/druid_example.atlas"
} }
nodes { nodes {
size { size {

View File

@@ -3,8 +3,8 @@ fonts {
font: "/example/assets/fonts/text_bold.font" font: "/example/assets/fonts/text_bold.font"
} }
textures { textures {
name: "druid" name: "druid_example"
texture: "/example/assets/druid.atlas" texture: "/example/assets/druid_example.atlas"
} }
nodes { nodes {
size { size {

View File

@@ -3,8 +3,8 @@ fonts {
font: "/example/assets/fonts/text_bold.font" font: "/example/assets/fonts/text_bold.font"
} }
textures { textures {
name: "druid" name: "druid_example"
texture: "/example/assets/druid.atlas" texture: "/example/assets/druid_example.atlas"
} }
nodes { nodes {
size { size {

View File

@@ -7,8 +7,8 @@ fonts {
font: "/example/assets/fonts/text_regular.font" font: "/example/assets/fonts/text_regular.font"
} }
textures { textures {
name: "druid" name: "druid_example"
texture: "/example/assets/druid.atlas" texture: "/example/assets/druid_example.atlas"
} }
nodes { nodes {
size { size {

View File

@@ -7,8 +7,8 @@ fonts {
font: "/example/assets/fonts/text_regular.font" font: "/example/assets/fonts/text_regular.font"
} }
textures { textures {
name: "druid" name: "druid_example"
texture: "/example/assets/druid.atlas" texture: "/example/assets/druid_example.atlas"
} }
textures { textures {
name: "druid_logo" name: "druid_logo"

View File

@@ -7,8 +7,8 @@ fonts {
font: "/example/assets/fonts/text_regular.font" font: "/example/assets/fonts/text_regular.font"
} }
textures { textures {
name: "druid" name: "druid_example"
texture: "/example/assets/druid.atlas" texture: "/example/assets/druid_example.atlas"
} }
nodes { nodes {
size { size {

View File

@@ -3,8 +3,8 @@ fonts {
font: "/example/assets/fonts/text_bold.font" font: "/example/assets/fonts/text_bold.font"
} }
textures { textures {
name: "druid" name: "druid_example"
texture: "/example/assets/druid.atlas" texture: "/example/assets/druid_example.atlas"
} }
nodes { nodes {
size { size {

View File

@@ -1,117 +1,40 @@
script: ""
fonts { fonts {
name: "text_bold" name: "text_bold"
font: "/example/assets/fonts/text_bold.font" font: "/example/assets/fonts/text_bold.font"
} }
textures { textures {
name: "druid" name: "druid_example"
texture: "/example/assets/druid.atlas" texture: "/example/assets/druid_example.atlas"
}
background_color {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size { size {
x: 1000.0 x: 1000.0
y: 1000.0 y: 1000.0
z: 0.0
w: 1.0
}
color {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
} }
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: "druid/empty" texture: "druid/empty"
id: "root" id: "root"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
adjust_mode: ADJUST_MODE_FIT
layer: ""
inherit_alpha: true inherit_alpha: true
slice9 {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
}
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: false
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: false visible: false
material: ""
} }
nodes { nodes {
position { position {
x: 0.0
y: 400.0 y: 400.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
} }
size { size {
x: 400.0 x: 400.0
y: 800.0 y: 800.0
z: 0.0
w: 1.0
} }
color { color {
x: 0.173 x: 0.173
y: 0.184 y: 0.184
z: 0.204 z: 0.204
w: 1.0
} }
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: "druid/ui_circle_32" texture: "druid/ui_circle_32"
id: "view" id: "view"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_N pivot: PIVOT_N
adjust_mode: ADJUST_MODE_FIT
parent: "root" parent: "root"
layer: ""
inherit_alpha: true inherit_alpha: true
slice9 { slice9 {
x: 16.0 x: 16.0
@@ -120,175 +43,48 @@ nodes {
w: 16.0 w: 16.0
} }
clipping_mode: CLIPPING_MODE_STENCIL clipping_mode: CLIPPING_MODE_STENCIL
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: false
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: true
material: ""
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size { size {
x: 400.0 x: 400.0
y: 800.0 y: 800.0
z: 0.0
w: 1.0
}
color {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
} }
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: "druid/empty" texture: "druid/empty"
id: "content" id: "content"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_N pivot: PIVOT_N
adjust_mode: ADJUST_MODE_FIT
parent: "view" parent: "view"
layer: ""
inherit_alpha: true inherit_alpha: true
slice9 {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
}
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: false
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: false visible: false
material: ""
} }
nodes { nodes {
position { position {
x: 0.0
y: -400.0 y: -400.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
} }
size { size {
x: 300.0 x: 300.0
y: 100.0 y: 100.0
z: 0.0
w: 1.0
}
color {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
} }
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: ""
id: "prefab" id: "prefab"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
adjust_mode: ADJUST_MODE_FIT
parent: "content" parent: "content"
layer: ""
inherit_alpha: true inherit_alpha: true
slice9 {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
}
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: false
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: false visible: false
material: ""
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size { size {
x: 300.0 x: 300.0
y: 90.0 y: 90.0
z: 0.0
w: 1.0
} }
color { color {
x: 0.631 x: 0.631
y: 0.843 y: 0.843
z: 0.961 z: 0.961
w: 1.0
} }
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: "druid/ui_circle_32" texture: "druid/ui_circle_32"
id: "panel" id: "panel"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
adjust_mode: ADJUST_MODE_FIT
parent: "prefab" parent: "prefab"
layer: ""
inherit_alpha: true inherit_alpha: true
slice9 { slice9 {
x: 16.0 x: 16.0
@@ -296,84 +92,35 @@ nodes {
z: 16.0 z: 16.0
w: 16.0 w: 16.0
} }
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: false
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: true
material: ""
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size { size {
x: 240.0 x: 240.0
y: 50.0 y: 50.0
z: 0.0
w: 1.0
} }
color { color {
x: 0.31 x: 0.31
y: 0.318 y: 0.318
z: 0.322 z: 0.322
w: 1.0
} }
type: TYPE_TEXT type: TYPE_TEXT
blend_mode: BLEND_MODE_ALPHA
text: "Grid Item 1" text: "Grid Item 1"
font: "text_bold" font: "text_bold"
id: "text" id: "text"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
outline { outline {
x: 1.0 x: 1.0
y: 1.0 y: 1.0
z: 1.0 z: 1.0
w: 1.0
} }
shadow { shadow {
x: 1.0 x: 1.0
y: 1.0 y: 1.0
z: 1.0 z: 1.0
w: 1.0
} }
adjust_mode: ADJUST_MODE_FIT
line_break: false
parent: "prefab" parent: "prefab"
layer: ""
inherit_alpha: true inherit_alpha: true
alpha: 1.0
outline_alpha: 0.0 outline_alpha: 0.0
shadow_alpha: 0.0 shadow_alpha: 0.0
template_node_child: false
text_leading: 1.0
text_tracking: 0.0
custom_type: 0
enabled: true
visible: true
material: ""
} }
material: "/builtins/materials/gui.material" material: "/builtins/materials/gui.material"
adjust_reference: ADJUST_REFERENCE_PARENT adjust_reference: ADJUST_REFERENCE_PARENT
max_nodes: 512

View File

@@ -2,7 +2,7 @@ local component = require("druid.component")
---@class scroll_bind_grid: druid.base_component ---@class scroll_bind_grid: druid.base_component
---@field scroll druid.scroll ---@field scroll druid.scroll
---@field grid druid.static_grid ---@field grid druid.grid
---@field text druid.text ---@field text druid.text
---@field druid druid_instance ---@field druid druid_instance
local M = component.create("scroll_bind_grid") local M = component.create("scroll_bind_grid")
@@ -19,7 +19,7 @@ function M:init(template, nodes)
gui.set_enabled(self.prefab, false) gui.set_enabled(self.prefab, false)
self.scroll = self.druid:new_scroll("view", "content") self.scroll = self.druid:new_scroll("view", "content")
self.grid = self.druid:new_static_grid("content", "prefab", 1) self.grid = self.druid:new_grid("content", "prefab", 1)
self.scroll:bind_grid(self.grid) self.scroll:bind_grid(self.grid)
for index = 1, 20 do for index = 1, 20 do

View File

@@ -1,117 +1,40 @@
script: ""
fonts { fonts {
name: "text_bold" name: "text_bold"
font: "/example/assets/fonts/text_bold.font" font: "/example/assets/fonts/text_bold.font"
} }
textures { textures {
name: "druid" name: "druid_example"
texture: "/example/assets/druid.atlas" texture: "/example/assets/druid_example.atlas"
}
background_color {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size { size {
x: 1000.0 x: 1000.0
y: 1000.0 y: 1000.0
z: 0.0
w: 1.0
}
color {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
} }
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: "druid/empty" texture: "druid/empty"
id: "root" id: "root"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
adjust_mode: ADJUST_MODE_FIT
layer: ""
inherit_alpha: true inherit_alpha: true
slice9 {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
}
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: false
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: false visible: false
material: ""
} }
nodes { nodes {
position { position {
x: -450.0 x: -450.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
} }
size { size {
x: 900.0 x: 900.0
y: 360.0 y: 360.0
z: 0.0
w: 1.0
} }
color { color {
x: 0.173 x: 0.173
y: 0.184 y: 0.184
z: 0.204 z: 0.204
w: 1.0
} }
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: "druid/ui_circle_32" texture: "druid/ui_circle_32"
id: "view" id: "view"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_W pivot: PIVOT_W
adjust_mode: ADJUST_MODE_FIT
parent: "root" parent: "root"
layer: ""
inherit_alpha: true inherit_alpha: true
slice9 { slice9 {
x: 16.0 x: 16.0
@@ -120,175 +43,48 @@ nodes {
w: 16.0 w: 16.0
} }
clipping_mode: CLIPPING_MODE_STENCIL clipping_mode: CLIPPING_MODE_STENCIL
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: false
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: true
material: ""
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size { size {
x: 900.0 x: 900.0
y: 360.0 y: 360.0
z: 0.0
w: 1.0
}
color {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
} }
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: "druid/empty" texture: "druid/empty"
id: "content" id: "content"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_W pivot: PIVOT_W
adjust_mode: ADJUST_MODE_FIT
parent: "view" parent: "view"
layer: ""
inherit_alpha: true inherit_alpha: true
slice9 {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
}
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: false
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: false visible: false
material: ""
} }
nodes { nodes {
position { position {
x: 450.0 x: 450.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
} }
size { size {
x: 200.0 x: 200.0
y: 270.0 y: 270.0
z: 0.0
w: 1.0
}
color {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
} }
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: ""
id: "prefab" id: "prefab"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
adjust_mode: ADJUST_MODE_FIT
parent: "content" parent: "content"
layer: ""
inherit_alpha: true inherit_alpha: true
slice9 {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
}
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: false
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: false visible: false
material: ""
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size { size {
x: 190.0 x: 190.0
y: 250.0 y: 250.0
z: 0.0
w: 1.0
} }
color { color {
x: 0.631 x: 0.631
y: 0.843 y: 0.843
z: 0.961 z: 0.961
w: 1.0
} }
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: "druid/ui_circle_32" texture: "druid/ui_circle_32"
id: "panel" id: "panel"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
adjust_mode: ADJUST_MODE_FIT
parent: "prefab" parent: "prefab"
layer: ""
inherit_alpha: true inherit_alpha: true
slice9 { slice9 {
x: 16.0 x: 16.0
@@ -296,84 +92,36 @@ nodes {
z: 16.0 z: 16.0
w: 16.0 w: 16.0
} }
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: false
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: true
material: ""
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size { size {
x: 150.0 x: 150.0
y: 50.0 y: 50.0
z: 0.0
w: 1.0
} }
color { color {
x: 0.31 x: 0.31
y: 0.318 y: 0.318
z: 0.322 z: 0.322
w: 1.0
} }
type: TYPE_TEXT type: TYPE_TEXT
blend_mode: BLEND_MODE_ALPHA
text: "Grid Item 1" text: "Grid Item 1"
font: "text_bold" font: "text_bold"
id: "text" id: "text"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
outline { outline {
x: 1.0 x: 1.0
y: 1.0 y: 1.0
z: 1.0 z: 1.0
w: 1.0
} }
shadow { shadow {
x: 1.0 x: 1.0
y: 1.0 y: 1.0
z: 1.0 z: 1.0
w: 1.0
} }
adjust_mode: ADJUST_MODE_FIT
line_break: true line_break: true
parent: "prefab" parent: "prefab"
layer: ""
inherit_alpha: true inherit_alpha: true
alpha: 1.0
outline_alpha: 0.0 outline_alpha: 0.0
shadow_alpha: 0.0 shadow_alpha: 0.0
template_node_child: false
text_leading: 1.0
text_tracking: 0.0
custom_type: 0
enabled: true
visible: true
material: ""
} }
material: "/builtins/materials/gui.material" material: "/builtins/materials/gui.material"
adjust_reference: ADJUST_REFERENCE_PARENT adjust_reference: ADJUST_REFERENCE_PARENT
max_nodes: 512

View File

@@ -2,7 +2,7 @@ local component = require("druid.component")
---@class scroll_bind_grid_horizontal: druid.base_component ---@class scroll_bind_grid_horizontal: druid.base_component
---@field scroll druid.scroll ---@field scroll druid.scroll
---@field grid druid.static_grid ---@field grid druid.grid
---@field text druid.text ---@field text druid.text
---@field druid druid_instance ---@field druid druid_instance
local M = component.create("scroll_bind_grid_horizontal") local M = component.create("scroll_bind_grid_horizontal")
@@ -19,7 +19,7 @@ function M:init(template, nodes)
gui.set_enabled(self.prefab, false) gui.set_enabled(self.prefab, false)
self.scroll = self.druid:new_scroll("view", "content") self.scroll = self.druid:new_scroll("view", "content")
self.grid = self.druid:new_static_grid("content", "prefab", 99999) self.grid = self.druid:new_grid("content", "prefab", 99999)
self.scroll:bind_grid(self.grid) self.scroll:bind_grid(self.grid)
for index = 1, 30 do for index = 1, 30 do

View File

@@ -3,8 +3,8 @@ fonts {
font: "/example/assets/fonts/text_bold.font" font: "/example/assets/fonts/text_bold.font"
} }
textures { textures {
name: "druid" name: "druid_example"
texture: "/example/assets/druid.atlas" texture: "/example/assets/druid_example.atlas"
} }
nodes { nodes {
size { size {

View File

@@ -2,7 +2,7 @@ local component = require("druid.component")
---@class scroll_bind_grid_points: druid.base_component ---@class scroll_bind_grid_points: druid.base_component
---@field scroll druid.scroll ---@field scroll druid.scroll
---@field grid druid.static_grid ---@field grid druid.grid
---@field text druid.text ---@field text druid.text
---@field druid druid_instance ---@field druid druid_instance
local M = component.create("scroll_bind_grid_points") local M = component.create("scroll_bind_grid_points")
@@ -19,7 +19,7 @@ function M:init(template, nodes)
gui.set_enabled(self.prefab, false) gui.set_enabled(self.prefab, false)
self.scroll = self.druid:new_scroll("view", "content") self.scroll = self.druid:new_scroll("view", "content")
self.grid = self.druid:new_static_grid("content", "prefab", 1) self.grid = self.druid:new_grid("content", "prefab", 1)
self.scroll:bind_grid(self.grid) self.scroll:bind_grid(self.grid)
for index = 1, 20 do for index = 1, 20 do

File diff suppressed because it is too large Load Diff

View File

@@ -1,58 +1,24 @@
script: ""
fonts { fonts {
name: "text_bold" name: "text_bold"
font: "/example/assets/fonts/text_bold.font" font: "/example/assets/fonts/text_bold.font"
} }
textures { textures {
name: "druid" name: "druid_example"
texture: "/example/assets/druid.atlas" texture: "/example/assets/druid_example.atlas"
}
background_color {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size { size {
x: 1000.0 x: 1000.0
y: 1000.0 y: 1000.0
z: 0.0
w: 1.0
} }
color { color {
x: 0.173 x: 0.173
y: 0.184 y: 0.184
z: 0.204 z: 0.204
w: 1.0
} }
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: "druid/ui_circle_64" texture: "druid/ui_circle_64"
id: "root" id: "root"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
adjust_mode: ADJUST_MODE_FIT
layer: ""
inherit_alpha: true inherit_alpha: true
slice9 { slice9 {
x: 32.0 x: 32.0
@@ -60,303 +26,63 @@ nodes {
z: 32.0 z: 32.0
w: 32.0 w: 32.0
} }
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: false
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: true
material: ""
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size {
x: 200.0
y: 100.0
z: 0.0
w: 1.0
}
color {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
type: TYPE_TEMPLATE type: TYPE_TEMPLATE
id: "slider" id: "slider"
parent: "root" parent: "root"
layer: ""
inherit_alpha: true inherit_alpha: true
alpha: 1.0
template: "/example/templates/slider.gui" template: "/example/templates/slider.gui"
template_node_child: false
custom_type: 0
enabled: true
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size {
x: 260.0
y: 40.0
z: 0.0
w: 1.0
}
color {
x: 0.129
y: 0.141
z: 0.157
w: 1.0
}
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: "druid/empty"
id: "slider/root" id: "slider/root"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
adjust_mode: ADJUST_MODE_FIT
parent: "slider" parent: "slider"
layer: ""
inherit_alpha: true
slice9 {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
}
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: true template_node_child: true
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: true
material: ""
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size {
x: 260.0
y: 8.0
z: 0.0
w: 1.0
}
color {
x: 0.129
y: 0.141
z: 0.157
w: 1.0
}
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: "druid/ui_circle_8"
id: "slider/slider_back" id: "slider/slider_back"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
adjust_mode: ADJUST_MODE_FIT
parent: "slider/root" parent: "slider/root"
layer: ""
inherit_alpha: true
slice9 {
x: 4.0
y: 4.0
z: 4.0
w: 4.0
}
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: true template_node_child: true
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: true
material: ""
} }
nodes { nodes {
position {
x: -118.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size {
x: 24.0
y: 24.0
z: 0.0
w: 1.0
}
color {
x: 0.722
y: 0.741
z: 0.761
w: 1.0
}
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: "druid/ui_circle_8"
id: "slider/slider_pin" id: "slider/slider_pin"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
adjust_mode: ADJUST_MODE_FIT
parent: "slider/root" parent: "slider/root"
layer: ""
inherit_alpha: true
slice9 {
x: 4.0
y: 4.0
z: 4.0
w: 4.0
}
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: true template_node_child: true
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: true
material: ""
} }
nodes { nodes {
position { position {
x: 0.0
y: 50.0 y: 50.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
} }
size { size {
x: 150.0 x: 150.0
y: 50.0 y: 50.0
z: 0.0
w: 1.0
} }
color { color {
x: 0.722 x: 0.722
y: 0.741 y: 0.741
z: 0.761 z: 0.761
w: 1.0
} }
type: TYPE_TEXT type: TYPE_TEXT
blend_mode: BLEND_MODE_ALPHA
text: "0 %" text: "0 %"
font: "text_bold" font: "text_bold"
id: "slider_value" id: "slider_value"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
outline { outline {
x: 1.0 x: 1.0
y: 1.0 y: 1.0
z: 1.0 z: 1.0
w: 1.0
} }
shadow { shadow {
x: 1.0 x: 1.0
y: 1.0 y: 1.0
z: 1.0 z: 1.0
w: 1.0
} }
adjust_mode: ADJUST_MODE_FIT
line_break: false
parent: "root" parent: "root"
layer: ""
inherit_alpha: true inherit_alpha: true
alpha: 1.0
outline_alpha: 0.0 outline_alpha: 0.0
shadow_alpha: 0.0 shadow_alpha: 0.0
template_node_child: false
text_leading: 1.0
text_tracking: 0.0
custom_type: 0
enabled: true
visible: true
material: ""
} }
material: "/builtins/materials/gui.material" material: "/builtins/materials/gui.material"
adjust_reference: ADJUST_REFERENCE_PARENT adjust_reference: ADJUST_REFERENCE_PARENT
max_nodes: 512

View File

@@ -1,58 +1,24 @@
script: ""
fonts { fonts {
name: "text_bold" name: "text_bold"
font: "/example/assets/fonts/text_bold.font" font: "/example/assets/fonts/text_bold.font"
} }
textures { textures {
name: "druid" name: "druid_example"
texture: "/example/assets/druid.atlas" texture: "/example/assets/druid_example.atlas"
}
background_color {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size { size {
x: 1000.0 x: 1000.0
y: 1000.0 y: 1000.0
z: 0.0
w: 1.0
} }
color { color {
x: 0.173 x: 0.173
y: 0.184 y: 0.184
z: 0.204 z: 0.204
w: 1.0
} }
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: "druid/ui_circle_64" texture: "druid/ui_circle_64"
id: "root" id: "root"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
adjust_mode: ADJUST_MODE_FIT
layer: ""
inherit_alpha: true inherit_alpha: true
slice9 { slice9 {
x: 32.0 x: 32.0
@@ -60,303 +26,63 @@ nodes {
z: 32.0 z: 32.0
w: 32.0 w: 32.0
} }
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: false
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: true
material: ""
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size {
x: 200.0
y: 100.0
z: 0.0
w: 1.0
}
color {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
type: TYPE_TEMPLATE type: TYPE_TEMPLATE
id: "slider" id: "slider"
parent: "root" parent: "root"
layer: ""
inherit_alpha: true inherit_alpha: true
alpha: 1.0
template: "/example/templates/slider.gui" template: "/example/templates/slider.gui"
template_node_child: false
custom_type: 0
enabled: true
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size {
x: 260.0
y: 40.0
z: 0.0
w: 1.0
}
color {
x: 0.129
y: 0.141
z: 0.157
w: 1.0
}
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: "druid/empty"
id: "slider/root" id: "slider/root"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
adjust_mode: ADJUST_MODE_FIT
parent: "slider" parent: "slider"
layer: ""
inherit_alpha: true
slice9 {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
}
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: true template_node_child: true
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: true
material: ""
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size {
x: 260.0
y: 8.0
z: 0.0
w: 1.0
}
color {
x: 0.129
y: 0.141
z: 0.157
w: 1.0
}
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: "druid/ui_circle_8"
id: "slider/slider_back" id: "slider/slider_back"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
adjust_mode: ADJUST_MODE_FIT
parent: "slider/root" parent: "slider/root"
layer: ""
inherit_alpha: true
slice9 {
x: 4.0
y: 4.0
z: 4.0
w: 4.0
}
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: true template_node_child: true
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: true
material: ""
} }
nodes { nodes {
position {
x: -118.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size {
x: 24.0
y: 24.0
z: 0.0
w: 1.0
}
color {
x: 0.722
y: 0.741
z: 0.761
w: 1.0
}
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: "druid/ui_circle_8"
id: "slider/slider_pin" id: "slider/slider_pin"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
adjust_mode: ADJUST_MODE_FIT
parent: "slider/root" parent: "slider/root"
layer: ""
inherit_alpha: true
slice9 {
x: 4.0
y: 4.0
z: 4.0
w: 4.0
}
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: true template_node_child: true
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: true
material: ""
} }
nodes { nodes {
position { position {
x: 0.0
y: 50.0 y: 50.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
} }
size { size {
x: 150.0 x: 150.0
y: 50.0 y: 50.0
z: 0.0
w: 1.0
} }
color { color {
x: 0.722 x: 0.722
y: 0.741 y: 0.741
z: 0.761 z: 0.761
w: 1.0
} }
type: TYPE_TEXT type: TYPE_TEXT
blend_mode: BLEND_MODE_ALPHA
text: "0 %" text: "0 %"
font: "text_bold" font: "text_bold"
id: "slider_value" id: "slider_value"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
outline { outline {
x: 1.0 x: 1.0
y: 1.0 y: 1.0
z: 1.0 z: 1.0
w: 1.0
} }
shadow { shadow {
x: 1.0 x: 1.0
y: 1.0 y: 1.0
z: 1.0 z: 1.0
w: 1.0
} }
adjust_mode: ADJUST_MODE_FIT
line_break: false
parent: "root" parent: "root"
layer: ""
inherit_alpha: true inherit_alpha: true
alpha: 1.0
outline_alpha: 0.0 outline_alpha: 0.0
shadow_alpha: 0.0 shadow_alpha: 0.0
template_node_child: false
text_leading: 1.0
text_tracking: 0.0
custom_type: 0
enabled: true
visible: true
material: ""
} }
material: "/builtins/materials/gui.material" material: "/builtins/materials/gui.material"
adjust_reference: ADJUST_REFERENCE_PARENT adjust_reference: ADJUST_REFERENCE_PARENT
max_nodes: 512

View File

@@ -3,8 +3,8 @@ fonts {
font: "/example/assets/fonts/text_bold.font" font: "/example/assets/fonts/text_bold.font"
} }
textures { textures {
name: "druid" name: "druid_example"
texture: "/example/assets/druid.atlas" texture: "/example/assets/druid_example.atlas"
} }
nodes { nodes {
size { size {

View File

@@ -1,58 +1,24 @@
script: ""
fonts { fonts {
name: "text_bold" name: "text_bold"
font: "/example/assets/fonts/text_bold.font" font: "/example/assets/fonts/text_bold.font"
} }
textures { textures {
name: "druid" name: "druid_example"
texture: "/example/assets/druid.atlas" texture: "/example/assets/druid_example.atlas"
}
background_color {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size { size {
x: 1000.0 x: 1000.0
y: 1000.0 y: 1000.0
z: 0.0
w: 1.0
} }
color { color {
x: 0.173 x: 0.173
y: 0.184 y: 0.184
z: 0.204 z: 0.204
w: 1.0
} }
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: "druid/ui_circle_64" texture: "druid/ui_circle_64"
id: "root" id: "root"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
adjust_mode: ADJUST_MODE_FIT
layer: ""
inherit_alpha: true inherit_alpha: true
slice9 { slice9 {
x: 32.0 x: 32.0
@@ -60,84 +26,35 @@ nodes {
z: 32.0 z: 32.0
w: 32.0 w: 32.0
} }
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: false
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: true
material: ""
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size { size {
x: 600.0 x: 600.0
y: 50.0 y: 50.0
z: 0.0
w: 1.0
} }
color { color {
x: 0.722 x: 0.722
y: 0.741 y: 0.741
z: 0.761 z: 0.761
w: 1.0
} }
type: TYPE_TEXT type: TYPE_TEXT
blend_mode: BLEND_MODE_ALPHA
text: "Swipe across area to action" text: "Swipe across area to action"
font: "text_bold" font: "text_bold"
id: "swipe_hint" id: "swipe_hint"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
outline { outline {
x: 1.0 x: 1.0
y: 1.0 y: 1.0
z: 1.0 z: 1.0
w: 1.0
} }
shadow { shadow {
x: 1.0 x: 1.0
y: 1.0 y: 1.0
z: 1.0 z: 1.0
w: 1.0
} }
adjust_mode: ADJUST_MODE_FIT
line_break: false
parent: "root" parent: "root"
layer: ""
inherit_alpha: true inherit_alpha: true
alpha: 1.0
outline_alpha: 0.0 outline_alpha: 0.0
shadow_alpha: 0.0 shadow_alpha: 0.0
template_node_child: false
text_leading: 1.0
text_tracking: 0.0
custom_type: 0
enabled: true
visible: true
material: ""
} }
material: "/builtins/materials/gui.material" material: "/builtins/materials/gui.material"
adjust_reference: ADJUST_REFERENCE_PARENT adjust_reference: ADJUST_REFERENCE_PARENT
max_nodes: 512

View File

@@ -1,117 +1,36 @@
script: ""
fonts { fonts {
name: "text_bold" name: "text_bold"
font: "/example/assets/fonts/text_bold.font" font: "/example/assets/fonts/text_bold.font"
} }
textures { textures {
name: "druid" name: "druid_example"
texture: "/example/assets/druid.atlas" texture: "/example/assets/druid_example.atlas"
}
background_color {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size { size {
x: 200.0 x: 200.0
y: 100.0 y: 100.0
z: 0.0
w: 1.0
}
color {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
} }
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: ""
id: "root" id: "root"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
adjust_mode: ADJUST_MODE_FIT
layer: ""
inherit_alpha: true inherit_alpha: true
slice9 {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
}
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: false
size_mode: SIZE_MODE_AUTO size_mode: SIZE_MODE_AUTO
custom_type: 0
enabled: true
visible: false visible: false
material: ""
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size { size {
x: 600.0 x: 600.0
y: 100.0 y: 100.0
z: 0.0
w: 1.0
} }
color { color {
x: 0.463 x: 0.463
y: 0.475 y: 0.475
z: 0.49 z: 0.49
w: 1.0
} }
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: "druid/ui_circle_32" texture: "druid/ui_circle_32"
id: "text_area" id: "text_area"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
adjust_mode: ADJUST_MODE_FIT
parent: "root" parent: "root"
layer: ""
inherit_alpha: true inherit_alpha: true
slice9 { slice9 {
x: 16.0 x: 16.0
@@ -119,84 +38,34 @@ nodes {
z: 16.0 z: 16.0
w: 16.0 w: 16.0
} }
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: false
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: true
material: ""
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size { size {
x: 600.0 x: 600.0
y: 100.0 y: 100.0
z: 0.0
w: 1.0
} }
color { color {
x: 0.941 x: 0.941
y: 0.984 y: 0.984
z: 1.0
w: 1.0
} }
type: TYPE_TEXT type: TYPE_TEXT
blend_mode: BLEND_MODE_ALPHA
text: "Example text with default adjust" text: "Example text with default adjust"
font: "text_bold" font: "text_bold"
id: "text" id: "text"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
outline { outline {
x: 1.0 x: 1.0
y: 1.0 y: 1.0
z: 1.0 z: 1.0
w: 1.0
} }
shadow { shadow {
x: 1.0 x: 1.0
y: 1.0 y: 1.0
z: 1.0 z: 1.0
w: 1.0
} }
adjust_mode: ADJUST_MODE_FIT
line_break: false
parent: "text_area" parent: "text_area"
layer: ""
inherit_alpha: true inherit_alpha: true
alpha: 1.0
outline_alpha: 0.0 outline_alpha: 0.0
shadow_alpha: 0.0 shadow_alpha: 0.0
template_node_child: false
text_leading: 1.0
text_tracking: 0.0
custom_type: 0
enabled: true
visible: true
material: ""
} }
material: "/builtins/materials/gui.material" material: "/builtins/materials/gui.material"
adjust_reference: ADJUST_REFERENCE_PARENT adjust_reference: ADJUST_REFERENCE_PARENT
max_nodes: 512

View File

@@ -1,117 +1,36 @@
script: ""
fonts { fonts {
name: "text_bold" name: "text_bold"
font: "/example/assets/fonts/text_bold.font" font: "/example/assets/fonts/text_bold.font"
} }
textures { textures {
name: "druid" name: "druid_example"
texture: "/example/assets/druid.atlas" texture: "/example/assets/druid_example.atlas"
}
background_color {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size { size {
x: 200.0 x: 200.0
y: 100.0 y: 100.0
z: 0.0
w: 1.0
}
color {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
} }
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: ""
id: "root" id: "root"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
adjust_mode: ADJUST_MODE_FIT
layer: ""
inherit_alpha: true inherit_alpha: true
slice9 {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
}
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: false
size_mode: SIZE_MODE_AUTO size_mode: SIZE_MODE_AUTO
custom_type: 0
enabled: true
visible: false visible: false
material: ""
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size { size {
x: 600.0 x: 600.0
y: 100.0 y: 100.0
z: 0.0
w: 1.0
} }
color { color {
x: 0.463 x: 0.463
y: 0.475 y: 0.475
z: 0.49 z: 0.49
w: 1.0
} }
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: "druid/ui_circle_32" texture: "druid/ui_circle_32"
id: "text_area" id: "text_area"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
adjust_mode: ADJUST_MODE_FIT
parent: "root" parent: "root"
layer: ""
inherit_alpha: true inherit_alpha: true
slice9 { slice9 {
x: 16.0 x: 16.0
@@ -119,84 +38,35 @@ nodes {
z: 16.0 z: 16.0
w: 16.0 w: 16.0
} }
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: false
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: true
material: ""
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size { size {
x: 600.0 x: 600.0
y: 100.0 y: 100.0
z: 0.0
w: 1.0
} }
color { color {
x: 0.941 x: 0.941
y: 0.984 y: 0.984
z: 1.0
w: 1.0
} }
type: TYPE_TEXT type: TYPE_TEXT
blend_mode: BLEND_MODE_ALPHA
text: "Example multiline text with default adjust" text: "Example multiline text with default adjust"
font: "text_bold" font: "text_bold"
id: "text" id: "text"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
outline { outline {
x: 1.0 x: 1.0
y: 1.0 y: 1.0
z: 1.0 z: 1.0
w: 1.0
} }
shadow { shadow {
x: 1.0 x: 1.0
y: 1.0 y: 1.0
z: 1.0 z: 1.0
w: 1.0
} }
adjust_mode: ADJUST_MODE_FIT
line_break: true line_break: true
parent: "text_area" parent: "text_area"
layer: ""
inherit_alpha: true inherit_alpha: true
alpha: 1.0
outline_alpha: 0.0 outline_alpha: 0.0
shadow_alpha: 0.0 shadow_alpha: 0.0
template_node_child: false
text_leading: 1.0
text_tracking: 0.0
custom_type: 0
enabled: true
visible: true
material: ""
} }
material: "/builtins/materials/gui.material" material: "/builtins/materials/gui.material"
adjust_reference: ADJUST_REFERENCE_PARENT adjust_reference: ADJUST_REFERENCE_PARENT
max_nodes: 512

View File

@@ -1,294 +1,81 @@
script: ""
fonts { fonts {
name: "text_bold" name: "text_bold"
font: "/example/assets/fonts/text_bold.font" font: "/example/assets/fonts/text_bold.font"
} }
textures { textures {
name: "druid" name: "druid_example"
texture: "/example/assets/druid.atlas" texture: "/example/assets/druid_example.atlas"
}
background_color {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size {
x: 200.0
y: 100.0
z: 0.0
w: 1.0
}
color {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: "druid/empty" texture: "druid/empty"
id: "root" id: "root"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
adjust_mode: ADJUST_MODE_FIT
layer: ""
inherit_alpha: true inherit_alpha: true
slice9 {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
}
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: false
size_mode: SIZE_MODE_AUTO size_mode: SIZE_MODE_AUTO
custom_type: 0
enabled: true
visible: false visible: false
material: ""
} }
nodes { nodes {
position { position {
x: 0.0
y: 350.0 y: 350.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
} }
size { size {
x: 350.0 x: 350.0
y: 700.0 y: 700.0
z: 0.0
w: 1.0
} }
color { color {
x: 0.173 x: 0.173
y: 0.184 y: 0.184
z: 0.204 z: 0.204
w: 1.0
} }
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: "druid/pixel" texture: "druid/pixel"
id: "view" id: "view"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_N pivot: PIVOT_N
adjust_mode: ADJUST_MODE_FIT
parent: "root" parent: "root"
layer: ""
inherit_alpha: true inherit_alpha: true
slice9 {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
}
clipping_mode: CLIPPING_MODE_STENCIL clipping_mode: CLIPPING_MODE_STENCIL
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: false
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: true
material: ""
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size { size {
x: 350.0 x: 350.0
y: 700.0 y: 700.0
z: 0.0
w: 1.0
}
color {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
} }
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: "druid/empty" texture: "druid/empty"
id: "content" id: "content"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_N pivot: PIVOT_N
adjust_mode: ADJUST_MODE_FIT
parent: "view" parent: "view"
layer: ""
inherit_alpha: true inherit_alpha: true
slice9 {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
}
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: false
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: false visible: false
material: ""
} }
nodes { nodes {
position { position {
x: 0.0
y: -400.0 y: -400.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
} }
size { size {
x: 300.0 x: 300.0
y: 100.0 y: 100.0
z: 0.0
w: 1.0
}
color {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
} }
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: ""
id: "prefab" id: "prefab"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
adjust_mode: ADJUST_MODE_FIT
parent: "content" parent: "content"
layer: ""
inherit_alpha: true inherit_alpha: true
slice9 {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
}
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: false
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: false visible: false
material: ""
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size { size {
x: 300.0 x: 300.0
y: 90.0 y: 90.0
z: 0.0
w: 1.0
} }
color { color {
x: 0.631 x: 0.631
y: 0.843 y: 0.843
z: 0.961 z: 0.961
w: 1.0
} }
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: "druid/ui_circle_32" texture: "druid/ui_circle_32"
id: "panel" id: "panel"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
adjust_mode: ADJUST_MODE_FIT
parent: "prefab" parent: "prefab"
layer: ""
inherit_alpha: true inherit_alpha: true
slice9 { slice9 {
x: 16.0 x: 16.0
@@ -296,84 +83,35 @@ nodes {
z: 16.0 z: 16.0
w: 16.0 w: 16.0
} }
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: false
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: true
material: ""
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size { size {
x: 250.0 x: 250.0
y: 50.0 y: 50.0
z: 0.0
w: 1.0
} }
color { color {
x: 0.31 x: 0.31
y: 0.318 y: 0.318
z: 0.322 z: 0.322
w: 1.0
} }
type: TYPE_TEXT type: TYPE_TEXT
blend_mode: BLEND_MODE_ALPHA
text: "Data Item 1" text: "Data Item 1"
font: "text_bold" font: "text_bold"
id: "text" id: "text"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
outline { outline {
x: 1.0 x: 1.0
y: 1.0 y: 1.0
z: 1.0 z: 1.0
w: 1.0
} }
shadow { shadow {
x: 1.0 x: 1.0
y: 1.0 y: 1.0
z: 1.0 z: 1.0
w: 1.0
} }
adjust_mode: ADJUST_MODE_FIT
line_break: false
parent: "prefab" parent: "prefab"
layer: ""
inherit_alpha: true inherit_alpha: true
alpha: 1.0
outline_alpha: 0.0 outline_alpha: 0.0
shadow_alpha: 0.0 shadow_alpha: 0.0
template_node_child: false
text_leading: 1.0
text_tracking: 0.0
custom_type: 0
enabled: true
visible: true
material: ""
} }
material: "/builtins/materials/gui.material" material: "/builtins/materials/gui.material"
adjust_reference: ADJUST_REFERENCE_PARENT adjust_reference: ADJUST_REFERENCE_PARENT
max_nodes: 512

View File

@@ -17,7 +17,7 @@ function M:init(template, nodes)
gui.set_enabled(self.prefab, false) gui.set_enabled(self.prefab, false)
self.scroll = self.druid:new_scroll("view", "content") self.scroll = self.druid:new_scroll("view", "content")
self.grid = self.druid:new_static_grid("content", self.prefab, 1) self.grid = self.druid:new_grid("content", self.prefab, 1)
self.data_list = self.druid:new(data_list, self.scroll, self.grid, self.create_item_callback) --[[@as druid.data_list]] self.data_list = self.druid:new(data_list, self.scroll, self.grid, self.create_item_callback) --[[@as druid.data_list]]
local data = {} local data = {}

View File

@@ -1,294 +1,81 @@
script: ""
fonts { fonts {
name: "text_bold" name: "text_bold"
font: "/example/assets/fonts/text_bold.font" font: "/example/assets/fonts/text_bold.font"
} }
textures { textures {
name: "druid" name: "druid_example"
texture: "/example/assets/druid.atlas" texture: "/example/assets/druid_example.atlas"
}
background_color {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size {
x: 200.0
y: 100.0
z: 0.0
w: 1.0
}
color {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: "druid/empty" texture: "druid/empty"
id: "root" id: "root"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
adjust_mode: ADJUST_MODE_FIT
layer: ""
inherit_alpha: true inherit_alpha: true
slice9 {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
}
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: false
size_mode: SIZE_MODE_AUTO size_mode: SIZE_MODE_AUTO
custom_type: 0
enabled: true
visible: false visible: false
material: ""
} }
nodes { nodes {
position { position {
x: 0.0
y: 350.0 y: 350.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
} }
size { size {
x: 350.0 x: 350.0
y: 700.0 y: 700.0
z: 0.0
w: 1.0
} }
color { color {
x: 0.173 x: 0.173
y: 0.184 y: 0.184
z: 0.204 z: 0.204
w: 1.0
} }
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: "druid/pixel" texture: "druid/pixel"
id: "view" id: "view"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_N pivot: PIVOT_N
adjust_mode: ADJUST_MODE_FIT
parent: "root" parent: "root"
layer: ""
inherit_alpha: true inherit_alpha: true
slice9 {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
}
clipping_mode: CLIPPING_MODE_STENCIL clipping_mode: CLIPPING_MODE_STENCIL
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: false
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: true
material: ""
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size { size {
x: 350.0 x: 350.0
y: 700.0 y: 700.0
z: 0.0
w: 1.0
}
color {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
} }
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: "druid/empty" texture: "druid/empty"
id: "content" id: "content"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_N pivot: PIVOT_N
adjust_mode: ADJUST_MODE_FIT
parent: "view" parent: "view"
layer: ""
inherit_alpha: true inherit_alpha: true
slice9 {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
}
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: false
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: false visible: false
material: ""
} }
nodes { nodes {
position { position {
x: 0.0
y: -400.0 y: -400.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
} }
size { size {
x: 300.0 x: 300.0
y: 100.0 y: 100.0
z: 0.0
w: 1.0
}
color {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
} }
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: ""
id: "prefab" id: "prefab"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
adjust_mode: ADJUST_MODE_FIT
parent: "content" parent: "content"
layer: ""
inherit_alpha: true inherit_alpha: true
slice9 {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
}
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: false
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: false visible: false
material: ""
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size { size {
x: 300.0 x: 300.0
y: 90.0 y: 90.0
z: 0.0
w: 1.0
} }
color { color {
x: 0.631 x: 0.631
y: 0.843 y: 0.843
z: 0.961 z: 0.961
w: 1.0
} }
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: "druid/ui_circle_32" texture: "druid/ui_circle_32"
id: "panel" id: "panel"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
adjust_mode: ADJUST_MODE_FIT
parent: "prefab" parent: "prefab"
layer: ""
inherit_alpha: true inherit_alpha: true
slice9 { slice9 {
x: 16.0 x: 16.0
@@ -296,84 +83,35 @@ nodes {
z: 16.0 z: 16.0
w: 16.0 w: 16.0
} }
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: false
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: true
material: ""
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size { size {
x: 250.0 x: 250.0
y: 50.0 y: 50.0
z: 0.0
w: 1.0
} }
color { color {
x: 0.31 x: 0.31
y: 0.318 y: 0.318
z: 0.322 z: 0.322
w: 1.0
} }
type: TYPE_TEXT type: TYPE_TEXT
blend_mode: BLEND_MODE_ALPHA
text: "Data Item 1" text: "Data Item 1"
font: "text_bold" font: "text_bold"
id: "text" id: "text"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
outline { outline {
x: 1.0 x: 1.0
y: 1.0 y: 1.0
z: 1.0 z: 1.0
w: 1.0
} }
shadow { shadow {
x: 1.0 x: 1.0
y: 1.0 y: 1.0
z: 1.0 z: 1.0
w: 1.0
} }
adjust_mode: ADJUST_MODE_FIT
line_break: false
parent: "prefab" parent: "prefab"
layer: ""
inherit_alpha: true inherit_alpha: true
alpha: 1.0
outline_alpha: 0.0 outline_alpha: 0.0
shadow_alpha: 0.0 shadow_alpha: 0.0
template_node_child: false
text_leading: 1.0
text_tracking: 0.0
custom_type: 0
enabled: true
visible: true
material: ""
} }
material: "/builtins/materials/gui.material" material: "/builtins/materials/gui.material"
adjust_reference: ADJUST_REFERENCE_PARENT adjust_reference: ADJUST_REFERENCE_PARENT
max_nodes: 512

View File

@@ -16,7 +16,7 @@ function M:init(template, nodes)
gui.set_enabled(self.prefab, false) gui.set_enabled(self.prefab, false)
self.scroll = self.druid:new_scroll("view", "content") self.scroll = self.druid:new_scroll("view", "content")
self.grid = self.druid:new_static_grid("content", self.prefab, 1) self.grid = self.druid:new_grid("content", self.prefab, 1)
self.data_list = self.druid:new(data_list, self.scroll, self.grid, self.create_item_callback) --[[@as druid.data_list]] self.data_list = self.druid:new(data_list, self.scroll, self.grid, self.create_item_callback) --[[@as druid.data_list]]
local data = {} local data = {}

View File

@@ -1,294 +1,81 @@
script: ""
fonts { fonts {
name: "text_bold" name: "text_bold"
font: "/example/assets/fonts/text_bold.font" font: "/example/assets/fonts/text_bold.font"
} }
textures { textures {
name: "druid" name: "druid_example"
texture: "/example/assets/druid.atlas" texture: "/example/assets/druid_example.atlas"
}
background_color {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size {
x: 200.0
y: 100.0
z: 0.0
w: 1.0
}
color {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: "druid/empty" texture: "druid/empty"
id: "root" id: "root"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
adjust_mode: ADJUST_MODE_FIT
layer: ""
inherit_alpha: true inherit_alpha: true
slice9 {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
}
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: false
size_mode: SIZE_MODE_AUTO size_mode: SIZE_MODE_AUTO
custom_type: 0
enabled: true
visible: false visible: false
material: ""
} }
nodes { nodes {
position { position {
x: -450.0 x: -450.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
} }
size { size {
x: 900.0 x: 900.0
y: 350.0 y: 350.0
z: 0.0
w: 1.0
} }
color { color {
x: 0.173 x: 0.173
y: 0.184 y: 0.184
z: 0.204 z: 0.204
w: 1.0
} }
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: "druid/pixel" texture: "druid/pixel"
id: "view" id: "view"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_W pivot: PIVOT_W
adjust_mode: ADJUST_MODE_FIT
parent: "root" parent: "root"
layer: ""
inherit_alpha: true inherit_alpha: true
slice9 {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
}
clipping_mode: CLIPPING_MODE_STENCIL clipping_mode: CLIPPING_MODE_STENCIL
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: false
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: true
material: ""
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size { size {
x: 900.0 x: 900.0
y: 350.0 y: 350.0
z: 0.0
w: 1.0
}
color {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
} }
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: "druid/empty" texture: "druid/empty"
id: "content" id: "content"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_W pivot: PIVOT_W
adjust_mode: ADJUST_MODE_FIT
parent: "view" parent: "view"
layer: ""
inherit_alpha: true inherit_alpha: true
slice9 {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
}
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: false
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: false visible: false
material: ""
} }
nodes { nodes {
position { position {
x: 450.0 x: 450.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
} }
size { size {
x: 200.0 x: 200.0
y: 270.0 y: 270.0
z: 0.0
w: 1.0
}
color {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
} }
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: ""
id: "prefab" id: "prefab"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
adjust_mode: ADJUST_MODE_FIT
parent: "content" parent: "content"
layer: ""
inherit_alpha: true inherit_alpha: true
slice9 {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
}
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: false
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: false visible: false
material: ""
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size { size {
x: 190.0 x: 190.0
y: 250.0 y: 250.0
z: 0.0
w: 1.0
} }
color { color {
x: 0.631 x: 0.631
y: 0.843 y: 0.843
z: 0.961 z: 0.961
w: 1.0
} }
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: "druid/ui_circle_32" texture: "druid/ui_circle_32"
id: "panel" id: "panel"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
adjust_mode: ADJUST_MODE_FIT
parent: "prefab" parent: "prefab"
layer: ""
inherit_alpha: true inherit_alpha: true
slice9 { slice9 {
x: 16.0 x: 16.0
@@ -296,84 +83,36 @@ nodes {
z: 16.0 z: 16.0
w: 16.0 w: 16.0
} }
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: false
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: true
material: ""
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size { size {
x: 150.0 x: 150.0
y: 200.0 y: 200.0
z: 0.0
w: 1.0
} }
color { color {
x: 0.31 x: 0.31
y: 0.318 y: 0.318
z: 0.322 z: 0.322
w: 1.0
} }
type: TYPE_TEXT type: TYPE_TEXT
blend_mode: BLEND_MODE_ALPHA
text: "Data Item 1" text: "Data Item 1"
font: "text_bold" font: "text_bold"
id: "text" id: "text"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
outline { outline {
x: 1.0 x: 1.0
y: 1.0 y: 1.0
z: 1.0 z: 1.0
w: 1.0
} }
shadow { shadow {
x: 1.0 x: 1.0
y: 1.0 y: 1.0
z: 1.0 z: 1.0
w: 1.0
} }
adjust_mode: ADJUST_MODE_FIT
line_break: true line_break: true
parent: "prefab" parent: "prefab"
layer: ""
inherit_alpha: true inherit_alpha: true
alpha: 1.0
outline_alpha: 0.0 outline_alpha: 0.0
shadow_alpha: 0.0 shadow_alpha: 0.0
template_node_child: false
text_leading: 1.0
text_tracking: 0.0
custom_type: 0
enabled: true
visible: true
material: ""
} }
material: "/builtins/materials/gui.material" material: "/builtins/materials/gui.material"
adjust_reference: ADJUST_REFERENCE_PARENT adjust_reference: ADJUST_REFERENCE_PARENT
max_nodes: 512

View File

@@ -15,7 +15,7 @@ function M:init(template, nodes)
gui.set_enabled(self.prefab, false) gui.set_enabled(self.prefab, false)
self.scroll = self.druid:new_scroll("view", "content") self.scroll = self.druid:new_scroll("view", "content")
self.grid = self.druid:new_static_grid("content", self.prefab, 1000) self.grid = self.druid:new_grid("content", self.prefab, 1000)
self.data_list = self.druid:new(data_list, self.scroll, self.grid, self.create_item_callback) --[[@as druid.data_list]] self.data_list = self.druid:new(data_list, self.scroll, self.grid, self.create_item_callback) --[[@as druid.data_list]]
local data = {} local data = {}

View File

@@ -1,117 +1,35 @@
script: ""
fonts { fonts {
name: "text_bold" name: "text_bold"
font: "/example/assets/fonts/text_bold.font" font: "/example/assets/fonts/text_bold.font"
} }
textures { textures {
name: "druid" name: "druid_example"
texture: "/example/assets/druid.atlas" texture: "/example/assets/druid_example.atlas"
}
background_color {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size { size {
x: 300.0 x: 300.0
y: 100.0 y: 100.0
z: 0.0
w: 1.0
}
color {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
} }
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: ""
id: "root" id: "root"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
adjust_mode: ADJUST_MODE_FIT
layer: ""
inherit_alpha: true inherit_alpha: true
slice9 {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
}
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: false
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: false visible: false
material: ""
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size { size {
x: 300.0 x: 300.0
y: 90.0 y: 90.0
z: 0.0
w: 1.0
} }
color { color {
x: 0.631 x: 0.631
y: 0.843 y: 0.843
z: 0.961 z: 0.961
w: 1.0
} }
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: "druid/ui_circle_32" texture: "druid/ui_circle_32"
id: "panel" id: "panel"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
adjust_mode: ADJUST_MODE_FIT
parent: "root" parent: "root"
layer: ""
inherit_alpha: true inherit_alpha: true
slice9 { slice9 {
x: 16.0 x: 16.0
@@ -119,84 +37,35 @@ nodes {
z: 16.0 z: 16.0
w: 16.0 w: 16.0
} }
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: false
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: true
material: ""
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size { size {
x: 250.0 x: 250.0
y: 50.0 y: 50.0
z: 0.0
w: 1.0
} }
color { color {
x: 0.31 x: 0.31
y: 0.318 y: 0.318
z: 0.322 z: 0.322
w: 1.0
} }
type: TYPE_TEXT type: TYPE_TEXT
blend_mode: BLEND_MODE_ALPHA
text: "Data Item 1" text: "Data Item 1"
font: "text_bold" font: "text_bold"
id: "text" id: "text"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
outline { outline {
x: 1.0 x: 1.0
y: 1.0 y: 1.0
z: 1.0 z: 1.0
w: 1.0
} }
shadow { shadow {
x: 1.0 x: 1.0
y: 1.0 y: 1.0
z: 1.0 z: 1.0
w: 1.0
} }
adjust_mode: ADJUST_MODE_FIT
line_break: false
parent: "root" parent: "root"
layer: ""
inherit_alpha: true inherit_alpha: true
alpha: 1.0
outline_alpha: 0.0 outline_alpha: 0.0
shadow_alpha: 0.0 shadow_alpha: 0.0
template_node_child: false
text_leading: 1.0
text_tracking: 0.0
custom_type: 0
enabled: true
visible: true
material: ""
} }
material: "/builtins/materials/gui.material" material: "/builtins/materials/gui.material"
adjust_reference: ADJUST_REFERENCE_PARENT adjust_reference: ADJUST_REFERENCE_PARENT
max_nodes: 512

View File

@@ -1,421 +1,80 @@
script: ""
fonts { fonts {
name: "text_bold" name: "text_bold"
font: "/example/assets/fonts/text_bold.font" font: "/example/assets/fonts/text_bold.font"
} }
textures { textures {
name: "druid" name: "druid_example"
texture: "/example/assets/druid.atlas" texture: "/example/assets/druid_example.atlas"
}
background_color {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size {
x: 200.0
y: 100.0
z: 0.0
w: 1.0
}
color {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: "druid/empty" texture: "druid/empty"
id: "root" id: "root"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
adjust_mode: ADJUST_MODE_FIT
layer: ""
inherit_alpha: true inherit_alpha: true
slice9 {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
}
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: false
size_mode: SIZE_MODE_AUTO size_mode: SIZE_MODE_AUTO
custom_type: 0
enabled: true
visible: false visible: false
material: ""
} }
nodes { nodes {
position { position {
x: 0.0
y: 350.0 y: 350.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
} }
size { size {
x: 350.0 x: 350.0
y: 700.0 y: 700.0
z: 0.0
w: 1.0
} }
color { color {
x: 0.173 x: 0.173
y: 0.184 y: 0.184
z: 0.204 z: 0.204
w: 1.0
} }
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: "druid/pixel" texture: "druid/pixel"
id: "view" id: "view"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_N pivot: PIVOT_N
adjust_mode: ADJUST_MODE_FIT
parent: "root" parent: "root"
layer: ""
inherit_alpha: true inherit_alpha: true
slice9 {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
}
clipping_mode: CLIPPING_MODE_STENCIL clipping_mode: CLIPPING_MODE_STENCIL
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: false
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: true
material: ""
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size { size {
x: 350.0 x: 350.0
y: 700.0 y: 700.0
z: 0.0
w: 1.0
}
color {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
} }
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: "druid/empty" texture: "druid/empty"
id: "content" id: "content"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_N pivot: PIVOT_N
adjust_mode: ADJUST_MODE_FIT
parent: "view" parent: "view"
layer: ""
inherit_alpha: true inherit_alpha: true
slice9 {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
}
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: false
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: false visible: false
material: ""
} }
nodes { nodes {
position { position {
x: 0.0
y: -300.0 y: -300.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size {
x: 200.0
y: 100.0
z: 0.0
w: 1.0
}
color {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
} }
type: TYPE_TEMPLATE type: TYPE_TEMPLATE
id: "button_component" id: "button_component"
parent: "content" parent: "content"
layer: ""
inherit_alpha: true inherit_alpha: true
alpha: 1.0
template: "/example/examples/data_list/cache_with_component/button_component.gui" template: "/example/examples/data_list/cache_with_component/button_component.gui"
template_node_child: false
custom_type: 0
enabled: true
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size {
x: 300.0
y: 100.0
z: 0.0
w: 1.0
}
color {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: ""
id: "button_component/root" id: "button_component/root"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
adjust_mode: ADJUST_MODE_FIT
parent: "button_component" parent: "button_component"
layer: ""
inherit_alpha: true
slice9 {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
}
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: true template_node_child: true
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: false
material: ""
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size {
x: 300.0
y: 90.0
z: 0.0
w: 1.0
}
color {
x: 0.631
y: 0.843
z: 0.961
w: 1.0
}
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: "druid/ui_circle_32"
id: "button_component/panel" id: "button_component/panel"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
adjust_mode: ADJUST_MODE_FIT
parent: "button_component/root" parent: "button_component/root"
layer: ""
inherit_alpha: true
slice9 {
x: 16.0
y: 16.0
z: 16.0
w: 16.0
}
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: true template_node_child: true
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: true
material: ""
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size {
x: 250.0
y: 50.0
z: 0.0
w: 1.0
}
color {
x: 0.31
y: 0.318
z: 0.322
w: 1.0
}
type: TYPE_TEXT type: TYPE_TEXT
blend_mode: BLEND_MODE_ALPHA
text: "Data Item 1"
font: "text_bold"
id: "button_component/text" id: "button_component/text"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
outline {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
shadow {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
adjust_mode: ADJUST_MODE_FIT
line_break: false
parent: "button_component/root" parent: "button_component/root"
layer: ""
inherit_alpha: true
alpha: 1.0
outline_alpha: 0.0
shadow_alpha: 0.0
template_node_child: true template_node_child: true
text_leading: 1.0
text_tracking: 0.0
custom_type: 0
enabled: true
visible: true
material: ""
} }
material: "/builtins/materials/gui.material" material: "/builtins/materials/gui.material"
adjust_reference: ADJUST_REFERENCE_PARENT adjust_reference: ADJUST_REFERENCE_PARENT
max_nodes: 512

View File

@@ -18,7 +18,7 @@ function M:init(template, nodes)
gui.set_enabled(self.prefab, false) gui.set_enabled(self.prefab, false)
self.scroll = self.druid:new_scroll("view", "content") self.scroll = self.druid:new_scroll("view", "content")
self.grid = self.druid:new_static_grid("content", self.prefab, 1) self.grid = self.druid:new_grid("content", self.prefab, 1)
self.data_list = self.druid:new(data_list, self.scroll, self.grid, self.create_item_callback) --[[@as druid.data_list]] self.data_list = self.druid:new(data_list, self.scroll, self.grid, self.create_item_callback) --[[@as druid.data_list]]
self.data_list:set_use_cache(true) self.data_list:set_use_cache(true)
self.data_list.on_element_add:subscribe(self.on_element_add) self.data_list.on_element_add:subscribe(self.on_element_add)

View File

@@ -1,6 +1,6 @@
textures { textures {
name: "druid" name: "druid_example"
texture: "/example/assets/druid.atlas" texture: "/example/assets/druid_example.atlas"
} }
nodes { nodes {
size { size {

View File

@@ -1,58 +1,24 @@
script: ""
fonts { fonts {
name: "text_bold" name: "text_bold"
font: "/example/assets/fonts/text_bold.font" font: "/example/assets/fonts/text_bold.font"
} }
textures { textures {
name: "druid" name: "druid_example"
texture: "/example/assets/druid.atlas" texture: "/example/assets/druid_example.atlas"
}
background_color {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size { size {
x: 90.0 x: 90.0
y: 90.0 y: 90.0
z: 0.0
w: 1.0
} }
color { color {
x: 0.31 x: 0.31
y: 0.318 y: 0.318
z: 0.322 z: 0.322
w: 1.0
} }
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: "druid/ui_circle_32" texture: "druid/ui_circle_32"
id: "button" id: "button"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
adjust_mode: ADJUST_MODE_FIT
layer: ""
inherit_alpha: true inherit_alpha: true
slice9 { slice9 {
x: 16.0 x: 16.0
@@ -60,143 +26,50 @@ nodes {
z: 16.0 z: 16.0
w: 16.0 w: 16.0
} }
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: false
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: true
material: ""
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale { scale {
x: 1.5 x: 1.5
y: 1.5 y: 1.5
z: 1.0
w: 1.0
} }
size { size {
x: 40.0 x: 40.0
y: 40.0 y: 40.0
z: 0.0
w: 1.0
} }
color { color {
x: 0.941 x: 0.941
y: 0.984 y: 0.984
z: 1.0
w: 1.0
} }
type: TYPE_TEXT type: TYPE_TEXT
blend_mode: BLEND_MODE_ALPHA
text: "X" text: "X"
font: "text_bold" font: "text_bold"
id: "text" id: "text"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
outline { outline {
x: 1.0 x: 1.0
y: 1.0 y: 1.0
z: 1.0 z: 1.0
w: 1.0
} }
shadow { shadow {
x: 1.0 x: 1.0
y: 1.0 y: 1.0
z: 1.0 z: 1.0
w: 1.0
} }
adjust_mode: ADJUST_MODE_FIT
line_break: false
parent: "button" parent: "button"
layer: ""
inherit_alpha: true inherit_alpha: true
alpha: 1.0
outline_alpha: 0.0 outline_alpha: 0.0
shadow_alpha: 0.0 shadow_alpha: 0.0
template_node_child: false
text_leading: 1.0
text_tracking: 0.0
custom_type: 0
enabled: true
visible: true
material: ""
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size {
x: 200.0
y: 100.0
z: 0.0
w: 1.0
}
color { color {
x: 0.941 x: 0.941
y: 0.984 y: 0.984
z: 1.0
w: 1.0
} }
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: "druid/icon_arrow" texture: "druid/icon_arrow"
id: "icon" id: "icon"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
adjust_mode: ADJUST_MODE_FIT
parent: "button" parent: "button"
layer: ""
inherit_alpha: true inherit_alpha: true
slice9 {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
}
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: false
size_mode: SIZE_MODE_AUTO size_mode: SIZE_MODE_AUTO
custom_type: 0
enabled: true
visible: true
material: ""
} }
material: "/builtins/materials/gui.material" material: "/builtins/materials/gui.material"
adjust_reference: ADJUST_REFERENCE_PARENT adjust_reference: ADJUST_REFERENCE_PARENT
max_nodes: 512

View File

@@ -3,8 +3,8 @@ fonts {
font: "/example/assets/fonts/text_bold.font" font: "/example/assets/fonts/text_bold.font"
} }
textures { textures {
name: "druid" name: "druid_example"
texture: "/example/assets/druid.atlas" texture: "/example/assets/druid_example.atlas"
} }
nodes { nodes {
size { size {

View File

@@ -1,58 +1,24 @@
script: ""
fonts { fonts {
name: "text_bold" name: "text_bold"
font: "/example/assets/fonts/text_bold.font" font: "/example/assets/fonts/text_bold.font"
} }
textures { textures {
name: "druid" name: "druid_example"
texture: "/example/assets/druid.atlas" texture: "/example/assets/druid_example.atlas"
}
background_color {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size { size {
x: 180.0 x: 180.0
y: 90.0 y: 90.0
z: 0.0
w: 1.0
} }
color { color {
x: 0.31 x: 0.31
y: 0.318 y: 0.318
z: 0.322 z: 0.322
w: 1.0
} }
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: "druid/ui_circle_32" texture: "druid/ui_circle_32"
id: "button" id: "button"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
adjust_mode: ADJUST_MODE_FIT
layer: ""
inherit_alpha: true inherit_alpha: true
slice9 { slice9 {
x: 16.0 x: 16.0
@@ -60,58 +26,25 @@ nodes {
z: 16.0 z: 16.0
w: 16.0 w: 16.0
} }
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: false
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: true
material: ""
} }
nodes { nodes {
position { position {
x: -90.0 x: -90.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
} }
size { size {
x: 180.0 x: 180.0
y: 90.0 y: 90.0
z: 0.0
w: 1.0
} }
color { color {
x: 0.631 x: 0.631
y: 0.843 y: 0.843
z: 0.961 z: 0.961
w: 1.0
} }
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: "druid/ui_circle_32" texture: "druid/ui_circle_32"
id: "fill" id: "fill"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_W pivot: PIVOT_W
adjust_mode: ADJUST_MODE_FIT
parent: "button" parent: "button"
layer: ""
inherit_alpha: true inherit_alpha: true
slice9 { slice9 {
x: 16.0 x: 16.0
@@ -119,84 +52,38 @@ nodes {
z: 16.0 z: 16.0
w: 16.0 w: 16.0
} }
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: false
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: true
material: ""
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale { scale {
x: 1.5 x: 1.5
y: 1.5 y: 1.5
z: 1.0
w: 1.0
} }
size { size {
x: 40.0 x: 40.0
y: 40.0 y: 40.0
z: 0.0
w: 1.0
} }
color { color {
x: 0.941 x: 0.941
y: 0.984 y: 0.984
z: 1.0
w: 1.0
} }
type: TYPE_TEXT type: TYPE_TEXT
blend_mode: BLEND_MODE_ALPHA
text: "X" text: "X"
font: "text_bold" font: "text_bold"
id: "text" id: "text"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
outline { outline {
x: 1.0 x: 1.0
y: 1.0 y: 1.0
z: 1.0 z: 1.0
w: 1.0
} }
shadow { shadow {
x: 1.0 x: 1.0
y: 1.0 y: 1.0
z: 1.0 z: 1.0
w: 1.0
} }
adjust_mode: ADJUST_MODE_FIT
line_break: false
parent: "button" parent: "button"
layer: ""
inherit_alpha: true inherit_alpha: true
alpha: 1.0
outline_alpha: 0.0 outline_alpha: 0.0
shadow_alpha: 0.0 shadow_alpha: 0.0
template_node_child: false
text_leading: 1.0
text_tracking: 0.0
custom_type: 0
enabled: true
visible: true
material: ""
} }
material: "/builtins/materials/gui.material" material: "/builtins/materials/gui.material"
adjust_reference: ADJUST_REFERENCE_PARENT adjust_reference: ADJUST_REFERENCE_PARENT
max_nodes: 512

View File

@@ -1,6 +1,6 @@
textures { textures {
name: "druid" name: "druid_example"
texture: "/example/assets/druid.atlas" texture: "/example/assets/druid_example.atlas"
} }
nodes { nodes {
size { size {

View File

@@ -1,6 +1,6 @@
textures { textures {
name: "druid" name: "druid_example"
texture: "/example/assets/druid.atlas" texture: "/example/assets/druid_example.atlas"
} }
nodes { nodes {
size { size {

View File

@@ -7,8 +7,8 @@ fonts {
font: "/example/assets/fonts/text_regular.font" font: "/example/assets/fonts/text_regular.font"
} }
textures { textures {
name: "druid" name: "druid_example"
texture: "/example/assets/druid.atlas" texture: "/example/assets/druid_example.atlas"
} }
textures { textures {
name: "druid_logo" name: "druid_logo"

View File

@@ -1,54 +1,20 @@
script: ""
textures { textures {
name: "druid" name: "druid_example"
texture: "/example/assets/druid.atlas" texture: "/example/assets/druid_example.atlas"
}
background_color {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size { size {
x: 500.0 x: 500.0
y: 500.0 y: 500.0
z: 0.0
w: 1.0
} }
color { color {
x: 0.173 x: 0.173
y: 0.184 y: 0.184
z: 0.204 z: 0.204
w: 1.0
} }
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: "druid/ui_circle_64" texture: "druid/ui_circle_64"
id: "root" id: "root"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
adjust_mode: ADJUST_MODE_FIT
layer: ""
inherit_alpha: true inherit_alpha: true
slice9 { slice9 {
x: 32.0 x: 32.0
@@ -56,117 +22,33 @@ nodes {
z: 32.0 z: 32.0
w: 32.0 w: 32.0
} }
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: false
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: true
material: ""
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size { size {
x: 500.0 x: 500.0
y: 500.0 y: 500.0
z: 0.0
w: 1.0
}
color {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
} }
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: "druid/empty" texture: "druid/empty"
id: "layout" id: "layout"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
adjust_mode: ADJUST_MODE_FIT
parent: "root" parent: "root"
layer: ""
inherit_alpha: true inherit_alpha: true
slice9 {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
}
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: false
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: false visible: false
material: ""
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size { size {
x: 70.0 x: 70.0
y: 40.0 y: 40.0
z: 0.0
w: 1.0
} }
color { color {
x: 0.631 x: 0.631
y: 0.843 y: 0.843
z: 0.961 z: 0.961
w: 1.0
} }
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: "druid/ui_circle_16" texture: "druid/ui_circle_16"
id: "prefab" id: "prefab"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
adjust_mode: ADJUST_MODE_FIT
parent: "layout" parent: "layout"
layer: ""
inherit_alpha: true inherit_alpha: true
slice9 { slice9 {
x: 8.0 x: 8.0
@@ -174,17 +56,6 @@ nodes {
z: 8.0 z: 8.0
w: 8.0 w: 8.0
} }
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: false
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: true
material: ""
} }
material: "/builtins/materials/gui.material" material: "/builtins/materials/gui.material"
adjust_reference: ADJUST_REFERENCE_PARENT adjust_reference: ADJUST_REFERENCE_PARENT
max_nodes: 512

View File

@@ -7,8 +7,8 @@ textures {
texture: "/example/examples/panthera/animation_blend/assets/animation_blend.atlas" texture: "/example/examples/panthera/animation_blend/assets/animation_blend.atlas"
} }
textures { textures {
name: "druid" name: "druid_example"
texture: "/example/assets/druid.atlas" texture: "/example/assets/druid_example.atlas"
} }
nodes { nodes {
size { size {

View File

@@ -1,241 +1,38 @@
script: ""
textures { textures {
name: "druid" name: "druid_example"
texture: "/example/assets/druid.atlas" texture: "/example/assets/druid_example.atlas"
}
background_color {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size { size {
x: 200.0 x: 200.0
y: 100.0 y: 100.0
z: 0.0
w: 1.0
}
color {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
} }
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: ""
id: "root" id: "root"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
adjust_mode: ADJUST_MODE_FIT
layer: ""
inherit_alpha: true inherit_alpha: true
slice9 {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
}
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: false
size_mode: SIZE_MODE_AUTO size_mode: SIZE_MODE_AUTO
custom_type: 0
enabled: true
visible: false visible: false
material: ""
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size {
x: 200.0
y: 100.0
z: 0.0
w: 1.0
}
color {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
type: TYPE_TEMPLATE type: TYPE_TEMPLATE
id: "button" id: "button"
parent: "root" parent: "root"
layer: ""
inherit_alpha: true inherit_alpha: true
alpha: 1.0
template: "/example/templates/button_text_blue.gui" template: "/example/templates/button_text_blue.gui"
template_node_child: false
custom_type: 0
enabled: true
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size {
x: 280.0
y: 90.0
z: 0.0
w: 1.0
}
color {
x: 0.631
y: 0.843
z: 0.961
w: 1.0
}
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: "druid/ui_circle_32"
id: "button/root" id: "button/root"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
adjust_mode: ADJUST_MODE_FIT
parent: "button" parent: "button"
layer: "druid"
inherit_alpha: true
slice9 {
x: 16.0
y: 16.0
z: 16.0
w: 16.0
}
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: true template_node_child: true
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: true
material: ""
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size {
x: 245.0
y: 50.0
z: 0.0
w: 1.0
}
color {
x: 0.31
y: 0.318
z: 0.322
w: 1.0
}
type: TYPE_TEXT type: TYPE_TEXT
blend_mode: BLEND_MODE_ALPHA
text: "Hover Me!" text: "Hover Me!"
font: "text_bold"
id: "button/text" id: "button/text"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
outline {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
shadow {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
adjust_mode: ADJUST_MODE_FIT
line_break: false
parent: "button/root" parent: "button/root"
layer: "text_bold"
inherit_alpha: true
alpha: 1.0
outline_alpha: 0.0
shadow_alpha: 0.0
overridden_fields: 8 overridden_fields: 8
template_node_child: true template_node_child: true
text_leading: 1.0
text_tracking: 0.0
custom_type: 0
enabled: true
visible: true
material: ""
} }
material: "/builtins/materials/gui.material" material: "/builtins/materials/gui.material"
adjust_reference: ADJUST_REFERENCE_PARENT adjust_reference: ADJUST_REFERENCE_PARENT
max_nodes: 512

View File

@@ -53,6 +53,14 @@ function M.get_examples()
end) end)
end, end,
}, },
{
name_id = "ui_example_widget_memory_panel",
information_text_id = "ui_example_widget_memory_panel_description",
template = "example_memory_panel",
root = "example_memory_panel/root",
code_url = "example/examples/widgets/memory_panel/example_memory_panel.lua",
component_class = require("example.examples.widgets.memory_panel.example_memory_panel"),
},
} }
end end

View File

@@ -3,8 +3,8 @@ fonts {
font: "/example/assets/fonts/text_regular.font" font: "/example/assets/fonts/text_regular.font"
} }
textures { textures {
name: "druid" name: "druid_example"
texture: "/example/assets/druid.atlas" texture: "/example/assets/druid_example.atlas"
} }
nodes { nodes {
size { size {

View File

@@ -1,6 +1,6 @@
textures { textures {
name: "druid" name: "druid_example"
texture: "/example/assets/druid.atlas" texture: "/example/assets/druid_example.atlas"
} }
nodes { nodes {
size { size {

View File

@@ -0,0 +1,98 @@
nodes {
type: TYPE_TEMPLATE
id: "memory_panel"
inherit_alpha: true
template: "/druid/widget/memory_panel/memory_panel.gui"
}
nodes {
type: TYPE_BOX
id: "memory_panel/root"
parent: "memory_panel"
template_node_child: true
}
nodes {
type: TYPE_TEMPLATE
id: "memory_panel/mini_graph"
parent: "memory_panel/root"
template_node_child: true
}
nodes {
type: TYPE_BOX
id: "memory_panel/mini_graph/root"
parent: "memory_panel/mini_graph"
template_node_child: true
}
nodes {
type: TYPE_BOX
id: "memory_panel/mini_graph/header"
parent: "memory_panel/mini_graph/root"
template_node_child: true
}
nodes {
type: TYPE_TEXT
id: "memory_panel/mini_graph/text_header"
parent: "memory_panel/mini_graph/header"
template_node_child: true
}
nodes {
type: TYPE_BOX
id: "memory_panel/mini_graph/icon_drag"
parent: "memory_panel/mini_graph/header"
template_node_child: true
}
nodes {
type: TYPE_BOX
id: "memory_panel/mini_graph/content"
parent: "memory_panel/mini_graph/root"
template_node_child: true
}
nodes {
type: TYPE_BOX
id: "memory_panel/mini_graph/prefab_line"
parent: "memory_panel/mini_graph/content"
template_node_child: true
}
nodes {
type: TYPE_BOX
id: "memory_panel/mini_graph/color_low"
parent: "memory_panel/mini_graph/content"
template_node_child: true
}
nodes {
type: TYPE_BOX
id: "memory_panel/content"
parent: "memory_panel/root"
template_node_child: true
}
nodes {
type: TYPE_TEXT
id: "memory_panel/text_max_value"
parent: "memory_panel/content"
template_node_child: true
}
nodes {
type: TYPE_TEXT
id: "memory_panel/text_per_second"
parent: "memory_panel/content"
template_node_child: true
}
nodes {
type: TYPE_BOX
id: "memory_panel/line_second_1"
parent: "memory_panel/content"
template_node_child: true
}
nodes {
type: TYPE_BOX
id: "memory_panel/line_second_2"
parent: "memory_panel/content"
template_node_child: true
}
nodes {
type: TYPE_TEXT
id: "memory_panel/text_memory"
parent: "memory_panel/content"
template_node_child: true
}
material: "/builtins/materials/gui.material"
adjust_reference: ADJUST_REFERENCE_PARENT

View File

@@ -0,0 +1,12 @@
local memory_panel = require("druid.widget.memory_panel.memory_panel")
---@class widget.example_memory_panel: druid.widget
local M = {}
function M:init()
self.memory_panel = self.druid:new_widget(memory_panel, "memory_panel")
end
return M

View File

@@ -4,55 +4,22 @@ fonts {
font: "/example/assets/fonts/text_bold.font" font: "/example/assets/fonts/text_bold.font"
} }
textures { textures {
name: "druid" name: "druid_example"
texture: "/example/assets/druid.atlas" texture: "/example/assets/druid_example.atlas"
}
background_color {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
} }
nodes { nodes {
position { position {
x: 960.0 x: 960.0
y: 540.0 y: 540.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
} }
size { size {
x: 700.0 x: 700.0
y: 500.0 y: 500.0
z: 0.0
w: 1.0
}
color {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
} }
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: "druid/empty" texture: "druid/empty"
id: "root" id: "root"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
adjust_mode: ADJUST_MODE_STRETCH adjust_mode: ADJUST_MODE_STRETCH
layer: ""
inherit_alpha: true inherit_alpha: true
slice9 { slice9 {
x: 16.0 x: 16.0
@@ -60,58 +27,22 @@ nodes {
z: 16.0 z: 16.0
w: 16.0 w: 16.0
} }
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: false
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: false visible: false
material: ""
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size { size {
x: 700.0 x: 700.0
y: 500.0 y: 500.0
z: 0.0
w: 1.0
} }
color { color {
x: 0.31 x: 0.31
y: 0.318 y: 0.318
z: 0.322 z: 0.322
w: 1.0
} }
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: "druid/ui_circle_32" texture: "druid/ui_circle_32"
id: "window" id: "window"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
adjust_mode: ADJUST_MODE_FIT
parent: "root" parent: "root"
layer: ""
inherit_alpha: true inherit_alpha: true
slice9 { slice9 {
x: 16.0 x: 16.0
@@ -119,58 +50,25 @@ nodes {
z: 16.0 z: 16.0
w: 16.0 w: 16.0
} }
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: false
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: true
material: ""
} }
nodes { nodes {
position { position {
x: 0.0
y: 250.0 y: 250.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
} }
size { size {
x: 700.0 x: 700.0
y: 92.0 y: 92.0
z: 0.0
w: 1.0
} }
color { color {
x: 0.902 x: 0.902
y: 0.875 y: 0.875
z: 0.624 z: 0.624
w: 1.0
} }
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: "druid/ui_rounded_top_32" texture: "druid/ui_rounded_top_32"
id: "panel_header" id: "panel_header"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_N pivot: PIVOT_N
adjust_mode: ADJUST_MODE_FIT
parent: "window" parent: "window"
layer: ""
inherit_alpha: true inherit_alpha: true
slice9 { slice9 {
x: 16.0 x: 16.0
@@ -178,663 +76,166 @@ nodes {
z: 16.0 z: 16.0
w: 16.0 w: 16.0
} }
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: false
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: true
material: ""
} }
nodes { nodes {
position { position {
x: 0.0
y: -46.0 y: -46.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
} }
scale { scale {
x: 1.5 x: 1.5
y: 1.5 y: 1.5
z: 1.0
w: 1.0
} }
size { size {
x: 300.0 x: 300.0
y: 50.0 y: 50.0
z: 0.0
w: 1.0
} }
color { color {
x: 0.31 x: 0.31
y: 0.318 y: 0.318
z: 0.322 z: 0.322
w: 1.0
} }
type: TYPE_TEXT type: TYPE_TEXT
blend_mode: BLEND_MODE_ALPHA
text: "Confirmation" text: "Confirmation"
font: "text_bold" font: "text_bold"
id: "text_header" id: "text_header"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
outline { outline {
x: 1.0 x: 1.0
y: 1.0 y: 1.0
z: 1.0 z: 1.0
w: 1.0
} }
shadow { shadow {
x: 1.0 x: 1.0
y: 1.0 y: 1.0
z: 1.0 z: 1.0
w: 1.0
} }
adjust_mode: ADJUST_MODE_FIT
line_break: false
parent: "panel_header" parent: "panel_header"
layer: ""
inherit_alpha: true inherit_alpha: true
alpha: 1.0
outline_alpha: 0.0 outline_alpha: 0.0
shadow_alpha: 0.0 shadow_alpha: 0.0
template_node_child: false
text_leading: 1.0
text_tracking: 0.0
custom_type: 0
enabled: true
visible: true
material: ""
} }
nodes { nodes {
position { position {
x: 300.0 x: 300.0
y: -46.0 y: -46.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
} }
size { size {
x: 100.0 x: 100.0
y: 100.0 y: 100.0
z: 0.0
w: 1.0
}
color {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
} }
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: ""
id: "button_close" id: "button_close"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
adjust_mode: ADJUST_MODE_FIT
parent: "panel_header" parent: "panel_header"
layer: ""
inherit_alpha: true inherit_alpha: true
slice9 {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
}
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: false
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: false visible: false
material: ""
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size {
x: 200.0
y: 100.0
z: 0.0
w: 1.0
}
color { color {
x: 0.31 x: 0.31
y: 0.318 y: 0.318
z: 0.322 z: 0.322
w: 1.0
} }
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: "druid/icon_cross" texture: "druid/icon_cross"
id: "icon_close" id: "icon_close"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
adjust_mode: ADJUST_MODE_FIT
parent: "button_close" parent: "button_close"
layer: ""
inherit_alpha: true inherit_alpha: true
slice9 {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
}
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: false
size_mode: SIZE_MODE_AUTO size_mode: SIZE_MODE_AUTO
custom_type: 0
enabled: true
visible: true
material: ""
} }
nodes { nodes {
position { position {
x: 0.0
y: -45.0 y: -45.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
} }
size { size {
x: 700.0 x: 700.0
y: 400.0 y: 400.0
z: 0.0
w: 1.0
}
color {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
} }
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: ""
id: "content" id: "content"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
adjust_mode: ADJUST_MODE_FIT
parent: "root" parent: "root"
layer: ""
inherit_alpha: true inherit_alpha: true
slice9 {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
}
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: false
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: false visible: false
material: ""
} }
nodes { nodes {
position { position {
x: 0.0
y: 75.0 y: 75.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
} }
scale { scale {
x: 1.5 x: 1.5
y: 1.5 y: 1.5
z: 1.0
w: 1.0
} }
size { size {
x: 420.0 x: 420.0
y: 140.0 y: 140.0
z: 0.0
w: 1.0
} }
color { color {
x: 0.941 x: 0.941
y: 0.984 y: 0.984
z: 1.0
w: 1.0
} }
type: TYPE_TEXT type: TYPE_TEXT
blend_mode: BLEND_MODE_ALPHA
text: "Do you agree with selected action?" text: "Do you agree with selected action?"
font: "text_bold" font: "text_bold"
id: "text" id: "text"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
outline { outline {
x: 1.0 x: 1.0
y: 1.0 y: 1.0
z: 1.0 z: 1.0
w: 1.0
} }
shadow { shadow {
x: 1.0 x: 1.0
y: 1.0 y: 1.0
z: 1.0 z: 1.0
w: 1.0
} }
adjust_mode: ADJUST_MODE_FIT
line_break: true line_break: true
parent: "content" parent: "content"
layer: ""
inherit_alpha: true inherit_alpha: true
alpha: 1.0
outline_alpha: 0.0 outline_alpha: 0.0
shadow_alpha: 0.0 shadow_alpha: 0.0
template_node_child: false
text_leading: 1.0
text_tracking: 0.0
custom_type: 0
enabled: true
visible: true
material: ""
} }
nodes { nodes {
position { position {
x: -160.0 x: -160.0
y: -100.0 y: -100.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size {
x: 200.0
y: 100.0
z: 0.0
w: 1.0
}
color {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
} }
type: TYPE_TEMPLATE type: TYPE_TEMPLATE
id: "button_accept" id: "button_accept"
parent: "content" parent: "content"
layer: ""
inherit_alpha: true inherit_alpha: true
alpha: 1.0
template: "/example/templates/button_text_green.gui" template: "/example/templates/button_text_green.gui"
template_node_child: false
custom_type: 0
enabled: true
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size {
x: 280.0
y: 90.0
z: 0.0
w: 1.0
}
color {
x: 0.557
y: 0.835
z: 0.62
w: 1.0
}
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: "druid/ui_circle_32"
id: "button_accept/root" id: "button_accept/root"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
adjust_mode: ADJUST_MODE_FIT
parent: "button_accept" parent: "button_accept"
layer: "druid"
inherit_alpha: true
slice9 {
x: 16.0
y: 16.0
z: 16.0
w: 16.0
}
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: true template_node_child: true
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: true
material: ""
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size {
x: 245.0
y: 50.0
z: 0.0
w: 1.0
}
color {
x: 0.31
y: 0.318
z: 0.322
w: 1.0
}
type: TYPE_TEXT type: TYPE_TEXT
blend_mode: BLEND_MODE_ALPHA
text: "Confirm"
font: "text_bold"
id: "button_accept/text" id: "button_accept/text"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
outline {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
shadow {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
adjust_mode: ADJUST_MODE_FIT
line_break: false
parent: "button_accept/root" parent: "button_accept/root"
layer: "text_bold"
inherit_alpha: true
alpha: 1.0
outline_alpha: 0.0
shadow_alpha: 0.0
template_node_child: true template_node_child: true
text_leading: 1.0
text_tracking: 0.0
custom_type: 0
enabled: true
visible: true
material: ""
} }
nodes { nodes {
position { position {
x: 160.0 x: 160.0
y: -100.0 y: -100.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size {
x: 200.0
y: 100.0
z: 0.0
w: 1.0
}
color {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
} }
type: TYPE_TEMPLATE type: TYPE_TEMPLATE
id: "button_decline" id: "button_decline"
parent: "content" parent: "content"
layer: ""
inherit_alpha: true inherit_alpha: true
alpha: 1.0
template: "/example/templates/button_text_red.gui" template: "/example/templates/button_text_red.gui"
template_node_child: false
custom_type: 0
enabled: true
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size {
x: 280.0
y: 90.0
z: 0.0
w: 1.0
}
color {
x: 0.957
y: 0.608
z: 0.608
w: 1.0
}
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: "druid/ui_circle_32"
id: "button_decline/root" id: "button_decline/root"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
adjust_mode: ADJUST_MODE_FIT
parent: "button_decline" parent: "button_decline"
layer: "druid"
inherit_alpha: true
slice9 {
x: 16.0
y: 16.0
z: 16.0
w: 16.0
}
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: true template_node_child: true
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: true
material: ""
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size {
x: 245.0
y: 50.0
z: 0.0
w: 1.0
}
color {
x: 0.31
y: 0.318
z: 0.322
w: 1.0
}
type: TYPE_TEXT type: TYPE_TEXT
blend_mode: BLEND_MODE_ALPHA
text: "Cancel"
font: "text_bold"
id: "button_decline/text" id: "button_decline/text"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
outline {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
shadow {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
adjust_mode: ADJUST_MODE_FIT
line_break: false
parent: "button_decline/root" parent: "button_decline/root"
layer: "text_bold"
inherit_alpha: true
alpha: 1.0
outline_alpha: 0.0
shadow_alpha: 0.0
template_node_child: true template_node_child: true
text_leading: 1.0
text_tracking: 0.0
custom_type: 0
enabled: true
visible: true
material: ""
} }
layers { layers {
name: "druid" name: "druid"
@@ -844,4 +245,3 @@ layers {
} }
material: "/builtins/materials/gui.material" material: "/builtins/materials/gui.material"
adjust_reference: ADJUST_REFERENCE_PARENT adjust_reference: ADJUST_REFERENCE_PARENT
max_nodes: 512

View File

@@ -4,55 +4,22 @@ fonts {
font: "/example/assets/fonts/text_bold.font" font: "/example/assets/fonts/text_bold.font"
} }
textures { textures {
name: "druid" name: "druid_example"
texture: "/example/assets/druid.atlas" texture: "/example/assets/druid_example.atlas"
}
background_color {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
} }
nodes { nodes {
position { position {
x: 960.0 x: 960.0
y: 540.0 y: 540.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
} }
size { size {
x: 700.0 x: 700.0
y: 500.0 y: 500.0
z: 0.0
w: 1.0
}
color {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
} }
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: "druid/empty" texture: "druid/empty"
id: "root" id: "root"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
adjust_mode: ADJUST_MODE_STRETCH adjust_mode: ADJUST_MODE_STRETCH
layer: ""
inherit_alpha: true inherit_alpha: true
slice9 { slice9 {
x: 16.0 x: 16.0
@@ -60,58 +27,22 @@ nodes {
z: 16.0 z: 16.0
w: 16.0 w: 16.0
} }
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: false
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: false visible: false
material: ""
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size { size {
x: 700.0 x: 700.0
y: 500.0 y: 500.0
z: 0.0
w: 1.0
} }
color { color {
x: 0.31 x: 0.31
y: 0.318 y: 0.318
z: 0.322 z: 0.322
w: 1.0
} }
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: "druid/ui_circle_32" texture: "druid/ui_circle_32"
id: "window" id: "window"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
adjust_mode: ADJUST_MODE_FIT
parent: "root" parent: "root"
layer: ""
inherit_alpha: true inherit_alpha: true
slice9 { slice9 {
x: 16.0 x: 16.0
@@ -119,58 +50,25 @@ nodes {
z: 16.0 z: 16.0
w: 16.0 w: 16.0
} }
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: false
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: true
material: ""
} }
nodes { nodes {
position { position {
x: 0.0
y: 250.0 y: 250.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
} }
size { size {
x: 700.0 x: 700.0
y: 92.0 y: 92.0
z: 0.0
w: 1.0
} }
color { color {
x: 0.631 x: 0.631
y: 0.843 y: 0.843
z: 0.961 z: 0.961
w: 1.0
} }
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: "druid/ui_rounded_top_32" texture: "druid/ui_rounded_top_32"
id: "panel_header" id: "panel_header"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_N pivot: PIVOT_N
adjust_mode: ADJUST_MODE_FIT
parent: "window" parent: "window"
layer: ""
inherit_alpha: true inherit_alpha: true
slice9 { slice9 {
x: 16.0 x: 16.0
@@ -178,495 +76,142 @@ nodes {
z: 16.0 z: 16.0
w: 16.0 w: 16.0
} }
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: false
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: true
material: ""
} }
nodes { nodes {
position { position {
x: 0.0
y: -46.0 y: -46.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
} }
scale { scale {
x: 1.5 x: 1.5
y: 1.5 y: 1.5
z: 1.0
w: 1.0
} }
size { size {
x: 300.0 x: 300.0
y: 50.0 y: 50.0
z: 0.0
w: 1.0
} }
color { color {
x: 0.31 x: 0.31
y: 0.318 y: 0.318
z: 0.322 z: 0.322
w: 1.0
} }
type: TYPE_TEXT type: TYPE_TEXT
blend_mode: BLEND_MODE_ALPHA
text: "Information" text: "Information"
font: "text_bold" font: "text_bold"
id: "text_header" id: "text_header"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
outline { outline {
x: 1.0 x: 1.0
y: 1.0 y: 1.0
z: 1.0 z: 1.0
w: 1.0
} }
shadow { shadow {
x: 1.0 x: 1.0
y: 1.0 y: 1.0
z: 1.0 z: 1.0
w: 1.0
} }
adjust_mode: ADJUST_MODE_FIT
line_break: false
parent: "panel_header" parent: "panel_header"
layer: ""
inherit_alpha: true inherit_alpha: true
alpha: 1.0
outline_alpha: 0.0 outline_alpha: 0.0
shadow_alpha: 0.0 shadow_alpha: 0.0
template_node_child: false
text_leading: 1.0
text_tracking: 0.0
custom_type: 0
enabled: true
visible: true
material: ""
} }
nodes { nodes {
position { position {
x: 300.0 x: 300.0
y: -46.0 y: -46.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
} }
size { size {
x: 100.0 x: 100.0
y: 100.0 y: 100.0
z: 0.0
w: 1.0
}
color {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
} }
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: ""
id: "button_close" id: "button_close"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
adjust_mode: ADJUST_MODE_FIT
parent: "panel_header" parent: "panel_header"
layer: ""
inherit_alpha: true inherit_alpha: true
slice9 {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
}
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: false
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: false visible: false
material: ""
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size {
x: 200.0
y: 100.0
z: 0.0
w: 1.0
}
color { color {
x: 0.31 x: 0.31
y: 0.318 y: 0.318
z: 0.322 z: 0.322
w: 1.0
} }
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: "druid/icon_cross" texture: "druid/icon_cross"
id: "icon_close" id: "icon_close"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
adjust_mode: ADJUST_MODE_FIT
parent: "button_close" parent: "button_close"
layer: ""
inherit_alpha: true inherit_alpha: true
slice9 {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
}
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: false
size_mode: SIZE_MODE_AUTO size_mode: SIZE_MODE_AUTO
custom_type: 0
enabled: true
visible: true
material: ""
} }
nodes { nodes {
position { position {
x: 0.0
y: -45.0 y: -45.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
} }
size { size {
x: 700.0 x: 700.0
y: 400.0 y: 400.0
z: 0.0
w: 1.0
}
color {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
} }
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: ""
id: "content" id: "content"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
adjust_mode: ADJUST_MODE_FIT
parent: "root" parent: "root"
layer: ""
inherit_alpha: true inherit_alpha: true
slice9 {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
}
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: false
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: false visible: false
material: ""
} }
nodes { nodes {
position { position {
x: 0.0
y: 75.0 y: 75.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
} }
scale { scale {
x: 1.5 x: 1.5
y: 1.5 y: 1.5
z: 1.0
w: 1.0
} }
size { size {
x: 420.0 x: 420.0
y: 140.0 y: 140.0
z: 0.0
w: 1.0
} }
color { color {
x: 0.941 x: 0.941
y: 0.984 y: 0.984
z: 1.0
w: 1.0
} }
type: TYPE_TEXT type: TYPE_TEXT
blend_mode: BLEND_MODE_ALPHA
text: "You are the best!" text: "You are the best!"
font: "text_bold" font: "text_bold"
id: "text" id: "text"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
outline { outline {
x: 1.0 x: 1.0
y: 1.0 y: 1.0
z: 1.0 z: 1.0
w: 1.0
} }
shadow { shadow {
x: 1.0 x: 1.0
y: 1.0 y: 1.0
z: 1.0 z: 1.0
w: 1.0
} }
adjust_mode: ADJUST_MODE_FIT
line_break: true line_break: true
parent: "content" parent: "content"
layer: ""
inherit_alpha: true inherit_alpha: true
alpha: 1.0
outline_alpha: 0.0 outline_alpha: 0.0
shadow_alpha: 0.0 shadow_alpha: 0.0
template_node_child: false
text_leading: 1.0
text_tracking: 0.0
custom_type: 0
enabled: true
visible: true
material: ""
} }
nodes { nodes {
position { position {
x: 0.0
y: -100.0 y: -100.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size {
x: 200.0
y: 100.0
z: 0.0
w: 1.0
}
color {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
} }
type: TYPE_TEMPLATE type: TYPE_TEMPLATE
id: "button_accept" id: "button_accept"
parent: "content" parent: "content"
layer: ""
inherit_alpha: true inherit_alpha: true
alpha: 1.0
template: "/example/templates/button_text_green.gui" template: "/example/templates/button_text_green.gui"
template_node_child: false
custom_type: 0
enabled: true
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size {
x: 280.0
y: 90.0
z: 0.0
w: 1.0
}
color {
x: 0.557
y: 0.835
z: 0.62
w: 1.0
}
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: "druid/ui_circle_32"
id: "button_accept/root" id: "button_accept/root"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
adjust_mode: ADJUST_MODE_FIT
parent: "button_accept" parent: "button_accept"
layer: "druid"
inherit_alpha: true
slice9 {
x: 16.0
y: 16.0
z: 16.0
w: 16.0
}
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: true template_node_child: true
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: true
material: ""
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size {
x: 245.0
y: 50.0
z: 0.0
w: 1.0
}
color {
x: 0.31
y: 0.318
z: 0.322
w: 1.0
}
type: TYPE_TEXT type: TYPE_TEXT
blend_mode: BLEND_MODE_ALPHA
text: "Confirm"
font: "text_bold"
id: "button_accept/text" id: "button_accept/text"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
outline {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
shadow {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
adjust_mode: ADJUST_MODE_FIT
line_break: false
parent: "button_accept/root" parent: "button_accept/root"
layer: "text_bold"
inherit_alpha: true
alpha: 1.0
outline_alpha: 0.0
shadow_alpha: 0.0
template_node_child: true template_node_child: true
text_leading: 1.0
text_tracking: 0.0
custom_type: 0
enabled: true
visible: true
material: ""
} }
layers { layers {
name: "druid" name: "druid"
@@ -676,4 +221,3 @@ layers {
} }
material: "/builtins/materials/gui.material" material: "/builtins/materials/gui.material"
adjust_reference: ADJUST_REFERENCE_PARENT adjust_reference: ADJUST_REFERENCE_PARENT
max_nodes: 512

View File

@@ -4,55 +4,22 @@ fonts {
font: "/example/assets/fonts/text_bold.font" font: "/example/assets/fonts/text_bold.font"
} }
textures { textures {
name: "druid" name: "druid_example"
texture: "/example/assets/druid.atlas" texture: "/example/assets/druid_example.atlas"
}
background_color {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
} }
nodes { nodes {
position { position {
x: 960.0 x: 960.0
y: 540.0 y: 540.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
} }
size { size {
x: 600.0 x: 600.0
y: 580.0 y: 580.0
z: 0.0
w: 1.0
}
color {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
} }
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: "druid/empty" texture: "druid/empty"
id: "root" id: "root"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
adjust_mode: ADJUST_MODE_STRETCH adjust_mode: ADJUST_MODE_STRETCH
layer: ""
inherit_alpha: true inherit_alpha: true
slice9 { slice9 {
x: 16.0 x: 16.0
@@ -60,58 +27,22 @@ nodes {
z: 16.0 z: 16.0
w: 16.0 w: 16.0
} }
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: false
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: false visible: false
material: ""
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size { size {
x: 600.0 x: 600.0
y: 580.0 y: 580.0
z: 0.0
w: 1.0
} }
color { color {
x: 0.31 x: 0.31
y: 0.318 y: 0.318
z: 0.322 z: 0.322
w: 1.0
} }
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: "druid/ui_circle_32" texture: "druid/ui_circle_32"
id: "window" id: "window"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
adjust_mode: ADJUST_MODE_FIT
parent: "root" parent: "root"
layer: ""
inherit_alpha: true inherit_alpha: true
slice9 { slice9 {
x: 16.0 x: 16.0
@@ -119,58 +50,25 @@ nodes {
z: 16.0 z: 16.0
w: 16.0 w: 16.0
} }
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: false
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: true
material: ""
} }
nodes { nodes {
position { position {
x: 0.0
y: 290.0 y: 290.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
} }
size { size {
x: 600.0 x: 600.0
y: 92.0 y: 92.0
z: 0.0
w: 1.0
} }
color { color {
x: 0.631 x: 0.631
y: 0.843 y: 0.843
z: 0.961 z: 0.961
w: 1.0
} }
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: "druid/ui_rounded_top_32" texture: "druid/ui_rounded_top_32"
id: "panel_header" id: "panel_header"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_N pivot: PIVOT_N
adjust_mode: ADJUST_MODE_FIT
parent: "window" parent: "window"
layer: ""
inherit_alpha: true inherit_alpha: true
slice9 { slice9 {
x: 16.0 x: 16.0
@@ -178,490 +76,126 @@ nodes {
z: 16.0 z: 16.0
w: 16.0 w: 16.0
} }
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: false
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: true
material: ""
} }
nodes { nodes {
position { position {
x: 0.0
y: -46.0 y: -46.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
} }
scale { scale {
x: 1.5 x: 1.5
y: 1.5 y: 1.5
z: 1.0
w: 1.0
} }
size { size {
x: 300.0 x: 300.0
y: 50.0 y: 50.0
z: 0.0
w: 1.0
} }
color { color {
x: 0.31 x: 0.31
y: 0.318 y: 0.318
z: 0.322 z: 0.322
w: 1.0
} }
type: TYPE_TEXT type: TYPE_TEXT
blend_mode: BLEND_MODE_ALPHA
text: "Language" text: "Language"
font: "text_bold" font: "text_bold"
id: "text_header" id: "text_header"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
outline { outline {
x: 1.0 x: 1.0
y: 1.0 y: 1.0
z: 1.0 z: 1.0
w: 1.0
} }
shadow { shadow {
x: 1.0 x: 1.0
y: 1.0 y: 1.0
z: 1.0 z: 1.0
w: 1.0
} }
adjust_mode: ADJUST_MODE_FIT
line_break: false
parent: "panel_header" parent: "panel_header"
layer: ""
inherit_alpha: true inherit_alpha: true
alpha: 1.0
outline_alpha: 0.0 outline_alpha: 0.0
shadow_alpha: 0.0 shadow_alpha: 0.0
template_node_child: false
text_leading: 1.0
text_tracking: 0.0
custom_type: 0
enabled: true
visible: true
material: ""
} }
nodes { nodes {
position { position {
x: 250.0 x: 250.0
y: -46.0 y: -46.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
} }
size { size {
x: 100.0 x: 100.0
y: 100.0 y: 100.0
z: 0.0
w: 1.0
}
color {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
} }
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: ""
id: "button_close" id: "button_close"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
adjust_mode: ADJUST_MODE_FIT
parent: "panel_header" parent: "panel_header"
layer: ""
inherit_alpha: true inherit_alpha: true
slice9 {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
}
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: false
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: false visible: false
material: ""
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size {
x: 200.0
y: 100.0
z: 0.0
w: 1.0
}
color { color {
x: 0.31 x: 0.31
y: 0.318 y: 0.318
z: 0.322 z: 0.322
w: 1.0
} }
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: "druid/icon_cross" texture: "druid/icon_cross"
id: "icon_close" id: "icon_close"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
adjust_mode: ADJUST_MODE_FIT
parent: "button_close" parent: "button_close"
layer: ""
inherit_alpha: true inherit_alpha: true
slice9 {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
}
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: false
size_mode: SIZE_MODE_AUTO size_mode: SIZE_MODE_AUTO
custom_type: 0
enabled: true
visible: true
material: ""
} }
nodes { nodes {
position { position {
x: 0.0
y: -45.0 y: -45.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
} }
size { size {
x: 600.0 x: 600.0
y: 470.0 y: 470.0
z: 0.0
w: 1.0
}
color {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
} }
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: ""
id: "content" id: "content"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
adjust_mode: ADJUST_MODE_FIT
parent: "root" parent: "root"
layer: ""
inherit_alpha: true inherit_alpha: true
slice9 {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
}
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: false
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: false visible: false
material: ""
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size { size {
x: 260.0 x: 260.0
y: 90.0 y: 90.0
z: 0.0
w: 1.0
}
color {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
} }
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: ""
id: "button_prefab" id: "button_prefab"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
adjust_mode: ADJUST_MODE_FIT
parent: "content" parent: "content"
layer: ""
inherit_alpha: true inherit_alpha: true
slice9 {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
}
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: false
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: false visible: false
material: ""
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size {
x: 200.0
y: 100.0
z: 0.0
w: 1.0
}
color {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
type: TYPE_TEMPLATE type: TYPE_TEMPLATE
id: "button" id: "button"
parent: "button_prefab" parent: "button_prefab"
layer: ""
inherit_alpha: true inherit_alpha: true
alpha: 1.0
template: "/example/templates/button_text_white.gui" template: "/example/templates/button_text_white.gui"
template_node_child: false
custom_type: 0
enabled: true
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size { size {
x: 240.0 x: 240.0
y: 70.0 y: 70.0
z: 0.0
w: 1.0
}
color {
x: 0.941
y: 0.984
z: 1.0
w: 1.0
} }
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: "druid/ui_circle_32"
id: "button/root" id: "button/root"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
adjust_mode: ADJUST_MODE_FIT
parent: "button" parent: "button"
layer: "druid"
inherit_alpha: true
slice9 {
x: 16.0
y: 16.0
z: 16.0
w: 16.0
}
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
overridden_fields: 4 overridden_fields: 4
template_node_child: true template_node_child: true
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: true
material: ""
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size { size {
x: 220.0 x: 220.0
y: 50.0 y: 50.0
z: 0.0
w: 1.0
}
color {
x: 0.31
y: 0.318
z: 0.322
w: 1.0
} }
type: TYPE_TEXT type: TYPE_TEXT
blend_mode: BLEND_MODE_ALPHA
text: "English" text: "English"
font: "text_bold"
id: "button/text" id: "button/text"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
outline {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
shadow {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
adjust_mode: ADJUST_MODE_FIT
line_break: false
parent: "button/root" parent: "button/root"
layer: "text_bold"
inherit_alpha: true
alpha: 1.0
outline_alpha: 0.0
shadow_alpha: 0.0
overridden_fields: 4 overridden_fields: 4
overridden_fields: 8 overridden_fields: 8
template_node_child: true template_node_child: true
text_leading: 1.0
text_tracking: 0.0
custom_type: 0
enabled: true
visible: true
material: ""
} }
layers { layers {
name: "druid" name: "druid"
@@ -671,4 +205,3 @@ layers {
} }
material: "/builtins/materials/gui.material" material: "/builtins/materials/gui.material"
adjust_reference: ADJUST_REFERENCE_PARENT adjust_reference: ADJUST_REFERENCE_PARENT
max_nodes: 512

View File

@@ -12,7 +12,7 @@ local window_animation_panthera = require("example.examples.windows.window_anima
---@field button_close druid.button ---@field button_close druid.button
---@field druid druid_instance ---@field druid druid_instance
---@field lang_buttons table<string, druid.button> ---@field lang_buttons table<string, druid.button>
---@field grid druid.static_grid ---@field grid druid.grid
---@field on_language_change druid.event ---@field on_language_change druid.event
local M = component.create("window_language") local M = component.create("window_language")
@@ -36,7 +36,7 @@ function M:init(template, nodes)
self.button_close = self.druid:new_button("button_close", self.on_button_close) self.button_close = self.druid:new_button("button_close", self.on_button_close)
self.druid:new(lang_text, "text_header", "ui_language") self.druid:new(lang_text, "text_header", "ui_language")
self.grid = self.druid:new_static_grid("content", self.prefab, 2) self.grid = self.druid:new_grid("content", self.prefab, 2)
self.grid.style.IS_DYNAMIC_NODE_POSES = true self.grid.style.IS_DYNAMIC_NODE_POSES = true
self.animation = panthera.create_gui(window_animation_panthera, self:get_template(), nodes) self.animation = panthera.create_gui(window_animation_panthera, self:get_template(), nodes)

View File

@@ -1,57 +1,24 @@
script: ""
fonts { fonts {
name: "text_bold" name: "text_bold"
font: "/example/assets/fonts/text_bold.font" font: "/example/assets/fonts/text_bold.font"
} }
textures { textures {
name: "druid" name: "druid_example"
texture: "/example/assets/druid.atlas" texture: "/example/assets/druid_example.atlas"
}
background_color {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size { size {
x: 280.0 x: 280.0
y: 90.0 y: 90.0
z: 0.0
w: 1.0
} }
color { color {
x: 0.631 x: 0.631
y: 0.843 y: 0.843
z: 0.961 z: 0.961
w: 1.0
} }
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: "druid/ui_circle_32" texture: "druid/ui_circle_32"
id: "root" id: "root"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
adjust_mode: ADJUST_MODE_FIT
layer: "druid" layer: "druid"
inherit_alpha: true inherit_alpha: true
slice9 { slice9 {
@@ -60,90 +27,42 @@ nodes {
z: 16.0 z: 16.0
w: 16.0 w: 16.0
} }
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: false
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: true
material: ""
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size { size {
x: 245.0 x: 245.0
y: 50.0 y: 50.0
z: 0.0
w: 1.0
} }
color { color {
x: 0.31 x: 0.31
y: 0.318 y: 0.318
z: 0.322 z: 0.322
w: 1.0
} }
type: TYPE_TEXT type: TYPE_TEXT
blend_mode: BLEND_MODE_ALPHA
text: "Info" text: "Info"
font: "text_bold" font: "text_bold"
id: "text" id: "text"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
outline { outline {
x: 1.0 x: 1.0
y: 1.0 y: 1.0
z: 1.0 z: 1.0
w: 1.0
} }
shadow { shadow {
x: 1.0 x: 1.0
y: 1.0 y: 1.0
z: 1.0 z: 1.0
w: 1.0
} }
adjust_mode: ADJUST_MODE_FIT
line_break: false
parent: "root" parent: "root"
layer: "text_bold" layer: "text_bold"
inherit_alpha: true inherit_alpha: true
alpha: 1.0
outline_alpha: 0.0 outline_alpha: 0.0
shadow_alpha: 0.0 shadow_alpha: 0.0
template_node_child: false
text_leading: 1.0
text_tracking: 0.0
custom_type: 0
enabled: true
visible: true
material: ""
} }
material: "/builtins/materials/gui.material"
adjust_reference: ADJUST_REFERENCE_PARENT
max_nodes: 512
layers { layers {
name: "druid" name: "druid"
} }
layers { layers {
name: "text_bold" name: "text_bold"
} }
material: "/builtins/materials/gui.material"
adjust_reference: ADJUST_REFERENCE_PARENT

View File

@@ -1,57 +1,24 @@
script: ""
fonts { fonts {
name: "text_bold" name: "text_bold"
font: "/example/assets/fonts/text_bold.font" font: "/example/assets/fonts/text_bold.font"
} }
textures { textures {
name: "druid" name: "druid_example"
texture: "/example/assets/druid.atlas" texture: "/example/assets/druid_example.atlas"
}
background_color {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size { size {
x: 280.0 x: 280.0
y: 90.0 y: 90.0
z: 0.0
w: 1.0
} }
color { color {
x: 0.557 x: 0.557
y: 0.835 y: 0.835
z: 0.62 z: 0.62
w: 1.0
} }
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: "druid/ui_circle_32" texture: "druid/ui_circle_32"
id: "root" id: "root"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
adjust_mode: ADJUST_MODE_FIT
layer: "druid" layer: "druid"
inherit_alpha: true inherit_alpha: true
slice9 { slice9 {
@@ -60,83 +27,36 @@ nodes {
z: 16.0 z: 16.0
w: 16.0 w: 16.0
} }
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: false
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: true
material: ""
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size { size {
x: 245.0 x: 245.0
y: 50.0 y: 50.0
z: 0.0
w: 1.0
} }
color { color {
x: 0.31 x: 0.31
y: 0.318 y: 0.318
z: 0.322 z: 0.322
w: 1.0
} }
type: TYPE_TEXT type: TYPE_TEXT
blend_mode: BLEND_MODE_ALPHA
text: "Confirm" text: "Confirm"
font: "text_bold" font: "text_bold"
id: "text" id: "text"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
outline { outline {
x: 1.0 x: 1.0
y: 1.0 y: 1.0
z: 1.0 z: 1.0
w: 1.0
} }
shadow { shadow {
x: 1.0 x: 1.0
y: 1.0 y: 1.0
z: 1.0 z: 1.0
w: 1.0
} }
adjust_mode: ADJUST_MODE_FIT
line_break: false
parent: "root" parent: "root"
layer: "text_bold" layer: "text_bold"
inherit_alpha: true inherit_alpha: true
alpha: 1.0
outline_alpha: 0.0 outline_alpha: 0.0
shadow_alpha: 0.0 shadow_alpha: 0.0
template_node_child: false
text_leading: 1.0
text_tracking: 0.0
custom_type: 0
enabled: true
visible: true
material: ""
} }
layers { layers {
name: "druid" name: "druid"
@@ -146,4 +66,3 @@ layers {
} }
material: "/builtins/materials/gui.material" material: "/builtins/materials/gui.material"
adjust_reference: ADJUST_REFERENCE_PARENT adjust_reference: ADJUST_REFERENCE_PARENT
max_nodes: 512

View File

@@ -1,57 +1,24 @@
script: ""
fonts { fonts {
name: "text_bold" name: "text_bold"
font: "/example/assets/fonts/text_bold.font" font: "/example/assets/fonts/text_bold.font"
} }
textures { textures {
name: "druid" name: "druid_example"
texture: "/example/assets/druid.atlas" texture: "/example/assets/druid_example.atlas"
}
background_color {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size { size {
x: 280.0 x: 280.0
y: 90.0 y: 90.0
z: 0.0
w: 1.0
} }
color { color {
x: 0.957 x: 0.957
y: 0.608 y: 0.608
z: 0.608 z: 0.608
w: 1.0
} }
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: "druid/ui_circle_32" texture: "druid/ui_circle_32"
id: "root" id: "root"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
adjust_mode: ADJUST_MODE_FIT
layer: "druid" layer: "druid"
inherit_alpha: true inherit_alpha: true
slice9 { slice9 {
@@ -60,83 +27,36 @@ nodes {
z: 16.0 z: 16.0
w: 16.0 w: 16.0
} }
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: false
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: true
material: ""
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size { size {
x: 245.0 x: 245.0
y: 50.0 y: 50.0
z: 0.0
w: 1.0
} }
color { color {
x: 0.31 x: 0.31
y: 0.318 y: 0.318
z: 0.322 z: 0.322
w: 1.0
} }
type: TYPE_TEXT type: TYPE_TEXT
blend_mode: BLEND_MODE_ALPHA
text: "Cancel" text: "Cancel"
font: "text_bold" font: "text_bold"
id: "text" id: "text"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
outline { outline {
x: 1.0 x: 1.0
y: 1.0 y: 1.0
z: 1.0 z: 1.0
w: 1.0
} }
shadow { shadow {
x: 1.0 x: 1.0
y: 1.0 y: 1.0
z: 1.0 z: 1.0
w: 1.0
} }
adjust_mode: ADJUST_MODE_FIT
line_break: false
parent: "root" parent: "root"
layer: "text_bold" layer: "text_bold"
inherit_alpha: true inherit_alpha: true
alpha: 1.0
outline_alpha: 0.0 outline_alpha: 0.0
shadow_alpha: 0.0 shadow_alpha: 0.0
template_node_child: false
text_leading: 1.0
text_tracking: 0.0
custom_type: 0
enabled: true
visible: true
material: ""
} }
layers { layers {
name: "druid" name: "druid"
@@ -146,4 +66,3 @@ layers {
} }
material: "/builtins/materials/gui.material" material: "/builtins/materials/gui.material"
adjust_reference: ADJUST_REFERENCE_PARENT adjust_reference: ADJUST_REFERENCE_PARENT
max_nodes: 512

View File

@@ -1,57 +1,23 @@
script: ""
fonts { fonts {
name: "text_bold" name: "text_bold"
font: "/example/assets/fonts/text_bold.font" font: "/example/assets/fonts/text_bold.font"
} }
textures { textures {
name: "druid" name: "druid_example"
texture: "/example/assets/druid.atlas" texture: "/example/assets/druid_example.atlas"
}
background_color {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size { size {
x: 280.0 x: 280.0
y: 90.0 y: 90.0
z: 0.0
w: 1.0
} }
color { color {
x: 0.941 x: 0.941
y: 0.984 y: 0.984
z: 1.0
w: 1.0
} }
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: "druid/ui_circle_32" texture: "druid/ui_circle_32"
id: "root" id: "root"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
adjust_mode: ADJUST_MODE_FIT
layer: "druid" layer: "druid"
inherit_alpha: true inherit_alpha: true
slice9 { slice9 {
@@ -60,83 +26,36 @@ nodes {
z: 16.0 z: 16.0
w: 16.0 w: 16.0
} }
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: false
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: true
material: ""
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size { size {
x: 245.0 x: 245.0
y: 50.0 y: 50.0
z: 0.0
w: 1.0
} }
color { color {
x: 0.31 x: 0.31
y: 0.318 y: 0.318
z: 0.322 z: 0.322
w: 1.0
} }
type: TYPE_TEXT type: TYPE_TEXT
blend_mode: BLEND_MODE_ALPHA
text: "Action" text: "Action"
font: "text_bold" font: "text_bold"
id: "text" id: "text"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
outline { outline {
x: 1.0 x: 1.0
y: 1.0 y: 1.0
z: 1.0 z: 1.0
w: 1.0
} }
shadow { shadow {
x: 1.0 x: 1.0
y: 1.0 y: 1.0
z: 1.0 z: 1.0
w: 1.0
} }
adjust_mode: ADJUST_MODE_FIT
line_break: false
parent: "root" parent: "root"
layer: "text_bold" layer: "text_bold"
inherit_alpha: true inherit_alpha: true
alpha: 1.0
outline_alpha: 0.0 outline_alpha: 0.0
shadow_alpha: 0.0 shadow_alpha: 0.0
template_node_child: false
text_leading: 1.0
text_tracking: 0.0
custom_type: 0
enabled: true
visible: true
material: ""
} }
layers { layers {
name: "druid" name: "druid"
@@ -146,4 +65,3 @@ layers {
} }
material: "/builtins/materials/gui.material" material: "/builtins/materials/gui.material"
adjust_reference: ADJUST_REFERENCE_PARENT adjust_reference: ADJUST_REFERENCE_PARENT
max_nodes: 512

View File

@@ -1,57 +1,24 @@
script: ""
fonts { fonts {
name: "text_bold" name: "text_bold"
font: "/example/assets/fonts/text_bold.font" font: "/example/assets/fonts/text_bold.font"
} }
textures { textures {
name: "druid" name: "druid_example"
texture: "/example/assets/druid.atlas" texture: "/example/assets/druid_example.atlas"
}
background_color {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size { size {
x: 280.0 x: 280.0
y: 90.0 y: 90.0
z: 0.0
w: 1.0
} }
color { color {
x: 0.902 x: 0.902
y: 0.875 y: 0.875
z: 0.624 z: 0.624
w: 1.0
} }
type: TYPE_BOX type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: "druid/ui_circle_32" texture: "druid/ui_circle_32"
id: "root" id: "root"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
adjust_mode: ADJUST_MODE_FIT
layer: "druid" layer: "druid"
inherit_alpha: true inherit_alpha: true
slice9 { slice9 {
@@ -60,90 +27,42 @@ nodes {
z: 16.0 z: 16.0
w: 16.0 w: 16.0
} }
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: false
size_mode: SIZE_MODE_MANUAL
custom_type: 0
enabled: true
visible: true
material: ""
} }
nodes { nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size { size {
x: 245.0 x: 245.0
y: 50.0 y: 50.0
z: 0.0
w: 1.0
} }
color { color {
x: 0.31 x: 0.31
y: 0.318 y: 0.318
z: 0.322 z: 0.322
w: 1.0
} }
type: TYPE_TEXT type: TYPE_TEXT
blend_mode: BLEND_MODE_ALPHA
text: "Warn" text: "Warn"
font: "text_bold" font: "text_bold"
id: "text" id: "text"
xanchor: XANCHOR_NONE
yanchor: YANCHOR_NONE
pivot: PIVOT_CENTER
outline { outline {
x: 1.0 x: 1.0
y: 1.0 y: 1.0
z: 1.0 z: 1.0
w: 1.0
} }
shadow { shadow {
x: 1.0 x: 1.0
y: 1.0 y: 1.0
z: 1.0 z: 1.0
w: 1.0
} }
adjust_mode: ADJUST_MODE_FIT
line_break: false
parent: "root" parent: "root"
layer: "text_bold" layer: "text_bold"
inherit_alpha: true inherit_alpha: true
alpha: 1.0
outline_alpha: 0.0 outline_alpha: 0.0
shadow_alpha: 0.0 shadow_alpha: 0.0
template_node_child: false
text_leading: 1.0
text_tracking: 0.0
custom_type: 0
enabled: true
visible: true
material: ""
} }
material: "/builtins/materials/gui.material"
adjust_reference: ADJUST_REFERENCE_PARENT
max_nodes: 512
layers { layers {
name: "druid" name: "druid"
} }
layers { layers {
name: "text_bold" name: "text_bold"
} }
material: "/builtins/materials/gui.material"
adjust_reference: ADJUST_REFERENCE_PARENT

Some files were not shown because too many files have changed in this diff Show More