This commit is contained in:
Insality
2025-02-09 22:28:58 +02:00
parent 8407932236
commit 5eaa50552a
13 changed files with 317 additions and 47 deletions

View File

@@ -16,7 +16,7 @@ function M.get_examples()
properties_panel:add_slider("ui_padding", 0, function(value)
local padding = math.floor((value * 64) * 100) / 100
instance.layout:set_padding(vmath.vector4(padding))
instance.layout:set_padding(padding, padding, padding, padding)
end)
properties_panel:add_slider("ui_margin_x", 0, function(value)
@@ -88,4 +88,4 @@ function M.get_examples()
end
return M
return M

View File

@@ -364,5 +364,209 @@ nodes {
parent: "properties_panel/property_left_right_selector/E_Anchor"
template_node_child: true
}
nodes {
type: TYPE_TEMPLATE
id: "properties_panel/property_vector3"
parent: "properties_panel/propeties"
template_node_child: true
}
nodes {
type: TYPE_BOX
id: "properties_panel/property_vector3/root"
parent: "properties_panel/property_vector3"
template_node_child: true
}
nodes {
type: TYPE_TEXT
id: "properties_panel/property_vector3/text_name"
parent: "properties_panel/property_vector3/root"
template_node_child: true
}
nodes {
type: TYPE_BOX
id: "properties_panel/property_vector3/E_Anchor"
parent: "properties_panel/property_vector3/root"
template_node_child: true
}
nodes {
type: TYPE_BOX
id: "properties_panel/property_vector3/field_x"
parent: "properties_panel/property_vector3/E_Anchor"
template_node_child: true
}
nodes {
type: TYPE_TEXT
id: "properties_panel/property_vector3/text_x"
parent: "properties_panel/property_vector3/field_x"
template_node_child: true
}
nodes {
type: TYPE_TEMPLATE
id: "properties_panel/property_vector3/rich_input_x"
parent: "properties_panel/property_vector3/field_x"
template_node_child: true
}
nodes {
type: TYPE_BOX
id: "properties_panel/property_vector3/rich_input_x/root"
parent: "properties_panel/property_vector3/rich_input_x"
template_node_child: true
}
nodes {
type: TYPE_BOX
id: "properties_panel/property_vector3/rich_input_x/button"
parent: "properties_panel/property_vector3/rich_input_x/root"
template_node_child: true
}
nodes {
type: TYPE_TEXT
id: "properties_panel/property_vector3/rich_input_x/placeholder_text"
parent: "properties_panel/property_vector3/rich_input_x/root"
template_node_child: true
}
nodes {
type: TYPE_TEXT
id: "properties_panel/property_vector3/rich_input_x/input_text"
parent: "properties_panel/property_vector3/rich_input_x/root"
template_node_child: true
}
nodes {
type: TYPE_BOX
id: "properties_panel/property_vector3/rich_input_x/cursor_node"
parent: "properties_panel/property_vector3/rich_input_x/root"
template_node_child: true
}
nodes {
type: TYPE_TEXT
id: "properties_panel/property_vector3/rich_input_x/cursor_text"
parent: "properties_panel/property_vector3/rich_input_x/cursor_node"
template_node_child: true
}
nodes {
type: TYPE_BOX
id: "properties_panel/property_vector3/selected_x"
parent: "properties_panel/property_vector3/field_x"
template_node_child: true
}
nodes {
type: TYPE_BOX
id: "properties_panel/property_vector3/field_y"
parent: "properties_panel/property_vector3/E_Anchor"
template_node_child: true
}
nodes {
type: TYPE_TEXT
id: "properties_panel/property_vector3/text_y"
parent: "properties_panel/property_vector3/field_y"
template_node_child: true
}
nodes {
type: TYPE_TEMPLATE
id: "properties_panel/property_vector3/rich_input_y"
parent: "properties_panel/property_vector3/field_y"
template_node_child: true
}
nodes {
type: TYPE_BOX
id: "properties_panel/property_vector3/rich_input_y/root"
parent: "properties_panel/property_vector3/rich_input_y"
template_node_child: true
}
nodes {
type: TYPE_BOX
id: "properties_panel/property_vector3/rich_input_y/button"
parent: "properties_panel/property_vector3/rich_input_y/root"
template_node_child: true
}
nodes {
type: TYPE_TEXT
id: "properties_panel/property_vector3/rich_input_y/placeholder_text"
parent: "properties_panel/property_vector3/rich_input_y/root"
template_node_child: true
}
nodes {
type: TYPE_TEXT
id: "properties_panel/property_vector3/rich_input_y/input_text"
parent: "properties_panel/property_vector3/rich_input_y/root"
template_node_child: true
}
nodes {
type: TYPE_BOX
id: "properties_panel/property_vector3/rich_input_y/cursor_node"
parent: "properties_panel/property_vector3/rich_input_y/root"
template_node_child: true
}
nodes {
type: TYPE_TEXT
id: "properties_panel/property_vector3/rich_input_y/cursor_text"
parent: "properties_panel/property_vector3/rich_input_y/cursor_node"
template_node_child: true
}
nodes {
type: TYPE_BOX
id: "properties_panel/property_vector3/selected_y"
parent: "properties_panel/property_vector3/field_y"
template_node_child: true
}
nodes {
type: TYPE_BOX
id: "properties_panel/property_vector3/field_z"
parent: "properties_panel/property_vector3/E_Anchor"
template_node_child: true
}
nodes {
type: TYPE_TEXT
id: "properties_panel/property_vector3/text_z"
parent: "properties_panel/property_vector3/field_z"
template_node_child: true
}
nodes {
type: TYPE_TEMPLATE
id: "properties_panel/property_vector3/rich_input_z"
parent: "properties_panel/property_vector3/field_z"
template_node_child: true
}
nodes {
type: TYPE_BOX
id: "properties_panel/property_vector3/rich_input_z/root"
parent: "properties_panel/property_vector3/rich_input_z"
template_node_child: true
}
nodes {
type: TYPE_BOX
id: "properties_panel/property_vector3/rich_input_z/button"
parent: "properties_panel/property_vector3/rich_input_z/root"
template_node_child: true
}
nodes {
type: TYPE_TEXT
id: "properties_panel/property_vector3/rich_input_z/placeholder_text"
parent: "properties_panel/property_vector3/rich_input_z/root"
template_node_child: true
}
nodes {
type: TYPE_TEXT
id: "properties_panel/property_vector3/rich_input_z/input_text"
parent: "properties_panel/property_vector3/rich_input_z/root"
template_node_child: true
}
nodes {
type: TYPE_BOX
id: "properties_panel/property_vector3/rich_input_z/cursor_node"
parent: "properties_panel/property_vector3/rich_input_z/root"
template_node_child: true
}
nodes {
type: TYPE_TEXT
id: "properties_panel/property_vector3/rich_input_z/cursor_text"
parent: "properties_panel/property_vector3/rich_input_z/cursor_node"
template_node_child: true
}
nodes {
type: TYPE_BOX
id: "properties_panel/property_vector3/selected_z"
parent: "properties_panel/property_vector3/field_z"
template_node_child: true
}
material: "/builtins/materials/gui.material"
adjust_reference: ADJUST_REFERENCE_PARENT