Tool Addon for godot 4 for extend script editor feature.
This addon allow select virtual functions for be override/implement. (Also public / private functions using filters!)
Note
This plugin was initially created to be an complement to the script-ide plugin, this version is a STANDALONE version of the complement.
- Show/Select Function for be override.
- Filters buttons for SHOW/HIDE Virtuals/Public/Private and Interface Functions.
- Identify Class as Interfaces for be override. (Customizable in Editor Settings)
- Virtual/Interface Functions Auto Generators using Buttons.
- Plugin Settings in Editor Settings (Editor Settings > Plugin > GD Override Functions [Advance options enabled is required!])
Press RMB (Right Click Mouse Button) on the current editor script or in the script panel and select Override Functions.
Syntax of Virtual Function Example:
Tip
As in other languages, Virtual Functions are those that name begin with "_" character ( not with "__" that is for private functions).
Note
in version >= 0.2.4 you can set what are virtual/private functions in Editor settings > Plugin > GD-Override-Functions
(Remember advance options must be enabled!)
# (OK) This is a virtual function.
func _virtual_function(foo : Variant) -> Void:
pass
# (X) No Virtual Function.
func __private_function(foo : Variant) -> Void:
pass
# (X) No Virtual Function.
func public_function(foo : Variant) -> Void:
passSyntax of Interface Class Example:
Tip
As in other languages, Interface class are those that class name begin with "I" (Upper case) character ( not with "i" ).
Note
in version >= 0.2.4 you can set what are interface class in Editor settings > Plugin > GD-Override-Functions
(Remember advance options must be enabled!)
# (OK) This is a interface.
class_name IMyInterface extends Foo
# (OK) This is a interface.
Imy_file.gd # Yeah, files begin with "I" (upper case) too work! (class_name is not necessary if you don't want put in the script)
IAnotherFile.gd # Begin with "I", that is fine!
# (X) No custom interface class.
class_name my_normal_class extends foo
# (X) No custom interface class file script.
my_file.gdNote
Native classes were excluded because they could be confused with interfaces.
Copyrights (c) CodeNameTwister. See LICENSE for details.


