Skip to content
0.2.0-dev Download ZIP
46 lines ·2.4 KB Raw
1<?xml version="1.0" encoding="UTF-8" ?>
2<class name="VisualShaderNodeFrame" inherits="VisualShaderNodeResizableBase" api_type="core" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../doc/class.xsd">
3 <brief_description>
4 A frame other visual shader nodes can be attached to for better organization.
5 </brief_description>
6 <description>
7 A rectangular frame that can be used to group visual shader nodes together to improve organization.
8 Nodes attached to the frame will move with it when it is dragged and it can automatically resize to enclose all attached nodes.
9 Its title, description and color can be customized.
10 </description>
11 <tutorials>
12 </tutorials>
13 <methods>
14 <method name="add_attached_node">
15 <return type="void" />
16 <param index="0" name="node" type="int" />
17 <description>
18 Adds a node to the list of nodes attached to the frame. Should not be called directly, use the [method VisualShader.attach_node_to_frame] method instead.
19 </description>
20 </method>
21 <method name="remove_attached_node">
22 <return type="void" />
23 <param index="0" name="node" type="int" />
24 <description>
25 Removes a node from the list of nodes attached to the frame. Should not be called directly, use the [method VisualShader.detach_node_from_frame] method instead.
26 </description>
27 </method>
28 </methods>
29 <members>
30 <member name="attached_nodes" type="PackedInt32Array" setter="set_attached_nodes" getter="get_attached_nodes" default="PackedInt32Array()">
31 The list of nodes attached to the frame.
32 </member>
33 <member name="autoshrink" type="bool" setter="set_autoshrink_enabled" getter="is_autoshrink_enabled" default="true">
34 If [code]true[/code], the frame will automatically resize to enclose all attached nodes.
35 </member>
36 <member name="tint_color" type="Color" setter="set_tint_color" getter="get_tint_color" default="Color(0.3, 0.3, 0.3, 0.75)">
37 The color of the frame when [member tint_color_enabled] is [code]true[/code].
38 </member>
39 <member name="tint_color_enabled" type="bool" setter="set_tint_color_enabled" getter="is_tint_color_enabled" default="false">
40 If [code]true[/code], the frame will be tinted with the color specified in [member tint_color].
41 </member>
42 <member name="title" type="String" setter="set_title" getter="get_title" default="&quot;Title&quot;">
43 The title of the node.
44 </member>
45 </members>
46</class>