mirror of
https://github.com/godotengine/godot.git
synced 2026-01-05 06:11:29 +03:00
Editor: Remove unused Class Name field from Create Script dialog
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
# meta-description: Visual shader's node plugin template
|
||||
|
||||
@tool
|
||||
# Having a class name is required for a custom node.
|
||||
class_name VisualShaderNode_CLASS_
|
||||
extends _BASE_
|
||||
|
||||
@@ -17,7 +18,7 @@ func _get_description() -> String:
|
||||
return ""
|
||||
|
||||
|
||||
func _get_return_icon_type() -> int:
|
||||
func _get_return_icon_type() -> PortType:
|
||||
return PORT_TYPE_SCALAR
|
||||
|
||||
|
||||
@@ -29,7 +30,7 @@ func _get_input_port_name(port: int) -> String:
|
||||
return ""
|
||||
|
||||
|
||||
func _get_input_port_type(port: int) -> int:
|
||||
func _get_input_port_type(port: int) -> PortType:
|
||||
return PORT_TYPE_SCALAR
|
||||
|
||||
|
||||
@@ -41,10 +42,10 @@ func _get_output_port_name(port: int) -> String:
|
||||
return "result"
|
||||
|
||||
|
||||
func _get_output_port_type(port: int) -> int:
|
||||
func _get_output_port_type(port: int) -> PortType:
|
||||
return PORT_TYPE_SCALAR
|
||||
|
||||
|
||||
func _get_code(input_vars: Array[String], output_vars: Array[String],
|
||||
mode: int, type: int) -> String:
|
||||
mode: Shader.Mode, type: VisualShader.Type) -> String:
|
||||
return output_vars[0] + " = 0.0;"
|
||||
|
||||
Reference in New Issue
Block a user