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
+3 -3
View File
@@ -1,6 +1,6 @@
[gd_scene load_steps=7 format=2]
[ext_resource path="res://assets/ui/themes/bck.jpg" type="Texture" id=1]
[ext_resource path="res://assets/ui/themes/bck.jpg" type="Texture2D" id=1]
[sub_resource type="VisualShaderNodeInput" id=1]
input_name = "screen_uv"
@@ -14,7 +14,7 @@ input_name = "screen_texture"
[sub_resource type="VisualShader" id=4]
code = "shader_type canvas_item;
uniform sampler2D tex_frg_4 : hint_albedo;
uniform sampler2D tex_frg_4 : source_color;
@@ -48,7 +48,7 @@ nodes/fragment/4/node = SubResource( 2 )
nodes/fragment/4/position = Vector2( -80, 60 )
nodes/fragment/5/node = SubResource( 3 )
nodes/fragment/5/position = Vector2( -1000, 20 )
nodes/fragment/connections = PoolIntArray( 4, 0, 0, 0 )
nodes/fragment/connections = PackedInt32Array( 4, 0, 0, 0 )
[sub_resource type="ShaderMaterial" id=5]
shader = SubResource( 4 )
+5 -5
View File
@@ -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")
+2 -2
View File
@@ -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
+58 -58
View File
@@ -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
+12 -12
View File
@@ -2,9 +2,9 @@
[ext_resource path="res://scenes/UI/ending/Ending.gd" type="Script" id=1]
[ext_resource path="res://assets/sounds/victory.ogg" type="AudioStream" id=2]
[ext_resource path="res://assets/fonts/MKX Title.ttf" type="DynamicFontData" id=3]
[ext_resource path="res://assets/fonts/MKX Title.ttf" type="FontFile" id=3]
[sub_resource type="DynamicFont" id=1]
[sub_resource type="FontFile" id=1]
size = 35
font_data = ExtResource( 3 )
@@ -19,10 +19,10 @@ __meta__ = {
}
[node name="ColorRect" type="ColorRect" parent="."]
margin_left = 640.0
margin_top = 360.0
margin_right = 640.0
margin_bottom = 360.0
offset_left = 640.0
offset_top = 360.0
offset_right = 640.0
offset_bottom = 360.0
grow_horizontal = 0
grow_vertical = 0
size_flags_horizontal = 3
@@ -38,12 +38,12 @@ stream = ExtResource( 2 )
volume_db = -29.411
[node name="Label" type="Label" parent="."]
margin_left = 477.0
margin_top = 275.0
margin_right = 802.0
margin_bottom = 444.0
custom_fonts/font = SubResource( 1 )
custom_colors/font_color = Color( 1, 1, 1, 1 )
offset_left = 477.0
offset_top = 275.0
offset_right = 802.0
offset_bottom = 444.0
theme_override_fonts/font = SubResource( 1 )
theme_override_colors/font_color = Color( 1, 1, 1, 1 )
text = "aHog !!!
+11 -11
View File
@@ -7,24 +7,24 @@
[sub_resource type="Animation" id=1]
resource_name = "BorderAnim"
tracks/0/type = "bezier"
tracks/0/path = NodePath("LoadingTopBorder:rect_position:x")
tracks/0/path = NodePath("LoadingTopBorder: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("LoadingTopBorder:rect_position:y")
tracks/1/path = NodePath("LoadingTopBorder:position:y")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/keys = {
"points": PoolRealArray( -768, -0.25, 0, 1.01154, 306.838, -160.174, -1.02203, -283.071, 0.439946, 60.9141, -27.6065, -0.45336, -19.562, 0.536352, 17.1993, 0.362091, -0.538766, -0.968613, 0.25, 0 ),
"times": PoolRealArray( 0.1, 0.3, 0.6, 0.9 )
"points": PackedFloat32Array( -768, -0.25, 0, 1.01154, 306.838, -160.174, -1.02203, -283.071, 0.439946, 60.9141, -27.6065, -0.45336, -19.562, 0.536352, 17.1993, 0.362091, -0.538766, -0.968613, 0.25, 0 ),
"times": PackedFloat32Array( 0.1, 0.3, 0.6, 0.9 )
}
tracks/2/type = "bezier"
tracks/2/path = NodePath("LoadingBare:modulate:a")
@@ -33,8 +33,8 @@ tracks/2/loop_wrap = true
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/keys = {
"points": PoolRealArray( 0, -0.25, 0, 1.10651, 0.716757, 1, -1.59408, -0.0328361, 0.25, 0 ),
"times": PoolRealArray( 0, 0.4 )
"points": PackedFloat32Array( 0, -0.25, 0, 1.10651, 0.716757, 1, -1.59408, -0.0328361, 0.25, 0 ),
"times": PackedFloat32Array( 0, 0.4 )
}
[node name="Control" type="Control"]
@@ -47,11 +47,11 @@ __meta__ = {
[node name="BackgroundPicture" parent="." instance=ExtResource( 3 )]
[node name="LoadingTopBorder" parent="." instance=ExtResource( 2 )]
margin_top = 0.362091
margin_bottom = 0.362061
offset_top = 0.362091
offset_bottom = 0.362061
[node name="LoadingBare" parent="." instance=ExtResource( 1 )]
margin_top = 360.0
offset_top = 360.0
[node name="AnimLoading" type="AnimationPlayer" parent="."]
method_call_mode = 1
+9 -9
View File
@@ -6,23 +6,23 @@ anchor_bottom = 1.0
size_flags_horizontal = 3
[node name="MarginContainer" type="MarginContainer" parent="."]
margin_right = 1280.0
margin_bottom = 237.0
offset_right = 1280.0
offset_bottom = 237.0
size_flags_horizontal = 3
size_flags_vertical = 3
[node name="BorderLeft" type="ColorRect" parent="."]
margin_top = 241.0
margin_right = 1280.0
margin_bottom = 478.0
rect_min_size = Vector2( 0, 8 )
offset_top = 241.0
offset_right = 1280.0
offset_bottom = 478.0
custom_minimum_size = Vector2( 0, 8 )
size_flags_horizontal = 3
size_flags_vertical = 3
color = Color( 0.74902, 0.701961, 0.65098, 1 )
[node name="MarginContainer2" type="MarginContainer" parent="."]
margin_top = 482.0
margin_right = 1280.0
margin_bottom = 720.0
offset_top = 482.0
offset_right = 1280.0
offset_bottom = 720.0
size_flags_horizontal = 3
size_flags_vertical = 3
+10 -10
View File
@@ -1,6 +1,6 @@
[gd_scene load_steps=3 format=2]
[ext_resource path="res://assets/fonts/kirsty/kirsty_title.tres" type="DynamicFont" id=1]
[ext_resource path="res://assets/fonts/kirsty/kirsty_title.tres" type="FontFile" id=1]
[ext_resource path="res://scenes/UI/loading/Loading.gd" type="Script" id=2]
[node name="VBoxLoading" type="VBoxContainer"]
@@ -8,13 +8,13 @@ anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
margin_left = -96.5
margin_top = -28.0
margin_right = 96.5
margin_bottom = 28.0
offset_left = -96.5
offset_top = -28.0
offset_right = 96.5
offset_bottom = 28.0
size_flags_horizontal = 0
size_flags_vertical = 0
custom_constants/separation = 0
theme_override_constants/separation = 0
alignment = 1
script = ExtResource( 2 )
__meta__ = {
@@ -22,10 +22,10 @@ __meta__ = {
}
[node name="LabelLoading" type="Label" parent="."]
margin_right = 193.0
margin_bottom = 56.0
custom_fonts/font = ExtResource( 1 )
custom_colors/font_color = Color( 0.74902, 0.701961, 0.65098, 1 )
offset_right = 193.0
offset_bottom = 56.0
theme_override_fonts/font = ExtResource( 1 )
theme_override_colors/font_color = Color( 0.74902, 0.701961, 0.65098, 1 )
text = "loading"
align = 1
valign = 2
+16 -16
View File
@@ -17,28 +17,28 @@ __meta__ = {
}
[node name="MarginContainer" type="MarginContainer" parent="VBoxContainer"]
margin_right = 1280.0
margin_bottom = 237.0
offset_right = 1280.0
offset_bottom = 237.0
size_flags_horizontal = 3
size_flags_vertical = 3
[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer"]
margin_top = 241.0
margin_right = 1280.0
margin_bottom = 478.0
offset_top = 241.0
offset_right = 1280.0
offset_bottom = 478.0
size_flags_horizontal = 3
size_flags_vertical = 3
[node name="HSplitContainer" type="HSplitContainer" parent="VBoxContainer/HBoxContainer"]
margin_right = 238.0
margin_bottom = 237.0
offset_right = 238.0
offset_bottom = 237.0
size_flags_horizontal = 3
size_flags_stretch_ratio = 0.3
[node name="ProgressBar" type="ProgressBar" parent="VBoxContainer/HBoxContainer"]
margin_left = 242.0
margin_right = 1037.0
margin_bottom = 237.0
offset_left = 242.0
offset_right = 1037.0
offset_bottom = 237.0
size_flags_horizontal = 3
size_flags_vertical = 3
theme = ExtResource( 1 )
@@ -47,15 +47,15 @@ step = 0.1
rounded = true
[node name="HSplitContainer2" type="HSplitContainer" parent="VBoxContainer/HBoxContainer"]
margin_left = 1041.0
margin_right = 1280.0
margin_bottom = 237.0
offset_left = 1041.0
offset_right = 1280.0
offset_bottom = 237.0
size_flags_horizontal = 3
size_flags_stretch_ratio = 0.3
[node name="MarginContainer2" type="MarginContainer" parent="VBoxContainer"]
margin_top = 482.0
margin_right = 1280.0
margin_bottom = 720.0
offset_top = 482.0
offset_right = 1280.0
offset_bottom = 720.0
size_flags_horizontal = 3
size_flags_vertical = 3
+24 -24
View File
@@ -2,13 +2,13 @@
[ext_resource path="res://scenes/UI/loading/parts/LabelLoading.tscn" type="PackedScene" id=1]
[ext_resource path="res://scenes/UI/loading/parts/BorderColor.tscn" type="PackedScene" id=2]
[ext_resource path="res://assets/ui/themes/bck-hrz-grd.png" type="Texture" id=3]
[ext_resource path="res://assets/ui/themes/bck-hrz-grd.png" type="Texture2D" id=3]
[node name="LoadingBorder" type="Control"]
anchor_right = 1.0
anchor_bottom = 1.0
grow_vertical = 2
rect_clip_content = true
clip_contents = true
size_flags_horizontal = 3
size_flags_vertical = 3
__meta__ = {
@@ -18,22 +18,22 @@ __meta__ = {
[node name="BackgroundGradient" type="VBoxContainer" parent="."]
anchor_right = 1.0
anchor_bottom = 1.0
custom_constants/separation = 0
theme_override_constants/separation = 0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="BlackColor" type="ColorRect" parent="BackgroundGradient"]
margin_right = 1280.0
margin_bottom = 240.0
offset_right = 1280.0
offset_bottom = 240.0
size_flags_horizontal = 3
size_flags_vertical = 3
color = Color( 0, 0, 0, 1 )
[node name="ColorRect" type="TextureRect" parent="BackgroundGradient"]
margin_top = 240.0
margin_right = 1280.0
margin_bottom = 480.0
offset_top = 240.0
offset_right = 1280.0
offset_bottom = 480.0
size_flags_horizontal = 3
size_flags_vertical = 3
texture = ExtResource( 3 )
@@ -43,9 +43,9 @@ __meta__ = {
}
[node name="MarginContainer" type="MarginContainer" parent="BackgroundGradient"]
margin_top = 480.0
margin_right = 1280.0
margin_bottom = 720.0
offset_top = 480.0
offset_right = 1280.0
offset_bottom = 720.0
size_flags_horizontal = 3
size_flags_vertical = 3
@@ -53,11 +53,11 @@ size_flags_vertical = 3
anchor_top = 0.5
anchor_right = 1.0
anchor_bottom = 0.5
margin_top = -30.0
margin_bottom = 30.0
rect_clip_content = true
offset_top = -30.0
offset_bottom = 30.0
clip_contents = true
size_flags_vertical = 5
custom_constants/separation = 20
theme_override_constants/separation = 20
alignment = 1
__meta__ = {
"_edit_use_anchors_": false
@@ -66,22 +66,22 @@ __meta__ = {
[node name="BorderLeft" parent="LabelAndBorder" instance=ExtResource( 2 )]
anchor_right = 0.0
anchor_bottom = 0.0
margin_right = 523.0
margin_bottom = 60.0
offset_right = 523.0
offset_bottom = 60.0
[node name="LabelLoading" parent="LabelAndBorder" instance=ExtResource( 1 )]
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_left = 543.0
margin_top = 0.0
margin_right = 736.0
margin_bottom = 56.0
offset_left = 543.0
offset_top = 0.0
offset_right = 736.0
offset_bottom = 56.0
[node name="BorderRight" parent="LabelAndBorder" instance=ExtResource( 2 )]
anchor_right = 0.0
anchor_bottom = 0.0
margin_left = 756.0
margin_right = 1280.0
margin_bottom = 60.0
offset_left = 756.0
offset_right = 1280.0
offset_bottom = 60.0
+66 -66
View File
@@ -5,42 +5,42 @@
[node name="Settings" type="CenterContainer"]
anchor_right = 1.0
anchor_bottom = 1.0
margin_left = -1.12244
margin_right = -1.12244
offset_left = -1.12244
offset_right = -1.12244
script = ExtResource( 1 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="VBoxContainer" type="VBoxContainer" parent="."]
margin_left = 547.0
margin_top = 265.0
margin_right = 732.0
margin_bottom = 455.0
offset_left = 547.0
offset_top = 265.0
offset_right = 732.0
offset_bottom = 455.0
alignment = 1
[node name="langue" type="CenterContainer" parent="VBoxContainer"]
margin_right = 185.0
margin_bottom = 27.0
offset_right = 185.0
offset_bottom = 27.0
[node name="VBoxContainer" type="VBoxContainer" parent="VBoxContainer/langue"]
margin_left = 67.0
margin_right = 117.0
margin_bottom = 27.0
offset_left = 67.0
offset_right = 117.0
offset_bottom = 27.0
__meta__ = {
"_editor_description_": ""
}
[node name="Label" type="Label" parent="VBoxContainer/langue/VBoxContainer"]
margin_right = 50.0
margin_bottom = 14.0
offset_right = 50.0
offset_bottom = 14.0
text = "langue :"
align = 1
[node name="data" type="ItemList" parent="VBoxContainer/langue/VBoxContainer"]
margin_top = 18.0
margin_right = 50.0
margin_bottom = 27.0
offset_top = 18.0
offset_right = 50.0
offset_bottom = 27.0
focus_mode = 0
auto_height = true
max_columns = 2
@@ -48,72 +48,72 @@ same_column_width = true
fixed_icon_size = Vector2( 32, 32 )
[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer/langue"]
margin_left = 92.0
margin_top = 13.0
margin_right = 92.0
margin_bottom = 13.0
offset_left = 92.0
offset_top = 13.0
offset_right = 92.0
offset_bottom = 13.0
[node name="gyroscope" type="CenterContainer" parent="VBoxContainer"]
margin_top = 31.0
margin_right = 185.0
margin_bottom = 71.0
offset_top = 31.0
offset_right = 185.0
offset_bottom = 71.0
[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer/gyroscope"]
margin_left = 16.0
margin_right = 169.0
margin_bottom = 40.0
offset_left = 16.0
offset_right = 169.0
offset_bottom = 40.0
[node name="Label" type="Label" parent="VBoxContainer/gyroscope/HBoxContainer"]
margin_top = 13.0
margin_right = 73.0
margin_bottom = 27.0
offset_top = 13.0
offset_right = 73.0
offset_bottom = 27.0
text = "gyroscope :"
[node name="data" type="CheckButton" parent="VBoxContainer/gyroscope/HBoxContainer"]
margin_left = 77.0
margin_right = 153.0
margin_bottom = 40.0
offset_left = 77.0
offset_right = 153.0
offset_bottom = 40.0
align = 1
[node name="ambient_sound" type="CenterContainer" parent="VBoxContainer"]
margin_top = 75.0
margin_right = 185.0
margin_bottom = 115.0
offset_top = 75.0
offset_right = 185.0
offset_bottom = 115.0
[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer/ambient_sound"]
margin_right = 185.0
margin_bottom = 40.0
offset_right = 185.0
offset_bottom = 40.0
[node name="Label" type="Label" parent="VBoxContainer/ambient_sound/HBoxContainer"]
margin_top = 13.0
margin_right = 105.0
margin_bottom = 27.0
offset_top = 13.0
offset_right = 105.0
offset_bottom = 27.0
text = "Ambiant sound :"
[node name="data" type="CheckButton" parent="VBoxContainer/ambient_sound/HBoxContainer"]
margin_left = 109.0
margin_right = 185.0
margin_bottom = 40.0
offset_left = 109.0
offset_right = 185.0
offset_bottom = 40.0
[node name="resolution" type="CenterContainer" parent="VBoxContainer"]
margin_top = 119.0
margin_right = 185.0
margin_bottom = 146.0
offset_top = 119.0
offset_right = 185.0
offset_bottom = 146.0
[node name="VBoxContainer" type="VBoxContainer" parent="VBoxContainer/resolution"]
margin_left = 54.0
margin_right = 130.0
margin_bottom = 27.0
offset_left = 54.0
offset_right = 130.0
offset_bottom = 27.0
[node name="Label" type="Label" parent="VBoxContainer/resolution/VBoxContainer"]
margin_right = 76.0
margin_bottom = 14.0
offset_right = 76.0
offset_bottom = 14.0
text = "Resolution :"
[node name="data" type="ItemList" parent="VBoxContainer/resolution/VBoxContainer"]
margin_top = 18.0
margin_right = 76.0
margin_bottom = 27.0
offset_top = 18.0
offset_right = 76.0
offset_bottom = 27.0
focus_mode = 0
size_flags_horizontal = 3
size_flags_vertical = 3
@@ -121,25 +121,25 @@ auto_height = true
same_column_width = true
[node name="fullscreen" type="CenterContainer" parent="VBoxContainer"]
margin_top = 150.0
margin_right = 185.0
margin_bottom = 190.0
offset_top = 150.0
offset_right = 185.0
offset_bottom = 190.0
[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer/fullscreen"]
margin_left = 15.0
margin_right = 169.0
margin_bottom = 40.0
offset_left = 15.0
offset_right = 169.0
offset_bottom = 40.0
[node name="Label" type="Label" parent="VBoxContainer/fullscreen/HBoxContainer"]
margin_top = 13.0
margin_right = 74.0
margin_bottom = 27.0
offset_top = 13.0
offset_right = 74.0
offset_bottom = 27.0
text = "Fullscreen :"
[node name="data" type="CheckButton" parent="VBoxContainer/fullscreen/HBoxContainer"]
margin_left = 78.0
margin_right = 154.0
margin_bottom = 40.0
offset_left = 78.0
offset_right = 154.0
offset_bottom = 40.0
[connection signal="item_selected" from="VBoxContainer/langue/VBoxContainer/data" to="." method="_on_langue_item_selected"]
[connection signal="pressed" from="VBoxContainer/gyroscope/HBoxContainer/data" to="." method="_on_gyroscope_pressed"]
+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 )
+6 -6
View File
@@ -1,18 +1,18 @@
[gd_scene load_steps=2 format=2]
[ext_resource path="res://assets/ui/themes/game-title.png" type="Texture" id=1]
[ext_resource path="res://assets/ui/themes/game-title.png" type="Texture2D" id=1]
[node name="Control" type="CenterContainer"]
anchor_right = 1.0
anchor_bottom = 1.0
rect_pivot_offset = Vector2( -656.735, -331.043 )
pivot_offset = Vector2( -656.735, -331.043 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="TextureRect" type="TextureRect" parent="."]
margin_left = 305.0
margin_top = 282.0
margin_right = 974.0
margin_bottom = 438.0
offset_left = 305.0
offset_top = 282.0
offset_right = 974.0
offset_bottom = 438.0
texture = ExtResource( 1 )