diff --git a/addons/Wol/editor/WolEditor.gd b/addons/Wol/editor/WolEditor.gd index d5ecd9f..0a4b8a0 100644 --- a/addons/Wol/editor/WolEditor.gd +++ b/addons/Wol/editor/WolEditor.gd @@ -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 # 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 # Web version @@ -254,6 +254,17 @@ func reconnect_nodes(): saved_all_changes = last_save and last_save == serialize_to_file() 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(): var filename = 'Unnamed file' if not path else path.get_file() var unsaved = '' if saved_all_changes else '*' diff --git a/addons/Wol/editor/WolEditor.tscn b/addons/Wol/editor/WolEditor.tscn index a9f520a..8b89c06 100644 --- a/addons/Wol/editor/WolEditor.tscn +++ b/addons/Wol/editor/WolEditor.tscn @@ -157,12 +157,12 @@ flat = true [node name="AuthorNotice" type="Button" parent="Menu"] modulate = Color( 1, 1, 1, 0.466667 ) -margin_left = 846.0 +margin_left = 715.0 margin_right = 1016.0 margin_bottom = 32.0 focus_mode = 0 size_flags_horizontal = 10 -text = "By @bram_dingelstad" +text = "By @bram_dingelstad (available for hire)" flat = true [node name="BackPadding" type="Control" parent="Menu"] @@ -701,6 +701,7 @@ __meta__ = { } [node name="AboutDialog" type="WindowDialog" parent="."] +visible = true anchor_left = 0.5 anchor_top = 0.5 anchor_right = 0.5 @@ -724,12 +725,15 @@ margin_right = -8.0 margin_bottom = -6.0 custom_fonts/normal_font = ExtResource( 6 ) 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]." -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." +__meta__ = { +"_edit_use_anchors_": false +} [node name="TextureRect" type="TextureRect" parent="AboutDialog"] anchor_left = 0.5