Skip to content

Commit c7cc8aa

Browse files
Multiple final fixes/improvements (#1964)
* Improve and fix autocompletion & label suggestions * Add additional safety checks before accessing resource/dict entries * Fix text speed multiplier not resetting * Fix style switching This includes some adjustments to the vn textbox layer, because it had some trouble adjusting export overrides when it already existed. * Small auto-completion fix * Small glossaries fix * Small [mood] effect fix * Small stuff * Update imports * Remove bad Dialogic reference * Fix unique identifier tooltips * Version increase and small adjustments to update checker window * Fix broken Getting Started link on home page
1 parent 3e90442 commit c7cc8aa

File tree

83 files changed

+213
-186
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

83 files changed

+213
-186
lines changed

addons/dialogic/Editor/CharacterEditor/character_editor.tscn

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,23 @@
1-
[gd_scene load_steps=9 format=3 uid="uid://dlskc36c5hrwv"]
1+
[gd_scene load_steps=11 format=3 uid="uid://dlskc36c5hrwv"]
22

33
[ext_resource type="Script" 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" path="res://addons/dialogic/Editor/CharacterEditor/character_editor_portrait_tree.gd" id="2_vad0i"]
66
[ext_resource type="Texture2D" uid="uid://babwe22dqjta" path="res://addons/dialogic/Editor/Images/Pieces/add-folder.svg" id="3_v1qnr"]
77

8-
[sub_resource type="Image" id="Image_hdno4"]
8+
[sub_resource type="Image" id="Image_3cd31"]
9+
data = {
10+
"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),
11+
"format": "RGBA8",
12+
"height": 16,
13+
"mipmaps": false,
14+
"width": 16
15+
}
16+
17+
[sub_resource type="ImageTexture" id="ImageTexture_wvrw5"]
18+
image = SubResource("Image_3cd31")
19+
20+
[sub_resource type="Image" id="Image_jach8"]
921
data = {
1022
"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),
1123
"format": "RGBA8",
@@ -15,7 +27,7 @@ data = {
1527
}
1628

1729
[sub_resource type="ImageTexture" id="ImageTexture_u1a6g"]
18-
image = SubResource("Image_hdno4")
30+
image = SubResource("Image_jach8")
1931

2032
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_es2rd"]
2133

@@ -57,8 +69,9 @@ text = "My Character"
5769
[node name="NameTooltip" parent="VBoxContainer/TopSection/NameContainer" instance=ExtResource("2_uhhqs")]
5870
layout_mode = 2
5971
tooltip_text = "This name is determined from the file name. Use this name in timelines to reference this character."
60-
texture = SubResource("ImageTexture_u1a6g")
61-
hint_text = "This name is determined from the file name. Use this name in timelines to reference this character."
72+
texture = SubResource("ImageTexture_wvrw5")
73+
hint_text = "This unique identifier is based on the file name. You can change it in the Reference Manager.
74+
Use this name in timelines to reference this character."
6275

6376
[node name="MainSettingsCollapse" type="Button" parent="VBoxContainer/TopSection"]
6477
unique_name_in_owner = true
@@ -183,13 +196,13 @@ script = ExtResource("2_vad0i")
183196
size = Vector2i(118, 100)
184197
item_count = 3
185198
item_0/text = "Rename"
186-
item_0/icon = SubResource("ImageTexture_u1a6g")
199+
item_0/icon = SubResource("ImageTexture_wvrw5")
187200
item_0/id = 2
188201
item_1/text = "Duplicate"
189-
item_1/icon = SubResource("ImageTexture_u1a6g")
202+
item_1/icon = SubResource("ImageTexture_wvrw5")
190203
item_1/id = 0
191204
item_2/text = "Delete"
192-
item_2/icon = SubResource("ImageTexture_u1a6g")
205+
item_2/icon = SubResource("ImageTexture_wvrw5")
193206
item_2/id = 1
194207

195208
[node name="PortraitChangeInfo" type="HBoxContainer" parent="VBoxContainer/MainHSplit/Split/HBoxContainer/MarginContainer/PortraitListSection/Portraits"]

addons/dialogic/Editor/Common/sidebar.gd

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,11 @@ func update_content_list(list:PackedStringArray) -> void:
157157
var label_directory := DialogicResourceUtil.get_label_cache()
158158
if current_resource != null:
159159
for i in timeline_directory:
160-
if timeline_directory[i] == current_resource.resource_path:
160+
if timeline_directory[i] == current_resource.resource_path:
161161
label_directory[i] = list
162162

163+
# also always store the current timelines labels for easy access
164+
label_directory[""] = list
165+
163166
DialogicResourceUtil.set_label_cache(label_directory)
164167

addons/dialogic/Editor/Common/update_install_window.gd

Lines changed: 31 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -33,20 +33,37 @@ func load_info(info:Dictionary, update_type:int) -> void:
3333
%ShortInfo.text = "Huh, what happened here?"
3434
%ReadFull.hide()
3535
%Install.disabled = true
36+
return
37+
38+
# If we are up to date (or beyond):
39+
if info.is_empty():
40+
info['name'] = "You are in the future, Marty!"
41+
info["body"] = "# 😎 You are using the WIP branch!\nSeems like you are using a version that isn't even released yet. Be careful and give us your feedback ;)"
42+
info["published_at"] = "????T"
43+
info["author"] = {'login':"???"}
44+
%State.text = "Where are we Doc?"
45+
%UpdateName.add_theme_color_override("font_color", editor_view.get_theme_color("property_color_z", "Editor"))
46+
%Install.disabled = true
47+
48+
elif update_type == 0:
49+
%State.text = "Update Available!"
50+
%UpdateName.add_theme_color_override("font_color", editor_view.get_theme_color("warning_color", "Editor"))
51+
%Install.disabled = false
3652
else:
37-
%UpdateName.text = info.name
38-
%Content.text = markdown_to_bbcode('#'+info.body.get_slice('#', 1)).strip_edges()
39-
%ShortInfo.text = "Published on "+info.published_at.substr(0, info.published_at.find('T'))+" by "+info.author.login
53+
%State.text = "You are up to date:"
54+
%UpdateName.add_theme_color_override("font_color", editor_view.get_theme_color("success_color", "Editor"))
55+
%Install.disabled = true
56+
57+
%UpdateName.text = info.name
58+
%Content.text = markdown_to_bbcode('#'+info.body.get_slice('#', 1)).strip_edges()
59+
%ShortInfo.text = "Published on "+info.published_at.substr(0, info.published_at.find('T'))+" by "+info.author.login
60+
if info.has("html_url"):
4061
%ReadFull.uri = info.html_url
4162
%ReadFull.show()
42-
if update_type == 0:
43-
%State.text = "Update Available!"
44-
%UpdateName.add_theme_color_override("font_color", editor_view.get_theme_color("warning_color", "Editor"))
45-
%Install.disabled = false
46-
else:
47-
%State.text = "You are up to date:"
48-
%UpdateName.add_theme_color_override("font_color", editor_view.get_theme_color("success_color", "Editor"))
49-
%Install.disabled = true
63+
else:
64+
%ReadFull.hide()
65+
if info.has('reactions'):
66+
%Reactions.show()
5067
var reactions := {"laugh":"😂", "hooray":"🎉", "confused":"😕", "heart":"❤️", "rocket":"🚀", "eyes":"👀"}
5168
for i in reactions:
5269
%Reactions.get_node(i.capitalize()).visible = info.reactions[i] > 0
@@ -56,7 +73,8 @@ func load_info(info:Dictionary, update_type:int) -> void:
5673
%Reactions.get_node("Likes").text = "👍 "+str(info.reactions['+1']+info.reactions['-1'])
5774
else:
5875
%Reactions.get_node("Likes").visible = false
59-
76+
else:
77+
%Reactions.hide()
6078

6179
func _on_window_close_requested():
6280
get_parent().visible = false
@@ -93,7 +111,7 @@ func _on_resources_reimported(resources:Array) -> void:
93111

94112

95113
func markdown_to_bbcode(text:String) -> String:
96-
var font_sizes := {1:16, 2:16, 3:16,4:14, 5:14}
114+
var font_sizes := {1:20, 2:16, 3:16,4:14, 5:14}
97115
var title_regex := RegEx.create_from_string('(^|\n)((?<level>#+)(?<title>.*))\\n')
98116
var res := title_regex.search(text)
99117
while res:

addons/dialogic/Editor/Common/update_manager.gd

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ func _on_UpdateCheck_request_completed(result:int, response_code:int, headers:Pa
5555
update_info = versions[0]
5656
update_check_completed.emit(UpdateCheckResult.UPDATE_AVAILABLE)
5757
else:
58-
update_info = {}
58+
update_info = current_info
5959
update_check_completed.emit(UpdateCheckResult.UP_TO_DATE)
6060

6161

@@ -70,12 +70,15 @@ func compare_versions(release, current_release_info:Dictionary) -> bool:
7070

7171
if checked_release_info.state < current_release_info.state:
7272
return false
73+
7374
elif checked_release_info.state == current_release_info.state:
7475
if checked_release_info.state_version < current_release_info.state_version:
7576
return false
77+
7678
if checked_release_info.state_version == current_release_info.state_version:
7779
current_info = release
7880
return false
81+
7982
if checked_release_info.state == ReleaseState.STABLE:
8083
if checked_release_info.minor == current_release_info.minor:
8184
current_info = release

addons/dialogic/Editor/HomePage/home_page.gd

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ func _get_icon() -> Texture:
1414
func _ready():
1515
self_modulate = get_theme_color("font_color", "Editor")
1616
self_modulate.a = 0.2
17-
17+
1818
var edit_scale := DialogicUtil.get_editor_scale()
1919
%HomePageBox.custom_minimum_size = Vector2(600, 350)*edit_scale
2020
%TopPanel.custom_minimum_size.y = 100*edit_scale
2121
%VersionLabel.set('theme_override_font_sizes/font_size', 10 * edit_scale)
2222
var plugin_cfg := ConfigFile.new()
2323
plugin_cfg.load("res://addons/dialogic/plugin.cfg")
2424
%VersionLabel.text = plugin_cfg.get_value('plugin', 'version', 'unknown version')
25-
25+
2626
%BottomPanel.self_modulate = get_theme_color("dark_color_3", "Editor")
2727

2828
%RandomTipLabel.add_theme_color_override("font_color", get_theme_color("property_color_z", "Editor"))
@@ -32,7 +32,7 @@ func _ready():
3232

3333
func _register():
3434
editors_manager.register_simple_editor(self)
35-
35+
3636
self.alternative_text = "Welcome to dialogic!"
3737

3838

@@ -42,7 +42,7 @@ func _open(extra_info:Variant="") -> void:
4242
var file := FileAccess.open('res://addons/dialogic/Editor/HomePage/tips.txt', FileAccess.READ)
4343
tips = file.get_as_text().split('\n')
4444
tips = tips.filter(func(item): return !item.is_empty())
45-
45+
4646
randomize()
4747
var tip :String = tips[randi()%len(tips)]
4848
var text := tip.get_slice(';',0).strip_edges()
@@ -57,17 +57,17 @@ func show_tip(text:String='', action:String='') -> void:
5757
%TipBox.hide()
5858
%RandomTipLabel.hide()
5959
return
60-
60+
6161
%TipBox.show()
6262
%RandomTipLabel.show()
6363
%RandomTip.text = '[i]'+text
64-
64+
6565
if action.is_empty():
6666
%RandomTipMoreButton.hide()
6767
return
68-
68+
6969
%RandomTipMoreButton.show()
70-
70+
7171
if %RandomTipMoreButton.pressed.is_connected(_on_tip_action):
7272
%RandomTipMoreButton.pressed.disconnect(_on_tip_action)
7373
%RandomTipMoreButton.pressed.connect(_on_tip_action.bind(action))

0 commit comments

Comments
 (0)