From b0c164a7c580d8b5fba172db72161b1521d166b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20Santilio?= Date: Mon, 24 Aug 2020 13:46:26 +0200 Subject: [PATCH] --- .../scripts/IconLoaderGithub.gd | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 addons/github-integration/scripts/IconLoaderGithub.gd diff --git a/addons/github-integration/scripts/IconLoaderGithub.gd b/addons/github-integration/scripts/IconLoaderGithub.gd deleted file mode 100644 index 14b2edc..0000000 --- a/addons/github-integration/scripts/IconLoaderGithub.gd +++ /dev/null @@ -1,18 +0,0 @@ -tool -extends Node - -func _ready(): - pass - -func load_icon_from_name(icon_name : String) -> ImageTexture: - var file = File.new() - var image = Image.new() - var texture = ImageTexture.new() - - file.open("res://addons/github-integration/icons.pngs/"+icon_name+".png.iconpng", File.READ) - var buffer = file.get_buffer(file.get_len()) - file.close() - - image.load_png_from_buffer(buffer) - texture.create_from_image(image) - return texture