Skip to content

Commit 88ea565

Browse files
Various fixes/improvements (#2342)
- Adds "RightClick>Copy Path" to Variable Editor - Makes the layered portraits base sprite centered (like the other sprites) - Due to the new "fix_offset" option, this doesn't matter anymore and because centered=true is the default of the Sprite node, this usually means less steps when setting a portrait up. - Changes the donation link on the home page
1 parent a964273 commit 88ea565

File tree

6 files changed

+65
-35
lines changed

6 files changed

+65
-35
lines changed

addons/dialogic/Core/index_class.gd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ extends RefCounted
77
## Overwrite the methods to return the contents of that folder.
88

99

10-
var this_folder : String = get_script().resource_path.get_base_dir()
10+
var this_folder: String = get_script().resource_path.get_base_dir()
1111

1212
## Overwrite if this module contains any events. [br]
1313
## Return an array with all the paths to the event scripts.[br]

addons/dialogic/Editor/HomePage/home_page.tscn

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ corner_radius_top_right = 5
102102
corner_radius_bottom_right = 5
103103
corner_radius_bottom_left = 5
104104

105-
[sub_resource type="Image" id="Image_ubn0t"]
105+
[sub_resource type="Image" id="Image_e1dkh"]
106106
data = {
107107
"data": PackedByteArray(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, 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, 94, 94, 127, 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, 94, 94, 127, 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, 94, 94, 127, 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, 255, 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, 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, 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, 94, 94, 54, 255, 94, 94, 57, 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, 93, 93, 44, 255, 255, 255, 0, 255, 97, 97, 42, 255, 97, 97, 42, 255, 255, 255, 0, 255, 96, 96, 45, 255, 93, 93, 44, 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, 94, 94, 234, 255, 95, 95, 43, 255, 255, 255, 0, 255, 255, 255, 0, 255, 96, 96, 45, 255, 93, 93, 235, 255, 94, 94, 234, 255, 95, 95, 43, 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, 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, 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),
108108
"format": "RGBA8",
@@ -111,8 +111,8 @@ data = {
111111
"width": 16
112112
}
113113

114-
[sub_resource type="ImageTexture" id="ImageTexture_jsefb"]
115-
image = SubResource("Image_ubn0t")
114+
[sub_resource type="ImageTexture" id="ImageTexture_sr7s6"]
115+
image = SubResource("Image_e1dkh")
116116

117117
[node name="HomePage" type="TextureRect"]
118118
self_modulate = Color(0, 0, 0, 0.2)
@@ -234,7 +234,7 @@ modulate = Color(1, 1, 1, 0.501961)
234234
layout_mode = 2
235235
size_flags_vertical = 8
236236
theme_override_font_sizes/font_size = 10
237-
text = "2.0-Alpha-13 (Godot 4.2+)"
237+
text = "2.0-Alpha-15 WIP (Godot 4.2+)"
238238
horizontal_alignment = 2
239239

240240
[node name="ScrollContainer" type="ScrollContainer" parent="CenterContainer/HomePageBox/BottomPanel"]
@@ -305,7 +305,7 @@ layout_mode = 2
305305
theme_type_variation = &"DialogicLink"
306306
text = " Donate"
307307
underline = 2
308-
uri = "https://www.patreon.com/coppolaemilio"
308+
uri = "https://www.patreon.com/JowanSpooner"
309309

310310
[node name="CenterContainer2" type="VBoxContainer" parent="CenterContainer/HomePageBox/BottomPanel/ScrollContainer/HBoxContainer"]
311311
layout_mode = 2
@@ -369,5 +369,5 @@ grow_vertical = 0
369369
tooltip_text = "Check it out!"
370370
theme_override_styles/normal = SubResource("StyleBoxFlat_ckyhx")
371371
theme_override_styles/hover = SubResource("StyleBoxFlat_l1doy")
372-
icon = SubResource("ImageTexture_jsefb")
372+
icon = SubResource("ImageTexture_sr7s6")
373373
expand_icon = true

addons/dialogic/Editor/HomePage/tips.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ If there are events you never need, you can hide them from the list in the edito
44
Did you know that dialogic supports translations? It does!; editor://Settings->Translations
55
You can use [b]bbcode effects[/b] in text events! What are they though???; https://docs.godotengine.org/en/latest/tutorials/ui/bbcode_in_richtextlabel.html
66
Writing [/i]<Oh hi/Hello you/Well, well>[i] in a text event will pick a random one of the three strings!
7-
There are a number of cool text effects like [pause=x], [speed=x] and [portrait=x]. Try them out!; editor://Settings->Text
7+
There are a number of cool text effects like [pause=x], [speed=x] and [portrait=x]. Try them out!;
88
You can use scenes as portraits! This gives you basically limitless freedom.; https://dialogic-docs.coppolaemilio.com/custom-portraits.html
99
You can use scenes as backgrounds. This way they can be animated or whatever you want!
1010
Dialogic has a built in save and load system! It's pretty powerful!; editor://Settings->Saving

addons/dialogic/Modules/LayeredPortrait/layered_portrait.tscn

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
script = ExtResource("1_uubi5")
77

88
[node name="Layer1" type="Sprite2D" parent="."]
9-
centered = false
109

1110
[node name="Group1" type="Node2D" parent="."]
1211

addons/dialogic/Modules/Variable/variables_editor/variable_tree.gd

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ func _ready() -> void:
2424
child.toggled.connect(_on_type_pressed.bind(child.get_index()+1))
2525
child.icon = get_theme_icon(["String", "float", "int", "bool"][child.get_index()], "EditorIcons")
2626

27+
%RightClickMenu.set_item_icon(0, get_theme_icon("ActionCopy", "EditorIcons"))
2728
#endregion
2829

2930

@@ -324,13 +325,28 @@ func report_name_changes(item:TreeItem) -> void:
324325

325326

326327
func get_item_path(item:TreeItem) -> String:
327-
if item.get_meta('type') == "VARIABLE":
328-
var path := item.get_text(0)
329-
while item.get_parent() != get_root():
330-
item = item.get_parent()
331-
path = item.get_text(0)+"."+path
332-
return path
333-
return ""
334-
328+
var path := item.get_text(0)
329+
while item.get_parent() != get_root():
330+
item = item.get_parent()
331+
path = item.get_text(0)+"."+path
332+
return path
335333

336334
#endregion
335+
336+
337+
func _on_gui_input(event: InputEvent) -> void:
338+
if event is InputEventMouseButton and event.button_index == MOUSE_BUTTON_MASK_RIGHT and event.pressed:
339+
var item := get_item_at_position(get_local_mouse_position())
340+
if item and item != get_root():
341+
%RightClickMenu.popup_on_parent(Rect2(get_global_mouse_position(), Vector2()))
342+
%RightClickMenu.set_item_text(0, 'Copy "' + get_item_path(item) + '"')
343+
%RightClickMenu.set_meta("item", item)
344+
%RightClickMenu.size = Vector2()
345+
346+
347+
func _on_right_click_menu_id_pressed(id: int) -> void:
348+
if %RightClickMenu.get_meta("item", null) == null:
349+
return
350+
match id:
351+
0:
352+
DisplayServer.clipboard_set(get_item_path(%RightClickMenu.get_meta("item")))

addons/dialogic/Modules/Variable/variables_editor/variables_editor.tscn

Lines changed: 33 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[ext_resource type="Script" path="res://addons/dialogic/Modules/Variable/variables_editor/variables_editor.gd" id="2"]
44
[ext_resource type="Script" path="res://addons/dialogic/Modules/Variable/variables_editor/variable_tree.gd" id="2_1i17i"]
55

6-
[sub_resource type="Image" id="Image_vjanf"]
6+
[sub_resource type="Image" id="Image_e1dkh"]
77
data = {
88
"data": PackedByteArray(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, 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, 94, 94, 127, 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, 94, 94, 127, 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, 94, 94, 127, 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, 255, 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, 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, 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, 94, 94, 54, 255, 94, 94, 57, 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, 93, 93, 44, 255, 255, 255, 0, 255, 97, 97, 42, 255, 97, 97, 42, 255, 255, 255, 0, 255, 96, 96, 45, 255, 93, 93, 44, 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, 94, 94, 234, 255, 95, 95, 43, 255, 255, 255, 0, 255, 255, 255, 0, 255, 96, 96, 45, 255, 93, 93, 235, 255, 94, 94, 234, 255, 95, 95, 43, 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, 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, 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),
99
"format": "RGBA8",
@@ -12,21 +12,26 @@ data = {
1212
"width": 16
1313
}
1414

15-
[sub_resource type="ImageTexture" id="ImageTexture_ikdle"]
16-
image = SubResource("Image_vjanf")
15+
[sub_resource type="ImageTexture" id="ImageTexture_sr7s6"]
16+
image = SubResource("Image_e1dkh")
1717

18-
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_o6616"]
19-
content_margin_left = 4.0
20-
content_margin_top = 4.0
21-
content_margin_right = 4.0
22-
content_margin_bottom = 4.0
23-
bg_color = Color(1, 0.365, 0.365, 1)
24-
draw_center = false
18+
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_7aodm"]
19+
content_margin_left = 2.0
20+
content_margin_top = 0.0
21+
content_margin_right = 2.0
22+
content_margin_bottom = 0.0
23+
bg_color = Color(0.44, 0.73, 0.98, 0.1)
2524
border_width_left = 2
2625
border_width_top = 2
2726
border_width_right = 2
2827
border_width_bottom = 2
29-
corner_detail = 1
28+
border_color = Color(0.44, 0.73, 0.98, 1)
29+
corner_radius_top_left = 3
30+
corner_radius_top_right = 3
31+
corner_radius_bottom_right = 3
32+
corner_radius_bottom_left = 3
33+
corner_detail = 3
34+
anti_aliasing = false
3035

3136
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_vn21i"]
3237

@@ -42,9 +47,9 @@ expand_margin_bottom = 4.0
4247
anti_aliasing = false
4348

4449
[sub_resource type="Theme" id="Theme_17j6i"]
45-
Button/styles/hover = SubResource("StyleBoxFlat_o6616")
50+
Button/styles/hover = SubResource("StyleBoxFlat_7aodm")
4651
Button/styles/normal = SubResource("StyleBoxEmpty_vn21i")
47-
Button/styles/pressed = SubResource("StyleBoxFlat_o6616")
52+
Button/styles/pressed = SubResource("StyleBoxFlat_7aodm")
4853
pressed/styles/Button = SubResource("StyleBoxFlat_ffuxp")
4954

5055
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_ncgqs"]
@@ -79,7 +84,7 @@ unique_name_in_owner = true
7984
layout_mode = 2
8085
size_flags_horizontal = 3
8186
placeholder_text = "Search"
82-
right_icon = SubResource("ImageTexture_ikdle")
87+
right_icon = SubResource("ImageTexture_sr7s6")
8388

8489
[node name="Tree" type="Tree" parent="Editor"]
8590
unique_name_in_owner = true
@@ -112,33 +117,41 @@ custom_minimum_size = Vector2(30, 30)
112117
layout_mode = 2
113118
tooltip_text = "String (Any text)"
114119
toggle_mode = true
115-
icon = SubResource("ImageTexture_ikdle")
120+
icon = SubResource("ImageTexture_sr7s6")
116121
icon_alignment = 1
117122

118123
[node name="Float" type="Button" parent="Editor/Tree/ChangeTypePopup/HBox"]
119124
custom_minimum_size = Vector2(30, 30)
120125
layout_mode = 2
121126
tooltip_text = "Float (Number with Decimals)"
122127
toggle_mode = true
123-
icon = SubResource("ImageTexture_ikdle")
128+
icon = SubResource("ImageTexture_sr7s6")
124129
icon_alignment = 1
125130

126131
[node name="Int" type="Button" parent="Editor/Tree/ChangeTypePopup/HBox"]
127132
custom_minimum_size = Vector2(30, 30)
128133
layout_mode = 2
129134
tooltip_text = "Int (Integer)"
130135
toggle_mode = true
131-
icon = SubResource("ImageTexture_ikdle")
136+
icon = SubResource("ImageTexture_sr7s6")
132137
icon_alignment = 1
133138

134139
[node name="Bool" type="Button" parent="Editor/Tree/ChangeTypePopup/HBox"]
135140
custom_minimum_size = Vector2(30, 30)
136141
layout_mode = 2
137142
tooltip_text = "Bool (True/False flag)"
138143
toggle_mode = true
139-
icon = SubResource("ImageTexture_ikdle")
144+
icon = SubResource("ImageTexture_sr7s6")
140145
icon_alignment = 1
141146

147+
[node name="RightClickMenu" type="PopupMenu" parent="Editor/Tree"]
148+
unique_name_in_owner = true
149+
size = Vector2i(67, 35)
150+
visible = true
151+
item_count = 1
152+
item_0/text = "Copy"
153+
item_0/id = 0
154+
142155
[node name="ReferenceInfo" type="HBoxContainer" parent="Editor"]
143156
unique_name_in_owner = true
144157
layout_mode = 2
@@ -179,5 +192,7 @@ fit_content = true
179192

180193
[connection signal="text_changed" from="Editor/HBox/Search" to="." method="_on_search_text_changed"]
181194
[connection signal="button_clicked" from="Editor/Tree" to="Editor/Tree" method="_on_button_clicked"]
195+
[connection signal="gui_input" from="Editor/Tree" to="Editor/Tree" method="_on_gui_input"]
182196
[connection signal="item_edited" from="Editor/Tree" to="Editor/Tree" method="_on_item_edited"]
197+
[connection signal="id_pressed" from="Editor/Tree/RightClickMenu" to="Editor/Tree" method="_on_right_click_menu_id_pressed"]
183198
[connection signal="pressed" from="Editor/ReferenceInfo/ReferenceManager" to="." method="_on_reference_manager_pressed"]

0 commit comments

Comments
 (0)