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
+71 -71
View File
@@ -1,14 +1,14 @@
[gd_scene load_steps=27 format=2]
[ext_resource path="res://assets/ui/themes/button-summary-hover.jpg" type="Texture" id=1]
[ext_resource path="res://assets/ui/themes/button-summary.jpg" type="Texture" id=2]
[ext_resource path="res://assets/fonts/kirsty/kirsty_base.tres" type="DynamicFont" id=3]
[ext_resource path="res://assets/fonts/kirsty/kirsty_title.tres" type="DynamicFont" id=4]
[ext_resource path="res://assets/ui/icones/treasure.png" type="Texture" id=5]
[ext_resource path="res://assets/ui/themes/button-summary-hover.jpg" type="Texture2D" id=1]
[ext_resource path="res://assets/ui/themes/button-summary.jpg" type="Texture2D" id=2]
[ext_resource path="res://assets/fonts/kirsty/kirsty_base.tres" type="FontFile" id=3]
[ext_resource path="res://assets/fonts/kirsty/kirsty_title.tres" type="FontFile" id=4]
[ext_resource path="res://assets/ui/icones/treasure.png" type="Texture2D" id=5]
[ext_resource path="res://assets/fonts/text_outline.material" type="Material" id=6]
[ext_resource path="res://assets/ui/icones/treasure-hover.png" type="Texture" id=7]
[ext_resource path="res://assets/ui/themes/bck-vert-grd.png" type="Texture" id=8]
[ext_resource path="res://assets/ui/themes/wood-tile.jpg" type="Texture" id=9]
[ext_resource path="res://assets/ui/icones/treasure-hover.png" type="Texture2D" id=7]
[ext_resource path="res://assets/ui/themes/bck-vert-grd.png" type="Texture2D" id=8]
[ext_resource path="res://assets/ui/themes/wood-tile.jpg" type="Texture2D" id=9]
[sub_resource type="VisualShaderNodeVectorOp" id=1]
operator = 3
@@ -19,20 +19,20 @@ input_name = "screen_uv"
[sub_resource type="VisualShaderNodeVectorDecompose" id=3]
output_port_for_preview = 1
[sub_resource type="VisualShaderNodeVectorScalarMix" id=4]
[sub_resource type="VisualShaderNodeMix" id=4]
[sub_resource type="VisualShaderNodeColorConstant" id=5]
constant = Color( 0.2, 0.155, 0.11, 1 )
[sub_resource type="VisualShaderNodeColorOp" id=6]
[sub_resource type="VisualShaderNodeVectorScalarMix" id=7]
[sub_resource type="VisualShaderNodeMix" id=7]
[sub_resource type="VisualShaderNodeScalarOp" id=8]
[sub_resource type="VisualShaderNodeFloatOp" id=8]
default_input_values = [ 0, 0.0, 1, 0.2 ]
operator = 2
[sub_resource type="VisualShaderNodeScalarOp" id=9]
[sub_resource type="VisualShaderNodeFloatOp" id=9]
default_input_values = [ 0, 0.0, 1, -1.0 ]
operator = 2
@@ -46,18 +46,18 @@ texture_type = 1
[sub_resource type="VisualShaderNodeVectorCompose" id=12]
default_input_values = [ 0, 0.0, 1, 0.0, 2, 1.0 ]
[sub_resource type="VisualShaderNodeScalarConstant" id=13]
[sub_resource type="VisualShaderNodeFloatConstant" id=13]
constant = 0.4
[sub_resource type="VisualShaderNodeVectorDecompose" id=14]
[sub_resource type="VisualShaderNodeScalarOp" id=15]
[sub_resource type="VisualShaderNodeFloatOp" id=15]
default_input_values = [ 0, 0.0, 1, 1.6 ]
operator = 3
[sub_resource type="VisualShader" id=16]
code = "shader_type canvas_item;
uniform sampler2D tex_frg_4 : hint_albedo;
uniform sampler2D tex_frg_4 : source_color;
@@ -163,48 +163,48 @@ nodes/fragment/22/node = SubResource( 8 )
nodes/fragment/22/position = Vector2( 1260, 780 )
nodes/fragment/23/node = SubResource( 9 )
nodes/fragment/23/position = Vector2( 1080, 1080 )
nodes/fragment/connections = PoolIntArray( 8, 0, 5, 1, 7, 1, 8, 0, 7, 0, 5, 0, 5, 0, 4, 0, 3, 0, 11, 0, 6, 0, 11, 1, 11, 0, 7, 0, 14, 0, 15, 0, 4, 0, 17, 0, 15, 1, 17, 2, 4, 0, 19, 1, 18, 0, 19, 0, 19, 0, 17, 1, 4, 0, 22, 0, 20, 0, 0, 0, 15, 1, 23, 0, 22, 0, 20, 0, 15, 1, 20, 2, 17, 0, 20, 1 )
nodes/fragment/connections = PackedInt32Array( 8, 0, 5, 1, 7, 1, 8, 0, 7, 0, 5, 0, 5, 0, 4, 0, 3, 0, 11, 0, 6, 0, 11, 1, 11, 0, 7, 0, 14, 0, 15, 0, 4, 0, 17, 0, 15, 1, 17, 2, 4, 0, 19, 1, 18, 0, 19, 0, 19, 0, 17, 1, 4, 0, 22, 0, 20, 0, 0, 0, 15, 1, 23, 0, 22, 0, 20, 0, 15, 1, 20, 2, 17, 0, 20, 1 )
[sub_resource type="ShaderMaterial" id=17]
shader = SubResource( 16 )
[node name="Summary" type="HBoxContainer"]
anchor_bottom = 1.0
margin_right = 236.0
custom_constants/separation = 0
offset_right = 236.0
theme_override_constants/separation = 0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="PanelWood" type="Panel" parent="."]
material = SubResource( 17 )
margin_right = 350.0
margin_bottom = 1080.0
rect_min_size = Vector2( 350, 0 )
offset_right = 350.0
offset_bottom = 1080.0
custom_minimum_size = Vector2( 350, 0 )
size_flags_vertical = 3
[node name="VBoxContainer" type="VBoxContainer" parent="PanelWood"]
anchor_right = 1.0
anchor_bottom = 1.0
rect_clip_content = true
clip_contents = true
size_flags_horizontal = 8
size_flags_vertical = 11
custom_constants/separation = 30
theme_override_constants/separation = 30
__meta__ = {
"_edit_use_anchors_": false
}
[node name="CenterContainer" type="CenterContainer" parent="PanelWood/VBoxContainer"]
margin_right = 350.0
margin_bottom = 271.0
offset_right = 350.0
offset_bottom = 271.0
size_flags_horizontal = 3
size_flags_vertical = 3
[node name="TextureRect" type="TextureButton" parent="PanelWood/VBoxContainer/CenterContainer"]
margin_left = 111.0
margin_top = 71.0
margin_right = 239.0
margin_bottom = 199.0
offset_left = 111.0
offset_top = 71.0
offset_right = 239.0
offset_bottom = 199.0
mouse_default_cursor_shape = 2
size_flags_horizontal = 4
size_flags_vertical = 4
@@ -214,9 +214,9 @@ texture_focused = ExtResource( 7 )
stretch_mode = 3
[node name="ButtonPuzzle" type="TextureButton" parent="PanelWood/VBoxContainer"]
margin_top = 301.0
margin_right = 350.0
margin_bottom = 378.0
offset_top = 301.0
offset_right = 350.0
offset_bottom = 378.0
mouse_default_cursor_shape = 2
size_flags_horizontal = 0
size_flags_vertical = 0
@@ -235,7 +235,7 @@ grow_horizontal = 2
grow_vertical = 2
size_flags_horizontal = 7
size_flags_vertical = 3
custom_fonts/font = ExtResource( 4 )
theme_override_fonts/font = ExtResource( 4 )
text = "Puzzles"
align = 1
valign = 1
@@ -245,9 +245,9 @@ __meta__ = {
}
[node name="ButtonSetting" type="TextureButton" parent="PanelWood/VBoxContainer"]
margin_top = 408.0
margin_right = 350.0
margin_bottom = 485.0
offset_top = 408.0
offset_right = 350.0
offset_bottom = 485.0
mouse_default_cursor_shape = 2
size_flags_horizontal = 0
size_flags_vertical = 0
@@ -264,8 +264,8 @@ anchor_right = 1.0
anchor_bottom = 1.0
size_flags_horizontal = 7
size_flags_vertical = 3
custom_fonts/font = ExtResource( 4 )
custom_colors/font_color = Color( 0, 0, 0, 1 )
theme_override_fonts/font = ExtResource( 4 )
theme_override_colors/font_color = Color( 0, 0, 0, 1 )
text = "Paramètres"
align = 1
valign = 1
@@ -275,9 +275,9 @@ __meta__ = {
}
[node name="ButtonCredits" type="TextureButton" parent="PanelWood/VBoxContainer"]
margin_top = 515.0
margin_right = 350.0
margin_bottom = 592.0
offset_top = 515.0
offset_right = 350.0
offset_bottom = 592.0
mouse_default_cursor_shape = 2
size_flags_horizontal = 0
size_flags_vertical = 0
@@ -294,8 +294,8 @@ anchor_right = 1.0
anchor_bottom = 1.0
size_flags_horizontal = 7
size_flags_vertical = 3
custom_fonts/font = ExtResource( 4 )
custom_colors/font_color = Color( 0, 0, 0, 1 )
theme_override_fonts/font = ExtResource( 4 )
theme_override_colors/font_color = Color( 0, 0, 0, 1 )
text = "Crédits"
align = 1
valign = 1
@@ -305,15 +305,15 @@ __meta__ = {
}
[node name="MarginContainer" type="MarginContainer" parent="PanelWood/VBoxContainer"]
margin_top = 622.0
margin_right = 350.0
margin_bottom = 893.0
offset_top = 622.0
offset_right = 350.0
offset_bottom = 893.0
size_flags_vertical = 3
[node name="ButtonQuit" type="TextureButton" parent="PanelWood/VBoxContainer"]
margin_top = 923.0
margin_right = 350.0
margin_bottom = 1000.0
offset_top = 923.0
offset_right = 350.0
offset_bottom = 1000.0
mouse_default_cursor_shape = 2
size_flags_horizontal = 0
size_flags_vertical = 0
@@ -329,8 +329,8 @@ anchor_right = 1.0
anchor_bottom = 1.0
size_flags_horizontal = 7
size_flags_vertical = 3
custom_fonts/font = ExtResource( 4 )
custom_colors/font_color = Color( 0, 0, 0, 1 )
theme_override_fonts/font = ExtResource( 4 )
theme_override_colors/font_color = Color( 0, 0, 0, 1 )
text = "Quit"
align = 1
valign = 1
@@ -340,43 +340,43 @@ __meta__ = {
}
[node name="ContainerVersion" type="HBoxContainer" parent="PanelWood/VBoxContainer"]
margin_top = 1030.0
margin_right = 350.0
margin_bottom = 1050.0
offset_top = 1030.0
offset_right = 350.0
offset_bottom = 1050.0
[node name="MarginLeft" type="MarginContainer" parent="PanelWood/VBoxContainer/ContainerVersion"]
margin_right = 283.0
margin_bottom = 20.0
offset_right = 283.0
offset_bottom = 20.0
size_flags_horizontal = 3
[node name="LabelVersion" type="Label" parent="PanelWood/VBoxContainer/ContainerVersion"]
margin_left = 287.0
margin_right = 334.0
margin_bottom = 20.0
offset_left = 287.0
offset_right = 334.0
offset_bottom = 20.0
size_flags_vertical = 0
custom_fonts/font = ExtResource( 3 )
custom_colors/font_color = Color( 0.741176, 0.478431, 0.372549, 1 )
theme_override_fonts/font = ExtResource( 3 )
theme_override_colors/font_color = Color( 0.741176, 0.478431, 0.372549, 1 )
text = "v 0.0.0"
align = 2
[node name="MarginRight" type="MarginContainer" parent="PanelWood/VBoxContainer/ContainerVersion"]
margin_left = 338.0
margin_right = 350.0
margin_bottom = 20.0
offset_left = 338.0
offset_right = 350.0
offset_bottom = 20.0
size_flags_horizontal = 3
size_flags_stretch_ratio = 0.04
[node name="MarginContainerBottom" type="MarginContainer" parent="PanelWood/VBoxContainer"]
margin_top = 1080.0
margin_right = 350.0
margin_bottom = 1080.0
offset_top = 1080.0
offset_right = 350.0
offset_bottom = 1080.0
size_flags_stretch_ratio = 0.2
[node name="TextureRect" type="TextureRect" parent="."]
margin_left = 350.0
margin_right = 446.0
margin_bottom = 1080.0
rect_clip_content = true
offset_left = 350.0
offset_right = 446.0
offset_bottom = 1080.0
clip_contents = true
size_flags_horizontal = 11
size_flags_vertical = 3
texture = ExtResource( 8 )