summaryrefslogtreecommitdiff
path: root/tools/script_plugins/terrain
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2014-02-24 09:53:33 -0300
committerJuan Linietsky <reduzio@gmail.com>2014-02-24 09:53:33 -0300
commit4b07eb8deb03ce8c7870d621cd03d04d45f4caaa (patch)
tree3314811f8a347ae60d951163c19d291b46381511 /tools/script_plugins/terrain
parent51609ffc04290f8bd1ecbd9cf1639c0cc6368fac (diff)
-moved script to modules
Diffstat (limited to 'tools/script_plugins/terrain')
-rw-r--r--tools/script_plugins/terrain/plugin.cfg16
-rw-r--r--tools/script_plugins/terrain/terrain.gd17
-rw-r--r--tools/script_plugins/terrain/terrain.pngbin0 -> 762 bytes
-rw-r--r--tools/script_plugins/terrain/terrain_node.gd3
4 files changed, 36 insertions, 0 deletions
diff --git a/tools/script_plugins/terrain/plugin.cfg b/tools/script_plugins/terrain/plugin.cfg
new file mode 100644
index 0000000000..d2f2917420
--- /dev/null
+++ b/tools/script_plugins/terrain/plugin.cfg
@@ -0,0 +1,16 @@
+[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"]
+
+
+
+
+
+
+
diff --git a/tools/script_plugins/terrain/terrain.gd b/tools/script_plugins/terrain/terrain.gd
new file mode 100644
index 0000000000..b3e3121e7a
--- /dev/null
+++ b/tools/script_plugins/terrain/terrain.gd
@@ -0,0 +1,17 @@
+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")
diff --git a/tools/script_plugins/terrain/terrain.png b/tools/script_plugins/terrain/terrain.png
new file mode 100644
index 0000000000..7c1c3d70d6
--- /dev/null
+++ b/tools/script_plugins/terrain/terrain.png
Binary files differ
diff --git a/tools/script_plugins/terrain/terrain_node.gd b/tools/script_plugins/terrain/terrain_node.gd
new file mode 100644
index 0000000000..91cf3fcb2b
--- /dev/null
+++ b/tools/script_plugins/terrain/terrain_node.gd
@@ -0,0 +1,3 @@
+extends Spatial
+
+