瀏覽代碼

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
Rémi Verschelde 9 年之前
父節點
當前提交
3b3502b758

+ 0 - 16
tools/script_plugins/terrain/plugin.cfg

@@ -1,16 +0,0 @@
-[plugin]
-
-name="Terrain"
-description="Simple plugin for generating and editing grid-based terrains. This type of terrains were all the rage in the early 2000's, but lost popularity to hand crafted geometry towards the end of the decade."
-author="Juan Linietsky"
-version="1.0"
-installs=true
-script="terrain.gd"
-install_files=["terrain.gd","terrain_node.gd","icon_terrain.png"]
-
-
-
-
-
-
-

+ 0 - 17
tools/script_plugins/terrain/terrain.gd

@@ -1,17 +0,0 @@
-tool # Always declare as Tool, if it's meant to run in the editor.
-extends EditorPlugin
-
-
-func get_name(): 
-	return "Terrain"
-
-
-func _init():
-	print("PLUGIN INIT")
-	
- 
-func _enter_scene():
-	add_custom_type("Terrain","Spatial",preload("terrain_node.gd"),preload("terrain.png"))
-
-func _exit_scene():
-	remove_custom_type("Terrain")

二進制
tools/script_plugins/terrain/terrain.png


+ 0 - 3
tools/script_plugins/terrain/terrain_node.gd

@@ -1,3 +0,0 @@
-extends Spatial
-
-

+ 0 - 14
tools/script_plugins/time/plugin.cfg

@@ -1,14 +0,0 @@
-[plugin]
-
-name="The Time"
-description="This plugin displays the current local time, with great accuracy, by harvesting the power of quartz crystals inside your computer.\nIt may also serve as simple example on how to write a non-installable editor plugin, or just remind you that it's time to go back home."
-author="Juan Linietsky"
-version="1.0"
-installs=false
-script="time.gd"
-
-
-
-
-
-

+ 0 - 32
tools/script_plugins/time/time.gd

@@ -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