-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated README with 4.3 branch information and removed updater
- Loading branch information
1 parent
da544d2
commit 9f9f2aa
Showing
15 changed files
with
7 additions
and
848 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
34 changes: 0 additions & 34 deletions
34
addons/ninetailsrabbit.terrainy/assets/progress-background.png.import
This file was deleted.
Oops, something went wrong.
Binary file removed
BIN
-3.74 KB
addons/ninetailsrabbit.terrainy/assets/progress_background_green.png
Binary file not shown.
34 changes: 0 additions & 34 deletions
34
addons/ninetailsrabbit.terrainy/assets/progress_background_green.png.import
This file was deleted.
Oops, something went wrong.
22 changes: 1 addition & 21 deletions
22
addons/ninetailsrabbit.terrainy/ninetailsrabbit.terrainy.gd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,16 @@ | ||
@tool | ||
extends EditorPlugin | ||
|
||
const UpdateNotifyToolScene = preload("updater/update_notify_tool.tscn") | ||
|
||
var update_notify_tool_instance: Node | ||
var inspector_plugin | ||
var plugin_custom_type: String = "Terrainy" | ||
|
||
|
||
func _enter_tree() -> void: | ||
MyPluginSettings.set_update_notification() | ||
_setup_updater() | ||
|
||
if not DirAccess.dir_exists_absolute(MyPluginSettings.PluginTemporaryReleaseUpdateDirectoryPath): | ||
DirAccess.make_dir_recursive_absolute(MyPluginSettings.PluginTemporaryReleaseUpdateDirectoryPath) | ||
|
||
inspector_plugin = preload("src/inspector/inspector_button_plugin.gd").new() | ||
add_inspector_plugin(inspector_plugin) | ||
add_custom_type(plugin_custom_type, "Node", preload("src/terrainy.gd"), preload("assets/terrainy.svg")) | ||
|
||
|
||
func _exit_tree() -> void: | ||
MyPluginSettings.remove_settings() | ||
|
||
if update_notify_tool_instance: | ||
update_notify_tool_instance.free() | ||
update_notify_tool_instance = null | ||
|
||
remove_custom_type(plugin_custom_type) | ||
remove_inspector_plugin(inspector_plugin) | ||
|
||
## Update tool referenced from https://github.com/MikeSchulze/gdUnit4/blob/master/addons/gdUnit4 | ||
func _setup_updater() -> void: | ||
if MyPluginSettings.is_update_notification_enabled(): | ||
update_notify_tool_instance = UpdateNotifyToolScene.instantiate() | ||
Engine.get_main_loop().root.add_child.call_deferred(update_notify_tool_instance) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
121 changes: 0 additions & 121 deletions
121
addons/ninetailsrabbit.terrainy/updater/update_notify_tool.gd
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.