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:
Vaillant Jeremy
2026-05-16 19:18:27 +02:00
parent efa35a444a
commit 01ea3af253
127 changed files with 2262 additions and 2258 deletions
+6 -6
View File
@@ -1,10 +1,10 @@
@tool
"""
class GDDBTableProperty
"""
class_name GDDBTableProperty
tool
extends Control
signal delete_property
@@ -19,20 +19,20 @@ var m_parent_table = null
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
$prop_name.connect("text_changed", self, "on_name_changed")
$prop_name.connect("text_changed", Callable(self, "on_name_changed"))
$prop_type.clear()
for idx in range(0, gddb_types.e_prop_types_count):
$prop_type.add_item(gddb_globals.get_data_name(idx), gddb_types.e_prop_type_bool + idx)
$prop_type.select(0)
$prop_type.get_popup().connect("about_to_show", self, "on_about_to_show")
$prop_type.connect("item_selected", self, "on_type_changed")
$prop_type.get_popup().connect("about_to_popup", Callable(self, "on_about_to_show"))
$prop_type.connect("item_selected", Callable(self, "on_type_changed"))
$delete_button.connect("pressed", self, "on_delete_button_pressed")
$delete_button.connect("pressed", Callable(self, "on_delete_button_pressed"))
$autoincrement_btn.hide()
$autoincrement_btn.connect("toggled", self, "on_set_autoincrement")
$autoincrement_btn.connect("toggled", Callable(self, "on_set_autoincrement"))
# setup property
func setup(prop_id : int, prop_type : int, prop_name : String) -> void: