diff options
| author | Rémi Verschelde | 2016-09-01 22:36:29 +0200 |
|---|---|---|
| committer | Rémi Verschelde | 2016-09-05 07:49:22 +0200 |
| commit | 3b3502b758fb4127eca7f71dc0c41c95fac97025 (patch) | |
| tree | 57f5ab6e2d32dbcb832a8b3c7070c8f0d7081b22 /tools/script_plugins/time/time.gd | |
| parent | 6a4ba76836a8a0579a6164351e3fa2d14e29aa79 (diff) | |
| download | godot-3b3502b758fb4127eca7f71dc0c41c95fac97025.tar.gz godot-3b3502b758fb4127eca7f71dc0c41c95fac97025.tar.zst godot-3b3502b758fb4127eca7f71dc0c41c95fac97025.zip | |
Remove tools/script_plugins, demos of the old plugin API
They are superseded by the official demos in
https://github.com/godotengine/godot-demo-projects/tree/master/plugins
Diffstat (limited to '')
| -rw-r--r-- | tools/script_plugins/time/time.gd | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/tools/script_plugins/time/time.gd b/tools/script_plugins/time/time.gd deleted file mode 100644 index 2e56d89d4..000000000 --- a/tools/script_plugins/time/time.gd +++ /dev/null @@ -1,32 +0,0 @@ -tool # Always declare as Tool, if it's meant to run in the editor. -extends EditorPlugin - -var timer = null -var label = null - -func _timeout(): - if (label): - var time = OS.get_time() - label.set_text(str(time.hour).pad_zeros(2)+":"+str(time.minute).pad_zeros(2)+":"+str(time.second).pad_zeros(2)) - -func get_name(): - return "The Time" - - -func _init(): - print("PLUGIN INIT") - timer = Timer.new() - add_child(timer) - timer.set_wait_time(0.5) - timer.set_one_shot(false) - timer.connect("timeout",self,"_timeout") - -func _enter_tree(): - label = Label.new() - add_custom_control(CONTAINER_TOOLBAR,label) - timer.start() - -func _exit_tree(): - timer.stop() - label.free() - label=null |
