From 7126db1d7914ef5081a6dbb1c7d1a5658c1156e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20Santilio?= Date: Mon, 24 Aug 2020 13:46:22 +0200 Subject: [PATCH] --- addons/github-integration/scripts/GistItem.gd | 42 ------------------- 1 file changed, 42 deletions(-) delete mode 100644 addons/github-integration/scripts/GistItem.gd diff --git a/addons/github-integration/scripts/GistItem.gd b/addons/github-integration/scripts/GistItem.gd deleted file mode 100644 index d8f32a5..0000000 --- a/addons/github-integration/scripts/GistItem.gd +++ /dev/null @@ -1,42 +0,0 @@ -tool -extends PanelContainer - -signal gist_selected(repo) -signal gist_clicked(repo) - -onready var Name = $Gist/Name -onready var Files = $Gist/Files -onready var BG = $BG - -var _name : String -var _files : int -var _metadata : Dictionary -var _gist : Dictionary - -func _ready(): - Files.get_node("Icon").set_texture(IconLoaderGithub.load_icon_from_name("gists")) - -func set_gist(gist : Dictionary): - _gist = gist - _name = gist.files.values()[0].filename - _files = gist.files.size() - Name.get_node("Text").set_text(_name) - Files.get_node("Amount").set_text("Files: "+str(_files)) - - var gist_icon : ImageTexture - if gist.public: - gist_icon = (IconLoaderGithub.load_icon_from_name("gists")) - else: - gist_icon = (IconLoaderGithub.load_icon_from_name("lock")) - Name.get_node("Icon").set_texture(gist_icon) - -func deselect(): - BG.hide() - -func _on_GistItem_gui_input(event): - if event is InputEventMouseButton: - if event.is_pressed() and event.button_index == 1: - BG.show() - emit_signal("gist_clicked", _gist) - if event.doubleclick: - emit_signal("gist_selected", _gist)