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
+5 -5
View File
@@ -1,10 +1,10 @@
@tool
"""
class GDDBMenu
"""
class_name GDDBMenu
tool
extends Control
signal new_database
@@ -29,18 +29,18 @@ var m_enable_save_as_db = false
var m_check_autosave_on_load = false
func _ready() -> void:
$layout/File.connect("about_to_show", self, "on_about_to_show_file_menu")
$layout/File.connect("about_to_popup", Callable(self, "on_about_to_show_file_menu"))
$layout/File.get_popup().clear()
$layout/File.get_popup().add_item("New DB", e_file_new_id)
$layout/File.get_popup().add_item("Load DB", e_file_load_id)
$layout/File.get_popup().add_item("Save DB", e_file_save_id)
$layout/File.get_popup().add_item("Save DB As ...", e_file_save_as_id)
$layout/File.get_popup().connect("id_pressed", self, "on_file_id_pressed")
$layout/File.get_popup().connect("id_pressed", Callable(self, "on_file_id_pressed"))
$layout/Options.connect("about_to_show", self, "on_about_to_show_options_menu")
$layout/Options.connect("about_to_popup", Callable(self, "on_about_to_show_options_menu"))
$layout/Options.get_popup().clear()
$layout/Options.get_popup().add_check_item("Autosave on close", e_option_autosave_on_close_id)
$layout/Options.get_popup().connect("id_pressed", self, "on_options_id_pressed")
$layout/Options.get_popup().connect("id_pressed", Callable(self, "on_options_id_pressed"))
# called before showing the file menu
func on_about_to_show_file_menu() -> void: