Skip to content

Commit c634bf4

Browse files
committed
Remove references to ios up/down buttons
1 parent 591a025 commit c634bf4

File tree

4 files changed

+2
-35
lines changed

4 files changed

+2
-35
lines changed

material_maker/nodes/ios/ios.gd

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,6 @@ func on_parameter_changed(p, _v) -> void:
1313
if p == "__update_all__":
1414
update_node.call_deferred()
1515

16-
func update_up_down_buttons() -> void:
17-
for c in get_children():
18-
if ! (c is Button):
19-
c.update_up_down_button()
20-
2116
func update_node() -> void:
2217
for c in get_children():
2318
remove_child(c)
@@ -42,7 +37,6 @@ func update_node() -> void:
4237
add_child(add_button)
4338
add_button.connect("pressed", Callable(generator, "add_port"))
4439
set_slot(get_child_count()-1, false, 0, color, false, 0, color)
45-
update_up_down_buttons()
4640

4741
func command(command_name : String, command_parameters : Array, update_node : bool = false):
4842
var parent_generator = generator.get_parent().get_parent()

material_maker/nodes/ios/ios.tscn

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[gd_scene load_steps=2 format=3 uid="uid://d1j47uuqrti7e"]
22

3-
[ext_resource type="Script" path="res://material_maker/nodes/ios/ios.gd" id="1"]
3+
[ext_resource type="Script" uid="uid://da5v0wx0fxv65" path="res://material_maker/nodes/ios/ios.gd" id="1"]
44

55
[node name="IOs" type="GraphNode"]
66
offset_right = 32.0

material_maker/nodes/ios/port.gd

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,6 @@ func set_model_data(data, remaining_group_size = 0) -> int:
2323
$PortGroupButton.set_state(1)
2424
return int(max(remaining_group_size-1, 0))
2525

26-
func update_up_down_button() -> void:
27-
var parent = get_parent()
28-
if parent == null:
29-
return
30-
$Up.disabled = (get_index() == 0)
31-
$Down.disabled = (get_index() == get_parent().get_child_count()-2)
32-
3326
func _on_Name_label_changed(new_label) -> void:
3427
get_parent().command("set_port_name", [get_index(), new_label])
3528

material_maker/nodes/ios/port.tscn

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[gd_scene load_steps=10 format=3 uid="uid://24n1vcw48pi"]
1+
[gd_scene load_steps=8 format=3 uid="uid://24n1vcw48pi"]
22

33
[ext_resource type="Script" uid="uid://74k1155djatm" path="res://material_maker/nodes/ios/port.gd" id="1"]
44
[ext_resource type="Texture2D" uid="uid://c0j4px4n72di5" path="res://material_maker/icons/icons.tres" id="2"]
@@ -12,14 +12,6 @@
1212
atlas = ExtResource("2")
1313
region = Rect2(2, 17, 12, 14)
1414

15-
[sub_resource type="AtlasTexture" id="2"]
16-
atlas = ExtResource("2")
17-
region = Rect2(18, 49, 12, 14)
18-
19-
[sub_resource type="AtlasTexture" id="3"]
20-
atlas = ExtResource("2")
21-
region = Rect2(34, 49, 12, 14)
22-
2315
[node name="Port" type="HBoxContainer"]
2416
anchors_preset = 10
2517
anchor_right = 1.0
@@ -35,16 +27,6 @@ flat = true
3527
layout_mode = 2
3628
icon = SubResource("1")
3729

38-
[node name="Up" type="Button" parent="."]
39-
visible = false
40-
layout_mode = 2
41-
icon = SubResource("2")
42-
43-
[node name="Down" type="Button" parent="."]
44-
visible = false
45-
layout_mode = 2
46-
icon = SubResource("3")
47-
4830
[node name="Name" parent="." instance=ExtResource("3")]
4931
custom_minimum_size = Vector2(30, 0)
5032
layout_mode = 2
@@ -62,8 +44,6 @@ tooltip_text = "Port type"
6244
layout_mode = 2
6345

6446
[connection signal="pressed" from="Delete" to="." method="_on_Delete_pressed"]
65-
[connection signal="pressed" from="Up" to="." method="_on_Up_pressed"]
66-
[connection signal="pressed" from="Down" to="." method="_on_Down_pressed"]
6747
[connection signal="label_changed" from="Name" to="." method="_on_Name_label_changed"]
6848
[connection signal="descriptions_changed" from="Description" to="." method="_on_Description_descriptions_changed"]
6949
[connection signal="item_selected" from="Type" to="." method="_on_Type_item_selected"]

0 commit comments

Comments
 (0)