Skip to content

Latest commit

 

History

History
31 lines (17 loc) · 873 Bytes

File metadata and controls

31 lines (17 loc) · 873 Bytes

Type

Engine types:

TYPE_BOOL, TYPE_INT, TYPE_REAL, TYPE_STRING, TYPE_VECTOR2, TYPE_VECTOR3

Extra types:

FilterType, IntRangeType, FloatRangeType

Extra type usage example:

var health = 5

func _ready():
	Console.add_command('set_health', self, 'health')\
		.set_description('Set health')\
		.add_argument('health', Console.FloatRangeType.new(0, 5, 0.5))\
		.register()

Creating custom types:

Warning: Types API is unstable and may (and probably will) change.

To add custom type extend res://addons/quentincaffeino/console/src/Type/BaseType.gd (BaseType)