Run godot --convert-3to4 (automated conversion)
Apply Godot 4.6 automated conversion: renames Spatial.translate->position, margin_*->offset_*, tool->@tool, .empty()->.is_empty(), DynamicFont->FontFile, onready->@onready, export()->@export, and many more. 127 files changed by the tool. Manual fixes still required for: - godot_db_manager plugin (incompatible APIs: WindowDialog, Tabs, etc.) - lod plugin (Spatial -> Node3D renames) - ResourceLoader.load_interactive removed -> load_threaded_request - OS.set_window_fullscreen removed -> DisplayServer - Viewport.set_size_override removed Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1,17 +1,17 @@
|
||||
"""
|
||||
class GDDBTablesHeader
|
||||
"""
|
||||
|
||||
class_name GDDBTablesHeader
|
||||
|
||||
tool
|
||||
extends Control
|
||||
|
||||
signal add_table
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready():
|
||||
$add_table_btn.connect("pressed", self, "on_add_table_btn_pressed")
|
||||
|
||||
func on_add_table_btn_pressed():
|
||||
emit_signal("add_table")
|
||||
@tool
|
||||
"""
|
||||
class GDDBTablesHeader
|
||||
"""
|
||||
|
||||
class_name GDDBTablesHeader
|
||||
|
||||
extends Control
|
||||
|
||||
signal add_table
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready():
|
||||
$add_table_btn.connect("pressed", Callable(self, "on_add_table_btn_pressed"))
|
||||
|
||||
func on_add_table_btn_pressed():
|
||||
emit_signal("add_table")
|
||||
|
||||
Reference in New Issue
Block a user