From 1f1389fc151eed78e6d4d8b6d72365da73f07768 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20Santilio?= Date: Mon, 14 Dec 2020 14:04:12 +0100 Subject: [PATCH 1/5] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 614905c..04337ee 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ Godot Version: *3.2.3stable* ## What is this? *GitHub Integration* is a addon for Godot Engine that I've created mainly for a personal purpose. -Pushing and Pulling personal repositories while I'm working on Godot (especially if I'm under a GameJam) could take some time and force me to save the project, open the brwoser/git bash/git gui, and do all the stuff. +Pushing and Pulling repositories while I'm working on Godot (especially if I'm under a GameJam) could take some time and force me to save the project, open the brwoser/git bash/git gui, and do all the stuff. With this little addon which works directly in the editor, managing all your repositories will be very easy. ## What can it do? From 3829221a84c771a0614691715173cdec8109fb46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20Santilio?= Date: Mon, 21 Dec 2020 19:08:38 +0100 Subject: [PATCH 2/5] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 04337ee..d6cdce9 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ This plugin is now supported in [Godot Extended Library Discord](https://discord A complete GitHub integration for your Godot Editor! Manage your project without even opening your browser. Author: *"Nicolo (fenix) Santilio"* -Version: *1.3.5* +Version: *1.3.6* Wiki: *[supported](https://github.com/fenix-hub/godot-engine.github-integration/wiki)* Godot Version: *3.2.3stable* From 79d8b66563f9058e44077d75045f1b7e83046eb9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20Santilio?= Date: Mon, 21 Dec 2020 19:08:58 +0100 Subject: [PATCH 3/5] Add files via upload --- addons/github-integration/plugin.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/github-integration/plugin.cfg b/addons/github-integration/plugin.cfg index 0f51ea5..9d7e3c2 100644 --- a/addons/github-integration/plugin.cfg +++ b/addons/github-integration/plugin.cfg @@ -3,5 +3,5 @@ name="GitHub integration" description="Plugin to integrate GitHub requests directly via Godot Engine Editor" author="Nicolo (fenix) Santilio" -version="1.3.4" +version="1.3.6" script="scripts/github-integration.gd" From 7621a7be9f5f1210ca97ec0ba621e29e8e9a5eb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20Santilio?= Date: Mon, 21 Dec 2020 19:09:48 +0100 Subject: [PATCH 4/5] Add files via upload --- addons/github-integration/scripts/ContributorClass.gd | 7 +++++++ addons/github-integration/scripts/PluginSettings.gd | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/addons/github-integration/scripts/ContributorClass.gd b/addons/github-integration/scripts/ContributorClass.gd index 8c20bcd..4e49466 100644 --- a/addons/github-integration/scripts/ContributorClass.gd +++ b/addons/github-integration/scripts/ContributorClass.gd @@ -7,6 +7,8 @@ onready var login_lbl : Label = $Login onready var name_lbl : Label = $Name onready var client : HTTPRequest = $HTTPRequest +var is_downloading : bool = false + var _avatar : String var _name : String var _login : String @@ -32,6 +34,10 @@ func set_contributor_name(n : String) -> void: func set_contributor_avatar(a : String) -> void: _avatar = a client.request(_avatar) + is_downloading = true + +func _process(delta): + if is_downloading: print(client.get_downloaded_bytes()/client.get_body_size()*100, " %") func _on_request_completed(result: int, response_code: int, headers: PoolStringArray, avatar: PoolByteArray) -> void: if result == 0: @@ -46,3 +52,4 @@ func _on_request_completed(result: int, response_code: int, headers: PoolStringA var texture : ImageTexture = ImageTexture.new() texture.create_from_image(image) avatar_texture.set_texture(texture) + is_downloading = false diff --git a/addons/github-integration/scripts/PluginSettings.gd b/addons/github-integration/scripts/PluginSettings.gd index 503724a..64ea272 100644 --- a/addons/github-integration/scripts/PluginSettings.gd +++ b/addons/github-integration/scripts/PluginSettings.gd @@ -17,7 +17,7 @@ func _check_plugin_path(): var dir = Directory.new() if not dir.dir_exists(plugin_path): dir.make_dir(plugin_path) - if PluginSettings.debug: + if debug: printerr("[GitHub Integration] >> ","made custom directory in user folder, it is placed at ", plugin_path) func _ready(): From 709d49d641e62292fced317ff95201dca481ee7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20Santilio?= Date: Mon, 21 Dec 2020 19:10:53 +0100 Subject: [PATCH 5/5] Update Commit.gd --- addons/github-integration/scripts/Commit.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/github-integration/scripts/Commit.gd b/addons/github-integration/scripts/Commit.gd index 53e70ce..15a55bd 100644 --- a/addons/github-integration/scripts/Commit.gd +++ b/addons/github-integration/scripts/Commit.gd @@ -116,7 +116,7 @@ func connect_signals(): func request_completed(result, response_code, headers, body ): get_parent().print_debug_message("REQUEST TO API : Request exited with code %s" % response_code) if response_code == 422: - get_parent().print_debug_message(JSON.parse(body.get_string_from_utf8()).result) + get_parent().print_debug_message(str(JSON.parse(body.get_string_from_utf8()).result)) if result == 0: match requesting: REQUESTS.UPLOAD: