You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
-moved script to modules
This commit is contained in:
16
tools/script_plugins/terrain/plugin.cfg
Normal file
16
tools/script_plugins/terrain/plugin.cfg
Normal file
@@ -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"]
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
17
tools/script_plugins/terrain/terrain.gd
Normal file
17
tools/script_plugins/terrain/terrain.gd
Normal file
@@ -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")
|
||||
BIN
tools/script_plugins/terrain/terrain.png
Normal file
BIN
tools/script_plugins/terrain/terrain.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 762 B |
3
tools/script_plugins/terrain/terrain_node.gd
Normal file
3
tools/script_plugins/terrain/terrain_node.gd
Normal file
@@ -0,0 +1,3 @@
|
||||
extends Spatial
|
||||
|
||||
|
||||
Reference in New Issue
Block a user