Skip to content

Commit

Permalink
use class_name to define the custom node type
Browse files Browse the repository at this point in the history
  • Loading branch information
paulloz committed Mar 27, 2019
1 parent ab3d565 commit b6b0e25
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 40 deletions.
1 change: 1 addition & 0 deletions addons/paulloz.colorblindness/colorblindness.gd
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
tool
class_name Colorblindness
extends Node

enum TYPE { None, Protanopia, Deuteranopia, Tritanopia, Achromatopsia }
Expand Down
5 changes: 0 additions & 5 deletions addons/paulloz.colorblindness/icon.svg

This file was deleted.

29 changes: 0 additions & 29 deletions addons/paulloz.colorblindness/icon.svg.import

This file was deleted.

6 changes: 0 additions & 6 deletions addons/paulloz.colorblindness/paulloz.colorblindness.gd
Original file line number Diff line number Diff line change
@@ -1,8 +1,2 @@
tool
extends EditorPlugin

func _enter_tree():
add_custom_type("Colorblindness", "Node", preload("colorblindness.gd"), preload("icon.svg"))

func _remove_tree():
remove_custom_type("Colorblindness")

0 comments on commit b6b0e25

Please sign in to comment.