chore: fixed small bug and updated CTA
This commit is contained in:
parent
2f61960b40
commit
7e75aa9a9b
|
@ -15,7 +15,7 @@ onready var original_unsaved_dialog = $UnsavedDialog.dialog_text
|
||||||
onready var inside_godot_editor = not get_tree().current_scene and Engine.editor_hint
|
onready var inside_godot_editor = not get_tree().current_scene and Engine.editor_hint
|
||||||
|
|
||||||
# Godot Editor
|
# Godot Editor
|
||||||
# FIXME: Make all parts of the code "tool"s and safekeep its execution while in editora
|
# FIXME: Make all parts of the code "tool"s and safekeep its execution while in editor
|
||||||
# FIXME: Hide console when viewing Wol main screen
|
# FIXME: Hide console when viewing Wol main screen
|
||||||
|
|
||||||
# Web version
|
# Web version
|
||||||
|
@ -254,6 +254,17 @@ func reconnect_nodes():
|
||||||
saved_all_changes = last_save and last_save == serialize_to_file()
|
saved_all_changes = last_save and last_save == serialize_to_file()
|
||||||
update_title()
|
update_title()
|
||||||
|
|
||||||
|
if $Javascript:
|
||||||
|
$Javascript/Label.visible = get_node_count() == 0
|
||||||
|
|
||||||
|
func get_node_count():
|
||||||
|
var count = 0
|
||||||
|
for graph_node in $GraphEdit.get_children():
|
||||||
|
if graph_node is GraphNode:
|
||||||
|
count += 1
|
||||||
|
|
||||||
|
return count
|
||||||
|
|
||||||
func update_title():
|
func update_title():
|
||||||
var filename = 'Unnamed file' if not path else path.get_file()
|
var filename = 'Unnamed file' if not path else path.get_file()
|
||||||
var unsaved = '' if saved_all_changes else '*'
|
var unsaved = '' if saved_all_changes else '*'
|
||||||
|
|
|
@ -157,12 +157,12 @@ flat = true
|
||||||
|
|
||||||
[node name="AuthorNotice" type="Button" parent="Menu"]
|
[node name="AuthorNotice" type="Button" parent="Menu"]
|
||||||
modulate = Color( 1, 1, 1, 0.466667 )
|
modulate = Color( 1, 1, 1, 0.466667 )
|
||||||
margin_left = 846.0
|
margin_left = 715.0
|
||||||
margin_right = 1016.0
|
margin_right = 1016.0
|
||||||
margin_bottom = 32.0
|
margin_bottom = 32.0
|
||||||
focus_mode = 0
|
focus_mode = 0
|
||||||
size_flags_horizontal = 10
|
size_flags_horizontal = 10
|
||||||
text = "By @bram_dingelstad"
|
text = "By @bram_dingelstad (available for hire)"
|
||||||
flat = true
|
flat = true
|
||||||
|
|
||||||
[node name="BackPadding" type="Control" parent="Menu"]
|
[node name="BackPadding" type="Control" parent="Menu"]
|
||||||
|
@ -701,6 +701,7 @@ __meta__ = {
|
||||||
}
|
}
|
||||||
|
|
||||||
[node name="AboutDialog" type="WindowDialog" parent="."]
|
[node name="AboutDialog" type="WindowDialog" parent="."]
|
||||||
|
visible = true
|
||||||
anchor_left = 0.5
|
anchor_left = 0.5
|
||||||
anchor_top = 0.5
|
anchor_top = 0.5
|
||||||
anchor_right = 0.5
|
anchor_right = 0.5
|
||||||
|
@ -724,12 +725,15 @@ margin_right = -8.0
|
||||||
margin_bottom = -6.0
|
margin_bottom = -6.0
|
||||||
custom_fonts/normal_font = ExtResource( 6 )
|
custom_fonts/normal_font = ExtResource( 6 )
|
||||||
bbcode_enabled = true
|
bbcode_enabled = true
|
||||||
bbcode_text = "Wol actively maintained by [url=https://bram.dingelstad.works]Bram Dingelstad[/url] ([url=https://hire.bram.dingelstad.works]hire me[/url]).
|
bbcode_text = "Wol is actively maintained by [url=https://bram.dingelstad.works]Bram Dingelstad[/url] ([url=https://hire.bram.dingelstad.works]hire me[/url]).
|
||||||
|
|
||||||
Based on [url=https://github.com/kyperbelt/GDYarn]GDYarn by kyperbelt[/url] & [url=https://yarnspinner.dev/]YarnSpinner by Secret Labs[/url]."
|
Based on [url=https://github.com/kyperbelt/GDYarn]GDYarn by kyperbelt[/url] & [url=https://yarnspinner.dev/]YarnSpinner by Secret Labs[/url]."
|
||||||
text = "Wol actively maintained by Bram Dingelstad (hire me).
|
text = "Wol is actively maintained by Bram Dingelstad (hire me).
|
||||||
|
|
||||||
Based on GDYarn by kyperbelt & YarnSpinner by Secret Labs."
|
Based on GDYarn by kyperbelt & YarnSpinner by Secret Labs."
|
||||||
|
__meta__ = {
|
||||||
|
"_edit_use_anchors_": false
|
||||||
|
}
|
||||||
|
|
||||||
[node name="TextureRect" type="TextureRect" parent="AboutDialog"]
|
[node name="TextureRect" type="TextureRect" parent="AboutDialog"]
|
||||||
anchor_left = 0.5
|
anchor_left = 0.5
|
||||||
|
|
Reference in a new issue