mirror of
https://github.com/Relintai/material-maker.git
synced 2024-12-23 21:16:54 +01:00
3bb9dd50db
- Added support for inputs and alternate syntax for parameters ($foo instead of $(foo)) - Added support for default input values ($uv can be used for non uniform defaults)
160 lines
3.7 KiB
Plaintext
160 lines
3.7 KiB
Plaintext
[gd_scene load_steps=3 format=2]
|
|
|
|
[ext_resource path="res://addons/material_maker/widgets/node_editor/input.gd" type="Script" id=1]
|
|
[ext_resource path="res://addons/material_maker/icons/minus.png" type="Texture" id=2]
|
|
|
|
[node name="Parameter" type="HBoxContainer" index="0"]
|
|
|
|
anchor_left = 0.0
|
|
anchor_top = 0.0
|
|
anchor_right = 0.0
|
|
anchor_bottom = 0.0
|
|
margin_right = 201.0
|
|
margin_bottom = 24.0
|
|
rect_pivot_offset = Vector2( 0, 0 )
|
|
rect_clip_content = false
|
|
mouse_filter = 1
|
|
mouse_default_cursor_shape = 0
|
|
size_flags_horizontal = 1
|
|
size_flags_vertical = 1
|
|
alignment = 0
|
|
script = ExtResource( 1 )
|
|
|
|
[node name="Delete" type="Button" parent="." index="0"]
|
|
|
|
anchor_left = 0.0
|
|
anchor_top = 0.0
|
|
anchor_right = 0.0
|
|
anchor_bottom = 0.0
|
|
margin_right = 28.0
|
|
margin_bottom = 24.0
|
|
rect_pivot_offset = Vector2( 0, 0 )
|
|
rect_clip_content = false
|
|
focus_mode = 2
|
|
mouse_filter = 0
|
|
mouse_default_cursor_shape = 0
|
|
size_flags_horizontal = 1
|
|
size_flags_vertical = 1
|
|
toggle_mode = false
|
|
enabled_focus_mode = 2
|
|
shortcut = null
|
|
group = null
|
|
icon = ExtResource( 2 )
|
|
flat = true
|
|
align = 1
|
|
|
|
[node name="Name" type="LineEdit" parent="." index="1"]
|
|
|
|
anchor_left = 0.0
|
|
anchor_top = 0.0
|
|
anchor_right = 0.0
|
|
anchor_bottom = 0.0
|
|
margin_left = 32.0
|
|
margin_right = 102.0
|
|
margin_bottom = 24.0
|
|
rect_min_size = Vector2( 70, 0 )
|
|
rect_pivot_offset = Vector2( 0, 0 )
|
|
rect_clip_content = false
|
|
hint_tooltip = "Input name"
|
|
focus_mode = 2
|
|
mouse_filter = 0
|
|
mouse_default_cursor_shape = 1
|
|
size_flags_horizontal = 1
|
|
size_flags_vertical = 1
|
|
text = "name"
|
|
focus_mode = 2
|
|
context_menu_enabled = true
|
|
placeholder_alpha = 0.6
|
|
caret_blink = false
|
|
caret_blink_speed = 0.65
|
|
caret_position = 0
|
|
_sections_unfolded = [ "Hint", "Rect" ]
|
|
|
|
[node name="Label" type="LineEdit" parent="." index="2"]
|
|
|
|
anchor_left = 0.0
|
|
anchor_top = 0.0
|
|
anchor_right = 0.0
|
|
anchor_bottom = 0.0
|
|
margin_left = 106.0
|
|
margin_right = 176.0
|
|
margin_bottom = 24.0
|
|
rect_min_size = Vector2( 70, 0 )
|
|
rect_pivot_offset = Vector2( 0, 0 )
|
|
rect_clip_content = false
|
|
hint_tooltip = "Input Label"
|
|
focus_mode = 2
|
|
mouse_filter = 0
|
|
mouse_default_cursor_shape = 1
|
|
size_flags_horizontal = 1
|
|
size_flags_vertical = 1
|
|
text = "Label"
|
|
focus_mode = 2
|
|
context_menu_enabled = true
|
|
placeholder_alpha = 0.6
|
|
caret_blink = false
|
|
caret_blink_speed = 0.65
|
|
caret_position = 0
|
|
_sections_unfolded = [ "Hint", "Rect" ]
|
|
|
|
[node name="Type" type="OptionButton" parent="." index="3"]
|
|
|
|
anchor_left = 0.0
|
|
anchor_top = 0.0
|
|
anchor_right = 0.0
|
|
anchor_bottom = 0.0
|
|
margin_left = 180.0
|
|
margin_right = 282.0
|
|
margin_bottom = 24.0
|
|
rect_min_size = Vector2( 102, 0 )
|
|
rect_pivot_offset = Vector2( 0, 0 )
|
|
rect_clip_content = false
|
|
hint_tooltip = "Input flag"
|
|
focus_mode = 2
|
|
mouse_filter = 0
|
|
mouse_default_cursor_shape = 0
|
|
size_flags_horizontal = 1
|
|
size_flags_vertical = 1
|
|
toggle_mode = false
|
|
action_mode = 0
|
|
enabled_focus_mode = 2
|
|
shortcut = null
|
|
group = null
|
|
text = "GreyScale"
|
|
flat = false
|
|
align = 0
|
|
items = [ "GreyScale", null, false, 0, null, "Color", null, false, 1, null, "RGBA", null, false, -1, null ]
|
|
selected = 0
|
|
_sections_unfolded = [ "Focus", "Hint", "Rect" ]
|
|
|
|
[node name="Default" type="LineEdit" parent="." index="4"]
|
|
|
|
anchor_left = 0.0
|
|
anchor_top = 0.0
|
|
anchor_right = 0.0
|
|
anchor_bottom = 0.0
|
|
margin_left = 286.0
|
|
margin_right = 356.0
|
|
margin_bottom = 24.0
|
|
rect_min_size = Vector2( 70, 0 )
|
|
rect_pivot_offset = Vector2( 0, 0 )
|
|
rect_clip_content = false
|
|
hint_tooltip = "Default value"
|
|
focus_mode = 2
|
|
mouse_filter = 0
|
|
mouse_default_cursor_shape = 1
|
|
size_flags_horizontal = 3
|
|
size_flags_vertical = 1
|
|
text = "0.0"
|
|
focus_mode = 2
|
|
context_menu_enabled = true
|
|
placeholder_alpha = 0.6
|
|
caret_blink = false
|
|
caret_blink_speed = 0.65
|
|
caret_position = 0
|
|
_sections_unfolded = [ "Hint", "Rect", "Size Flags" ]
|
|
|
|
[connection signal="pressed" from="Delete" to="." method="_on_Delete_pressed"]
|
|
|
|
|