diff options
author | henriquelalves <henriquelalves@gmail.com> | 2024-09-03 00:57:02 +0300 |
---|---|---|
committer | henriquelalves <henriquelalves@gmail.com> | 2024-09-03 00:57:02 +0300 |
commit | 239cdf7a188ce6a38cca1aeb3dd55811d51e35b3 (patch) | |
tree | 868c2e7472a61a7512dd8ebca049439d0876b510 /addons/crt_shader/crt_shader.gd | |
parent | 1b13dfdd3768c172c7c0abe644383df14de12fb6 (diff) | |
download | plugin-godot-simple-crt-shader-239cdf7a188ce6a38cca1aeb3dd55811d51e35b3.tar.gz plugin-godot-simple-crt-shader-239cdf7a188ce6a38cca1aeb3dd55811d51e35b3.tar.bz2 plugin-godot-simple-crt-shader-239cdf7a188ce6a38cca1aeb3dd55811d51e35b3.zip |
Updated the project for Godot 4.x
Diffstat (limited to 'addons/crt_shader/crt_shader.gd')
-rw-r--r-- | addons/crt_shader/crt_shader.gd | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/addons/crt_shader/crt_shader.gd b/addons/crt_shader/crt_shader.gd index 49e712e..50053a9 100644 --- a/addons/crt_shader/crt_shader.gd +++ b/addons/crt_shader/crt_shader.gd @@ -1,10 +1,10 @@ -tool +@tool extends EditorPlugin func _enter_tree(): - pass + add_custom_type("CRTScreen", "ColorRect", preload("res://addons/crt_shader/crt_screen.gd"), preload("res://addons/crt_shader/icon.png")) func _exit_tree(): - pass + remove_custom_type("CRTScreen") |