Skip to content

Commit 7084c94

Browse files
Change event folding/expanding icon (#1571)
1 parent f275431 commit 7084c94

File tree

2 files changed

+16
-9
lines changed

2 files changed

+16
-9
lines changed

addons/dialogic/Editor/Events/EventBlock/event_block.gd

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,8 @@ func _ready():
356356

357357
indent_size = indent_size * DialogicUtil.get_editor_scale()
358358

359-
%ExpandButton.icon = get_theme_icon("Tools", "EditorIcons")
359+
%ExpandButton.icon = get_theme_icon("CodeFoldDownArrow", "EditorIcons")
360+
%ExpandButton.modulate = get_theme_color("readonly_color", "Editor")
360361

361362

362363
if resource:
@@ -392,6 +393,10 @@ func _on_ExpandButton_toggled(button_pressed:bool) -> void:
392393
if button_pressed and !body_was_build:
393394
build_editor(false, true)
394395
%ExpandButton.set_pressed_no_signal(button_pressed)
396+
if button_pressed:
397+
%ExpandButton.icon = get_theme_icon("CodeFoldDownArrow", "EditorIcons")
398+
else:
399+
%ExpandButton.icon = get_theme_icon("CodeFoldedRightArrow", "EditorIcons")
395400
expanded = button_pressed
396401
body_container.visible = button_pressed
397402
get_parent().get_parent().queue_redraw()

addons/dialogic/Editor/Events/EventBlock/event_block.tscn

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ corner_radius_top_right = 5
1111
corner_radius_bottom_right = 5
1212
corner_radius_bottom_left = 5
1313

14-
[sub_resource type="Image" id="Image_omdjy"]
14+
[sub_resource type="Image" id="Image_jt3li"]
1515
data = {
1616
"data": PackedByteArray(255, 255, 255, 0, 255, 255, 255, 0, 255, 128, 128, 4, 255, 128, 128, 4, 255, 128, 128, 4, 255, 128, 128, 4, 255, 128, 128, 4, 255, 128, 128, 4, 255, 128, 128, 4, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 255, 255, 0, 255, 93, 93, 131, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 255, 255, 0, 255, 93, 93, 255, 255, 93, 93, 131, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 255, 255, 0, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 131, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 255, 255, 0, 255, 93, 93, 252, 255, 93, 93, 252, 255, 93, 93, 252, 255, 94, 94, 127, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 128, 128, 4, 255, 128, 128, 4, 255, 128, 128, 4, 255, 128, 128, 4, 255, 128, 128, 4, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 93, 93, 231, 255, 93, 93, 55, 255, 97, 97, 58, 255, 93, 93, 233, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 231, 255, 94, 94, 54, 255, 94, 94, 57, 255, 93, 93, 233, 255, 93, 93, 255, 255, 93, 93, 255, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 97, 97, 42, 255, 255, 255, 0, 255, 255, 255, 0, 255, 97, 97, 42, 255, 93, 93, 233, 255, 93, 93, 232, 255, 93, 93, 41, 255, 255, 255, 0, 255, 255, 255, 0, 255, 97, 97, 42, 255, 93, 93, 233, 255, 93, 93, 232, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 96, 96, 45, 255, 97, 97, 42, 255, 255, 255, 0, 255, 97, 97, 42, 255, 97, 97, 42, 255, 255, 255, 0, 255, 98, 98, 47, 255, 97, 97, 42, 255, 255, 255, 0, 255, 97, 97, 42, 255, 97, 97, 42, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 96, 96, 45, 255, 93, 93, 235, 255, 93, 93, 233, 255, 97, 97, 42, 255, 255, 255, 0, 255, 255, 255, 0, 255, 94, 94, 46, 255, 93, 93, 236, 255, 93, 93, 233, 255, 97, 97, 42, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 93, 93, 235, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 233, 255, 95, 95, 59, 255, 96, 96, 61, 255, 93, 93, 235, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 233, 255, 95, 95, 59, 255, 96, 96, 61, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 93, 93, 252, 255, 93, 93, 252, 255, 93, 93, 252, 255, 93, 93, 252, 255, 93, 93, 252, 255, 93, 93, 252, 255, 93, 93, 252, 255, 93, 93, 252, 255, 93, 93, 252, 255, 93, 93, 252, 255, 93, 93, 252, 255, 93, 93, 252, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0),
1717
"format": "RGBA8",
@@ -20,8 +20,8 @@ data = {
2020
"width": 16
2121
}
2222

23-
[sub_resource type="ImageTexture" id="ImageTexture_ct3fy"]
24-
image = SubResource("Image_omdjy")
23+
[sub_resource type="ImageTexture" id="ImageTexture_12ecc"]
24+
image = SubResource("Image_jt3li")
2525

2626
[node name="EventNode" type="MarginContainer"]
2727
anchors_preset = 10
@@ -82,7 +82,7 @@ offset_left = -5.0
8282
offset_top = -10.0
8383
offset_right = 11.0
8484
offset_bottom = 6.0
85-
texture = SubResource("ImageTexture_ct3fy")
85+
texture = SubResource("ImageTexture_12ecc")
8686
stretch_mode = 5
8787

8888
[node name="TitleLabel" type="Label" parent="PanelContainer/VBoxContainer/Header"]
@@ -94,22 +94,24 @@ vertical_alignment = 1
9494
[node name="HeaderContent" type="HBoxContainer" parent="PanelContainer/VBoxContainer/Header"]
9595
unique_name_in_owner = true
9696
layout_mode = 2
97-
size_flags_horizontal = 3
9897

9998
[node name="ExpandButton" type="Button" parent="PanelContainer/VBoxContainer/Header"]
10099
unique_name_in_owner = true
100+
modulate = Color(0, 0, 0, 1)
101101
layout_mode = 2
102-
size_flags_horizontal = 10
102+
size_flags_horizontal = 2
103+
tooltip_text = "Fold/Unfold Settings"
103104
toggle_mode = true
104-
icon = SubResource("ImageTexture_ct3fy")
105+
icon = SubResource("ImageTexture_12ecc")
105106
flat = true
106107

107108
[node name="CollapseButton" type="Button" parent="PanelContainer/VBoxContainer/Header"]
108109
unique_name_in_owner = true
109110
visible = false
110111
layout_mode = 2
112+
tooltip_text = "Collapse Contained Events"
111113
toggle_mode = true
112-
icon = SubResource("ImageTexture_ct3fy")
114+
icon = SubResource("ImageTexture_12ecc")
113115
flat = true
114116

115117
[node name="Body" type="MarginContainer" parent="PanelContainer/VBoxContainer"]

0 commit comments

Comments
 (0)