diff --git a/addons/godot-plugin-refresher/plugin_refresher.gd b/addons/godot-plugin-refresher/plugin_refresher.gd index 9ecf8c2..de87292 100644 --- a/addons/godot-plugin-refresher/plugin_refresher.gd +++ b/addons/godot-plugin-refresher/plugin_refresher.gd @@ -7,6 +7,8 @@ signal confirm_refresh_plugin(p_name) onready var options = $OptionButton func _ready(): + if get_tree().edited_scene_root == self: + return # This is the scene opened in the editor! $RefreshButton.icon = get_icon("Reload", "EditorIcons") diff --git a/addons/godot-plugin-refresher/plugin_refresher.tscn b/addons/godot-plugin-refresher/plugin_refresher.tscn index 5fe3737..9cd93e4 100644 --- a/addons/godot-plugin-refresher/plugin_refresher.tscn +++ b/addons/godot-plugin-refresher/plugin_refresher.tscn @@ -31,5 +31,6 @@ margin_bottom = 110.0 rect_min_size = Vector2( 300, 70 ) window_title = "Plugin Refresher" dialog_autowrap = true + [connection signal="pressed" from="RefreshButton" to="." method="_on_RefreshButton_pressed"] [connection signal="confirmed" from="ConfirmationDialog" to="." method="_on_ConfirmationDialog_confirmed"] diff --git a/project.godot b/project.godot index 5f38c99..77bd0b5 100644 --- a/project.godot +++ b/project.godot @@ -10,12 +10,12 @@ config_version=4 _global_script_classes=[ ] _global_script_class_icons={ - } [application] config/name="Godot Plugin Refresher" +run/main_scene="res://addons/godot-plugin-refresher/plugin_refresher.tscn" config/icon="res://icon.png" [editor_plugins] @@ -98,3 +98,9 @@ ui_end={ "events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777230,"unicode":0,"echo":false,"script":null) ] } + +[rendering] + +quality/driver/driver_name="GLES2" +vram_compression/import_etc=true +vram_compression/import_etc2=false