Skip to content

Commit 4cdfc7b

Browse files
committed
Remove a bunch of noise from the scenes
Prevent icons and other theme stuff from always being loaded when opening these scenes in editor and remove the stored icons from the scenes.
1 parent f94dd51 commit 4cdfc7b

16 files changed

Lines changed: 98 additions & 352 deletions

addons/dialogic/Editor/CharacterEditor/character_editor.tscn

Lines changed: 1 addition & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -1,68 +1,15 @@
1-
[gd_scene load_steps=15 format=3 uid="uid://dlskc36c5hrwv"]
1+
[gd_scene load_steps=8 format=3 uid="uid://dlskc36c5hrwv"]
22

33
[ext_resource type="Script" uid="uid://cwhe7tpe75oh7" path="res://addons/dialogic/Editor/CharacterEditor/character_editor.gd" id="2"]
44
[ext_resource type="PackedScene" uid="uid://dbpkta2tjsqim" path="res://addons/dialogic/Editor/Common/hint_tooltip_icon.tscn" id="2_uhhqs"]
55
[ext_resource type="Script" uid="uid://deliic6d8vajo" path="res://addons/dialogic/Editor/CharacterEditor/character_editor_portrait_tree.gd" id="2_vad0i"]
66
[ext_resource type="Texture2D" uid="uid://bff65e82555qr" path="res://addons/dialogic/Editor/Images/Pieces/close-icon.svg" id="3_2ogmx"]
7-
[ext_resource type="Texture2D" uid="uid://babwe22dqjta" path="res://addons/dialogic/Editor/Images/Pieces/add-folder.svg" id="3_v1qnr"]
87
[ext_resource type="Texture2D" uid="uid://dx3o2ild56i76" path="res://addons/dialogic/Editor/Images/Pieces/closed-icon.svg" id="4_wg7ys"]
98

109
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_es2rd"]
1110

12-
[sub_resource type="Image" id="Image_2ogmx"]
13-
data = {
14-
"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),
15-
"format": "RGBA8",
16-
"height": 16,
17-
"mipmaps": false,
18-
"width": 16
19-
}
20-
21-
[sub_resource type="ImageTexture" id="ImageTexture_u1a6g"]
22-
image = SubResource("Image_2ogmx")
23-
2411
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_4xgdx"]
2512

26-
[sub_resource type="DPITexture" id="DPITexture_wg7ys"]
27-
_source = "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\"><path fill=\"#e0e0e0\" d=\"M5 2v2h2v8H5v2h2a1 1 0 0 0 1-1 1 1 0 0 0 1 1h2v-2H9V4h2V2H9a1 1 0 0 0-1 1 1 1 0 0 0-1-1z\"/></svg>
28-
"
29-
saturation = 2.0
30-
color_map = {
31-
Color(1, 0.37254903, 0.37254903, 1): Color(1, 0.47, 0.42, 1),
32-
Color(0.37254903, 1, 0.5921569, 1): Color(0.45, 0.95, 0.5, 1),
33-
Color(1, 0.8666667, 0.39607844, 1): Color(0.83, 0.78, 0.62, 1)
34-
}
35-
36-
[sub_resource type="DPITexture" id="DPITexture_g6lhc"]
37-
_source = "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\"><path fill=\"#e0e0e0\" d=\"m5 1v11h9v-6h-5v-5zm5 0v4h4zm-8 3v11h2 8v-2h-8v-9z\"/></svg>
38-
"
39-
saturation = 2.0
40-
color_map = {
41-
Color(1, 0.37254903, 0.37254903, 1): Color(1, 0.47, 0.42, 1),
42-
Color(0.37254903, 1, 0.5921569, 1): Color(0.45, 0.95, 0.5, 1),
43-
Color(1, 0.8666667, 0.39607844, 1): Color(0.83, 0.78, 0.62, 1)
44-
}
45-
46-
[sub_resource type="DPITexture" id="DPITexture_jepqx"]
47-
_source = "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\"><path fill=\"#e0e0e0\" d=\"m5 1v1h-4v2h14v-2h-4v-1zm-3 4v8a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2v-8zm1 2h2v6h-2zm4 0h2v6h-2zm4 0h2v6h-2z\"/></svg>
48-
"
49-
saturation = 2.0
50-
color_map = {
51-
Color(1, 0.37254903, 0.37254903, 1): Color(1, 0.47, 0.42, 1),
52-
Color(0.37254903, 1, 0.5921569, 1): Color(0.45, 0.95, 0.5, 1),
53-
Color(1, 0.8666667, 0.39607844, 1): Color(0.83, 0.78, 0.62, 1)
54-
}
55-
56-
[sub_resource type="DPITexture" id="DPITexture_ed0ph"]
57-
_source = "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\"><path fill=\"#e0e0e0\" d=\"M8 1.7 5.626 5.797 1 6.895l3.236 3.408-.359 4.673 4.14-1.977 4.157 1.942-.396-4.653L15 6.895l-4.626-1.098z\"/></svg>
58-
"
59-
saturation = 2.0
60-
color_map = {
61-
Color(1, 0.37254903, 0.37254903, 1): Color(1, 0.47, 0.42, 1),
62-
Color(0.37254903, 1, 0.5921569, 1): Color(0.45, 0.95, 0.5, 1),
63-
Color(1, 0.8666667, 0.39607844, 1): Color(0.83, 0.78, 0.62, 1)
64-
}
65-
6613
[node name="CharacterEditor" type="Control" unique_id=1430618019]
6714
self_modulate = Color(0, 0, 0, 1)
6815
layout_mode = 3
@@ -214,21 +161,18 @@ unique_name_in_owner = true
214161
layout_mode = 2
215162
tooltip_text = "Add portrait"
216163
theme_type_variation = &"FlatButton"
217-
icon = SubResource("ImageTexture_u1a6g")
218164

219165
[node name="AddPortraitGroupButton" type="Button" parent="Scroll/VBox/MainHSplit/Split/HBoxContainer/MarginContainer/PortraitListSection/Portraits/Title" unique_id=554125997]
220166
unique_name_in_owner = true
221167
layout_mode = 2
222168
tooltip_text = "Add Group"
223169
theme_type_variation = &"FlatButton"
224-
icon = ExtResource("3_v1qnr")
225170

226171
[node name="ImportPortraitsButton" type="Button" parent="Scroll/VBox/MainHSplit/Split/HBoxContainer/MarginContainer/PortraitListSection/Portraits/Title" unique_id=423626215]
227172
unique_name_in_owner = true
228173
layout_mode = 2
229174
tooltip_text = "Import images from folder"
230175
theme_type_variation = &"FlatButton"
231-
icon = SubResource("ImageTexture_u1a6g")
232176

233177
[node name="PortraitListTools" type="HBoxContainer" parent="Scroll/VBox/MainHSplit/Split/HBoxContainer/MarginContainer/PortraitListSection/Portraits" unique_id=1864279451]
234178
layout_mode = 2
@@ -241,7 +185,6 @@ size_flags_vertical = 4
241185
placeholder_text = "Filter Portraits"
242186
expand_to_text_length = true
243187
clear_button_enabled = true
244-
right_icon = SubResource("ImageTexture_u1a6g")
245188
caret_blink = true
246189
caret_blink_interval = 0.5
247190

@@ -261,18 +204,14 @@ script = ExtResource("2_vad0i")
261204
size = Vector2i(118, 100)
262205
item_count = 5
263206
item_0/text = "Rename"
264-
item_0/icon = SubResource("DPITexture_wg7ys")
265207
item_0/id = 2
266208
item_1/text = "Duplicate"
267-
item_1/icon = SubResource("DPITexture_g6lhc")
268209
item_1/id = 0
269210
item_2/text = "Delete"
270-
item_2/icon = SubResource("DPITexture_jepqx")
271211
item_2/id = 1
272212
item_3/id = 3
273213
item_3/separator = true
274214
item_4/text = "Make Default"
275-
item_4/icon = SubResource("DPITexture_ed0ph")
276215
item_4/id = 4
277216

278217
[node name="PortraitChangeInfo" type="HBoxContainer" parent="Scroll/VBox/MainHSplit/Split/HBoxContainer/MarginContainer/PortraitListSection/Portraits" unique_id=867743359]
@@ -336,7 +275,6 @@ position = Vector2(13, 17)
336275
[node name="RealPreviewPivot" type="Sprite2D" parent="Scroll/VBox/MainHSplit/Split/RightSection2/RightSection/PortraitPreviewSection/ClipRect/Node2D" unique_id=1422961354]
337276
unique_name_in_owner = true
338277
position = Vector2(329, 287)
339-
texture = SubResource("ImageTexture_u1a6g")
340278

341279
[node name="ScenePreviewWarning" type="Label" parent="Scroll/VBox/MainHSplit/Split/RightSection2/RightSection/PortraitPreviewSection" unique_id=1589232067]
342280
unique_name_in_owner = true
@@ -428,7 +366,6 @@ tooltip_text = "Real scale"
428366
focus_mode = 0
429367
toggle_mode = true
430368
button_pressed = true
431-
icon = SubResource("ImageTexture_u1a6g")
432369
flat = true
433370
metadata/_edit_layout_mode = 1
434371

@@ -453,7 +390,6 @@ modulate = Color(1, 1, 1, 0.647059)
453390
layout_mode = 2
454391
tooltip_text = "Switch position"
455392
focus_mode = 0
456-
icon = SubResource("ImageTexture_u1a6g")
457393
flat = true
458394

459395
[node name="Scroll" type="ScrollContainer" parent="Scroll/VBox/MainHSplit/Split/RightSection2/RightSection/VBox" unique_id=1486898798]

addons/dialogic/Editor/CharacterEditor/character_editor_portrait_tree.gd

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ var current_group_nodes := {}
88

99

1010
func _ready() -> void:
11+
if owner.get_parent() is SubViewport:
12+
return
1113
$PortraitRightClickMenu.set_item_icon(0, get_theme_icon('Rename', 'EditorIcons'))
1214
$PortraitRightClickMenu.set_item_icon(1, get_theme_icon('Duplicate', 'EditorIcons'))
1315
$PortraitRightClickMenu.set_item_icon(2, get_theme_icon('Remove', 'EditorIcons'))

addons/dialogic/Editor/Common/ReferenceManager_AddReplacementPanel.gd

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ var item: TreeItem = null
99

1010

1111
func _ready() -> void:
12+
if get_parent() is SubViewport:
13+
return
1214
hide()
1315
%Character.resource_icon = load("res://addons/dialogic/Editor/Images/Resources/character.svg")
1416
%Character.suggestions_func = get_character_suggestions

0 commit comments

Comments
 (0)