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,6 +1,6 @@
|
||||
extends Control
|
||||
|
||||
export (PackedScene) var template = load("res://scenes/UI/choose_scenes/parts/Template.tscn")
|
||||
@export var template: PackedScene = load("res://scenes/UI/choose_scenes/parts/Template.tscn")
|
||||
|
||||
func _ready():
|
||||
_load_button_access_scenes()
|
||||
@@ -38,7 +38,7 @@ func _configure_select(level, node):
|
||||
var thumbnail = get_node(node+"/MarginContainer/CenterAlign/MainButton/MarginStich/ThumbnailLevel")
|
||||
|
||||
thumbnail.set_texture(_load_texture(level.thumbnail()))
|
||||
selector.connect("pressed", Event, _build_method(level.name()))
|
||||
selector.connect("pressed", Callable(Event, _build_method(level.name())))
|
||||
|
||||
func configure_reset(level, node, index, animate):
|
||||
var reset = get_node(node+"/MarginContainer/CenterAlign/MainButton/TabAlign/ButtonReset")
|
||||
@@ -55,14 +55,14 @@ func _configure_reset_disable(animation, reset, animate = false):
|
||||
|
||||
reset.set_disabled(true)
|
||||
reset.set_default_cursor_shape(CURSOR_ARROW)
|
||||
if reset.is_connected("pressed", Event, "_on_reset_level"):
|
||||
reset.disconnect("pressed", Event, "_on_reset_level")
|
||||
if reset.is_connected("pressed", Callable(Event, "_on_reset_level")):
|
||||
reset.disconnect("pressed", Callable(Event, "_on_reset_level"))
|
||||
|
||||
func _configure_reset_enable(animation, reset, level, node, index):
|
||||
animation.play_backwards("SlideReset")
|
||||
reset.set_disabled(false)
|
||||
reset.set_default_cursor_shape(CURSOR_POINTING_HAND)
|
||||
reset.connect("pressed", Event, "_on_reset_level", [level, node, index, self])
|
||||
reset.connect("pressed", Callable(Event, "_on_reset_level").bind(level, node, index, self))
|
||||
|
||||
func configure_counter(level, node):
|
||||
var count = get_node(node+"/MarginContainer/CenterAlign/MainButton/TabAlign/ButtonCount/MarginBottom/Label")
|
||||
|
||||
@@ -14,8 +14,8 @@ __meta__ = {
|
||||
}
|
||||
|
||||
[node name="MarginContainer" type="GridContainer" parent="."]
|
||||
margin_right = 1280.0
|
||||
margin_bottom = 720.0
|
||||
offset_right = 1280.0
|
||||
offset_bottom = 720.0
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
columns = 3
|
||||
|
||||
@@ -1,41 +1,41 @@
|
||||
[gd_scene load_steps=10 format=2]
|
||||
|
||||
[ext_resource path="res://assets/fonts/kirsty/kirsty_base.tres" type="DynamicFont" id=1]
|
||||
[ext_resource path="res://assets/ui/themes/tab_select/UI-Button-Reset-hover.png" type="Texture" id=2]
|
||||
[ext_resource path="res://assets/ui/themes/tab_select/UI-Button-Reset-disabled.png" type="Texture" id=3]
|
||||
[ext_resource path="res://assets/ui/themes/tab_select/UI-Button-Count-hover.png" type="Texture" id=4]
|
||||
[ext_resource path="res://assets/ui/themes/tab_select/UI-Button-Reset.png" type="Texture" id=5]
|
||||
[ext_resource path="res://assets/ui/themes/tab_select/UI-Button-Count.png" type="Texture" id=6]
|
||||
[ext_resource path="res://assets/ui/themes/tab_select/UI-level-btn-shadow.png" type="Texture" id=7]
|
||||
[ext_resource path="res://assets/ui/themes/tab_select/UI-level-btn-leather.png" type="Texture" id=8]
|
||||
[ext_resource path="res://assets/fonts/kirsty/kirsty_base.tres" type="FontFile" id=1]
|
||||
[ext_resource path="res://assets/ui/themes/tab_select/UI-Button-Reset-hover.png" type="Texture2D" id=2]
|
||||
[ext_resource path="res://assets/ui/themes/tab_select/UI-Button-Reset-disabled.png" type="Texture2D" id=3]
|
||||
[ext_resource path="res://assets/ui/themes/tab_select/UI-Button-Count-hover.png" type="Texture2D" id=4]
|
||||
[ext_resource path="res://assets/ui/themes/tab_select/UI-Button-Reset.png" type="Texture2D" id=5]
|
||||
[ext_resource path="res://assets/ui/themes/tab_select/UI-Button-Count.png" type="Texture2D" id=6]
|
||||
[ext_resource path="res://assets/ui/themes/tab_select/UI-level-btn-shadow.png" type="Texture2D" id=7]
|
||||
[ext_resource path="res://assets/ui/themes/tab_select/UI-level-btn-leather.png" type="Texture2D" id=8]
|
||||
|
||||
[sub_resource type="Animation" id=1]
|
||||
resource_name = "SlideReset"
|
||||
tracks/0/type = "bezier"
|
||||
tracks/0/path = NodePath("MarginContainer/CenterAlign/MainButton/TabAlign/ButtonReset:rect_position:x")
|
||||
tracks/0/path = NodePath("MarginContainer/CenterAlign/MainButton/TabAlign/ButtonReset:position:x")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/keys = {
|
||||
"points": PoolRealArray( ),
|
||||
"times": PoolRealArray( )
|
||||
"points": PackedFloat32Array( ),
|
||||
"times": PackedFloat32Array( )
|
||||
}
|
||||
tracks/1/type = "bezier"
|
||||
tracks/1/path = NodePath("MarginContainer/CenterAlign/MainButton/TabAlign/ButtonReset:rect_position:y")
|
||||
tracks/1/path = NodePath("MarginContainer/CenterAlign/MainButton/TabAlign/ButtonReset:position:y")
|
||||
tracks/1/interp = 1
|
||||
tracks/1/loop_wrap = true
|
||||
tracks/1/imported = false
|
||||
tracks/1/enabled = true
|
||||
tracks/1/keys = {
|
||||
"points": PoolRealArray( 0, -0.25, 0, 0.506539, 0.5, -40, -0.236722, -22.5, 0.25, 0 ),
|
||||
"times": PoolRealArray( 0, 1 )
|
||||
"points": PackedFloat32Array( 0, -0.25, 0, 0.506539, 0.5, -40, -0.236722, -22.5, 0.25, 0 ),
|
||||
"times": PackedFloat32Array( 0, 1 )
|
||||
}
|
||||
|
||||
[node name="TilePuzzle" type="Control"]
|
||||
margin_left = 320.0
|
||||
margin_right = 1600.0
|
||||
margin_bottom = 720.0
|
||||
offset_left = 320.0
|
||||
offset_right = 1600.0
|
||||
offset_bottom = 720.0
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
__meta__ = {
|
||||
@@ -45,9 +45,9 @@ __meta__ = {
|
||||
[node name="BackgroundTile" type="TextureRect" parent="."]
|
||||
anchor_left = 0.5
|
||||
anchor_right = 0.5
|
||||
margin_left = -114.0
|
||||
margin_right = 115.0
|
||||
margin_bottom = 456.0
|
||||
offset_left = -114.0
|
||||
offset_right = 115.0
|
||||
offset_bottom = 456.0
|
||||
texture = ExtResource( 7 )
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
@@ -56,26 +56,26 @@ __meta__ = {
|
||||
[node name="MarginContainer" type="MarginContainer" parent="."]
|
||||
anchor_left = 0.5
|
||||
anchor_right = 0.5
|
||||
margin_left = -114.0
|
||||
margin_right = 115.0
|
||||
margin_bottom = 720.0
|
||||
custom_constants/margin_right = 10
|
||||
custom_constants/margin_top = 10
|
||||
custom_constants/margin_left = 10
|
||||
offset_left = -114.0
|
||||
offset_right = 115.0
|
||||
offset_bottom = 720.0
|
||||
theme_override_constants/margin_right = 10
|
||||
theme_override_constants/margin_top = 10
|
||||
theme_override_constants/margin_left = 10
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="CenterAlign" type="VBoxContainer" parent="MarginContainer"]
|
||||
margin_left = 10.0
|
||||
margin_top = 10.0
|
||||
margin_right = 219.0
|
||||
margin_bottom = 720.0
|
||||
custom_constants/separation = 0
|
||||
offset_left = 10.0
|
||||
offset_top = 10.0
|
||||
offset_right = 219.0
|
||||
offset_bottom = 720.0
|
||||
theme_override_constants/separation = 0
|
||||
|
||||
[node name="MainButton" type="TextureButton" parent="MarginContainer/CenterAlign"]
|
||||
margin_right = 209.0
|
||||
margin_bottom = 208.0
|
||||
offset_right = 209.0
|
||||
offset_bottom = 208.0
|
||||
mouse_default_cursor_shape = 2
|
||||
texture_normal = ExtResource( 8 )
|
||||
__meta__ = {
|
||||
@@ -85,19 +85,19 @@ __meta__ = {
|
||||
[node name="MarginStich" type="MarginContainer" parent="MarginContainer/CenterAlign/MainButton"]
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
custom_constants/margin_right = 5
|
||||
custom_constants/margin_top = 5
|
||||
custom_constants/margin_left = 5
|
||||
custom_constants/margin_bottom = 5
|
||||
theme_override_constants/margin_right = 5
|
||||
theme_override_constants/margin_top = 5
|
||||
theme_override_constants/margin_left = 5
|
||||
theme_override_constants/margin_bottom = 5
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="ThumbnailLevel" type="TextureRect" parent="MarginContainer/CenterAlign/MainButton/MarginStich"]
|
||||
margin_left = 5.0
|
||||
margin_top = 5.0
|
||||
margin_right = 204.0
|
||||
margin_bottom = 203.0
|
||||
offset_left = 5.0
|
||||
offset_top = 5.0
|
||||
offset_right = 204.0
|
||||
offset_bottom = 203.0
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
expand = true
|
||||
@@ -106,10 +106,10 @@ __meta__ = {
|
||||
}
|
||||
|
||||
[node name="ThumbnailLevel" type="TextureRect" parent="MarginContainer/CenterAlign/MainButton"]
|
||||
margin_left = 5.0
|
||||
margin_top = 5.0
|
||||
margin_right = 204.0
|
||||
margin_bottom = 203.0
|
||||
offset_left = 5.0
|
||||
offset_top = 5.0
|
||||
offset_right = 204.0
|
||||
offset_bottom = 203.0
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
expand = true
|
||||
@@ -119,9 +119,9 @@ __meta__ = {
|
||||
|
||||
[node name="TabAlign" type="HBoxContainer" parent="MarginContainer/CenterAlign/MainButton"]
|
||||
show_behind_parent = true
|
||||
margin_top = 208.0
|
||||
margin_right = 209.0
|
||||
margin_bottom = 710.0
|
||||
offset_top = 208.0
|
||||
offset_right = 209.0
|
||||
offset_bottom = 710.0
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
alignment = 1
|
||||
@@ -131,18 +131,18 @@ __meta__ = {
|
||||
|
||||
[node name="ButtonReset" type="TextureButton" parent="MarginContainer/CenterAlign/MainButton/TabAlign"]
|
||||
show_behind_parent = true
|
||||
margin_left = 1.0
|
||||
margin_right = 90.0
|
||||
margin_bottom = 57.0
|
||||
offset_left = 1.0
|
||||
offset_right = 90.0
|
||||
offset_bottom = 57.0
|
||||
size_flags_vertical = 0
|
||||
texture_normal = ExtResource( 5 )
|
||||
texture_hover = ExtResource( 2 )
|
||||
texture_disabled = ExtResource( 3 )
|
||||
|
||||
[node name="ButtonCount" type="TextureButton" parent="MarginContainer/CenterAlign/MainButton/TabAlign"]
|
||||
margin_left = 94.0
|
||||
margin_right = 207.0
|
||||
margin_bottom = 57.0
|
||||
offset_left = 94.0
|
||||
offset_right = 207.0
|
||||
offset_bottom = 57.0
|
||||
mouse_default_cursor_shape = 2
|
||||
size_flags_vertical = 0
|
||||
texture_normal = ExtResource( 6 )
|
||||
@@ -152,17 +152,17 @@ texture_focused = ExtResource( 4 )
|
||||
[node name="MarginBottom" type="MarginContainer" parent="MarginContainer/CenterAlign/MainButton/TabAlign/ButtonCount"]
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
custom_constants/margin_bottom = 10
|
||||
theme_override_constants/margin_bottom = 10
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="Label" type="Label" parent="MarginContainer/CenterAlign/MainButton/TabAlign/ButtonCount/MarginBottom"]
|
||||
margin_right = 113.0
|
||||
margin_bottom = 47.0
|
||||
offset_right = 113.0
|
||||
offset_bottom = 47.0
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 7
|
||||
custom_fonts/font = ExtResource( 1 )
|
||||
theme_override_fonts/font = ExtResource( 1 )
|
||||
text = "X / 10"
|
||||
align = 1
|
||||
valign = 1
|
||||
|
||||
Reference in New Issue
Block a user