Files
2025-07-20 10:34:21 +02:00

18 lines
428 B
GDScript

@tool
extends Button
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# Script Spliter
# https://github.com/CodeNameTwister/Script-Spliter
#
# Script Spliter addon for godot 4
# author: "Twister"
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
func _pressed() -> void:
var parent : Node = owner
if parent == null:
parent = get_parent()
if parent:
if parent.has_method(name):
parent.call(name)