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,9 +1,9 @@
tool
extends Spatial
@tool
extends Node3D
export(bool) var activate_candlestick = false setget activateCandlestick
export(bool) var activate_candle = false setget activateCandle
export(String, "Candle Top", "Candle A", "Candle B", "Candle C", "Candle D") var list_candles
@export var activate_candlestick: bool = false: set = activateCandlestick
@export var activate_candle: bool = false: set = activateCandle
@export var list_candles # (String, "Candle Top", "Candle A", "Candle B", "Candle C", "Candle D")
func activateCandlestick(_newCandlestick):
pass
+6 -6
View File
@@ -4,21 +4,21 @@
[ext_resource path="res://assets/props/candle/candle.gd" type="Script" id=2]
[ext_resource path="res://assets/props/candle/sm_candle_top_lod1.mesh" type="ArrayMesh" id=3]
[node name="sm_candlestick" type="Spatial"]
[node name="sm_candlestick" type="Node3D"]
script = ExtResource( 2 )
[node name="sm_candlestick_lod1" type="MeshInstance" parent="."]
[node name="sm_candlestick_lod1" type="MeshInstance3D" parent="."]
mesh = ExtResource( 1 )
material/0 = null
[node name="candles" type="MeshInstance" parent="sm_candlestick_lod1"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0.000981584, 0.150082, 0 )
[node name="candles" type="MeshInstance3D" parent="sm_candlestick_lod1"]
transform = Transform3D( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0.000981584, 0.150082, 0 )
use_in_baked_light = true
mesh = ExtResource( 3 )
material/0 = null
[node name="OmniLight" type="OmniLight" parent="sm_candlestick_lod1/candles"]
transform = Transform( 1, 5.5022e-09, 1.96774e-13, -5.5022e-09, 1, 1.08271e-21, -1.96774e-13, -2.1654e-21, 1, 1.3737e-08, 0.0619183, -2.98023e-08 )
[node name="OmniLight3D" type="OmniLight3D" parent="sm_candlestick_lod1/candles"]
transform = Transform3D( 1, 5.5022e-09, 1.96774e-13, -5.5022e-09, 1, 1.08271e-21, -1.96774e-13, -2.1654e-21, 1, 1.3737e-08, 0.0619183, -2.98023e-08 )
visible = false
light_color = Color( 0.960784, 0.611765, 0.00784314, 1 )
light_energy = 12.0