mirror of
https://github.com/Relintai/material-maker.git
synced 2024-12-23 21:16:54 +01:00
cb03131b85
Now linking new controls to a linked_control will check compatibility (same control type and parameters). Linked control labels are now editable. Modified the Switch node layout so it is easier to understand. Updated the bricks example to use the switch and remote nodes.
80 lines
1.9 KiB
Plaintext
80 lines
1.9 KiB
Plaintext
[gd_scene load_steps=4 format=2]
|
|
|
|
[ext_resource path="res://addons/material_maker/widgets/linked_widgets/linked_control_buttons.gd" type="Script" id=1]
|
|
[ext_resource path="res://addons/material_maker/icons/link.png" type="Texture" id=2]
|
|
[ext_resource path="res://addons/material_maker/icons/remove.png" type="Texture" id=3]
|
|
|
|
[node name="Buttons" type="HBoxContainer" index="0"]
|
|
|
|
anchor_left = 0.0
|
|
anchor_top = 0.0
|
|
anchor_right = 0.0
|
|
anchor_bottom = 0.0
|
|
margin_right = 60.0
|
|
margin_bottom = 22.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="Link" 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 = 22.0
|
|
rect_pivot_offset = Vector2( 0, 0 )
|
|
rect_clip_content = false
|
|
hint_tooltip = "Link new parameter"
|
|
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 = false
|
|
align = 1
|
|
_sections_unfolded = [ "Hint" ]
|
|
|
|
[node name="Remove" type="Button" 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 = 60.0
|
|
margin_bottom = 22.0
|
|
rect_pivot_offset = Vector2( 0, 0 )
|
|
rect_clip_content = false
|
|
hint_tooltip = "Delete this control"
|
|
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( 3 )
|
|
flat = false
|
|
align = 1
|
|
_sections_unfolded = [ "Hint" ]
|
|
|
|
[connection signal="pressed" from="Link" to="." method="_on_Link_pressed"]
|
|
|
|
[connection signal="pressed" from="Remove" to="." method="_on_Remove_pressed"]
|
|
|
|
|