Files
puzzle-quest/scenes/UI/choose_scenes/parts/Template.tscn
T
Vaillant Jeremy 81e6ceb003 Silence Godot 4 editor warnings (debugger)
Address every warning that surfaced in the running game's debugger:

- Drop deprecated 'graph_offset = Vector2(...)' lines from the three
  in-tree VisualShader resources (red.tres, green.tres,
  Summary.tscn). The property is editor-only graph pan, ignored at
  runtime but warns at load.
- Add android/.gdignore so Godot stops scanning the build template
  copies of red.tres/green.tres (which still had graph_offset). Tighten
  .gitignore to keep tracking the .gdignore marker only.
- Drop the broken 'nodes/fragment/connections = ...' line from the
  inline VisualShader in Summary.tscn — connections referenced
  out-of-bounds ports (e.g. port 1 on a 1-output node). The
  pre-compiled 'code = ...' string is kept so rendering is unaffected.
- Drop the orphaned 'ext_resource WarCraft.lmbake' from WarCraft.tscn:
  the LightmapGI node no longer references it but Godot still loaded
  the (Godot-3-format) blob from the ext_resource declaration alone,
  triggering '(p_data.size() % 4) != 0'.
- Animation tracks: SlideReset (Template.tscn), BorderAnim
  (Loading.tscn), and ObjectFindAll (ListObjects.tscn) each had a
  bezier track with empty PackedFloat32Array keys, which
  AnimationMixer rejects in Godot 4. Drop the empty x track in each
  (the y track held the actual motion).
- Re-save 57 .mesh files via scripts/migrate_misc.gd so the surface
  format is the current Godot 4 variant. sm_stackgold.mesh in
  particular triggered the deprecation warning every load.

GDScript: rename function parameters and locals that shadowed
Node.name / Node.value in:
- db/MScene.gd (set_lock, set_mesh, set_tick_reference, set_value)
- scripts/Setting.gd untouched (no shadow, false positive earlier)
- scenes/UI/choose_scenes/ChooseScene.gd (_load_scene, _build_path,
  _build_method)
- scenes/levels/Levels.gd (_create_animation_slide,
  _create_animation_warning, _add_animation_to_player,
  _create_button_info, _node_object_list)

lod plugin: Godot 4 added 'lod_bias' as a native property on
VisualInstance3D, which collided with the plugin's 'lod_bias' member
across all five lod_*.gd files. Rename to 'lod_distance_bias' so the
scripts parse again. Also drop Light3D.shadow_color writes in
lod_omni_light.gd and lod_spot_light.gd — that property was removed
in Godot 4, so the related shadow_value computation became dead code.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-16 21:28:22 +02:00

166 lines
4.9 KiB
Plaintext

[gd_scene load_steps=10 format=2]
[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:position:y")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"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"]
offset_left = 320.0
offset_right = 1600.0
offset_bottom = 720.0
size_flags_horizontal = 3
size_flags_vertical = 3
__meta__ = {
"_edit_use_anchors_": false
}
[node name="BackgroundTile" type="TextureRect" parent="."]
visible = false
anchor_left = 0.5
anchor_right = 0.5
offset_left = -114.0
offset_right = 115.0
offset_bottom = 456.0
texture = ExtResource( 7 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="MarginContainer" type="MarginContainer" parent="."]
anchor_left = 0.5
anchor_right = 0.5
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"]
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"]
offset_right = 209.0
offset_bottom = 208.0
mouse_default_cursor_shape = 2
texture_normal = ExtResource( 8 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="MarginStich" type="MarginContainer" parent="MarginContainer/CenterAlign/MainButton"]
anchor_right = 1.0
anchor_bottom = 1.0
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"]
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_mode = 1
__meta__ = {
"_edit_use_anchors_": false
}
[node name="ThumbnailLevel" type="TextureRect" parent="MarginContainer/CenterAlign/MainButton"]
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_mode = 1
__meta__ = {
"_edit_use_anchors_": false
}
[node name="TabAlign" type="HBoxContainer" parent="MarginContainer/CenterAlign/MainButton"]
show_behind_parent = true
offset_top = 208.0
offset_right = 209.0
offset_bottom = 710.0
size_flags_horizontal = 3
size_flags_vertical = 3
alignment = 1
__meta__ = {
"_edit_use_anchors_": false
}
[node name="ButtonReset" type="TextureButton" parent="MarginContainer/CenterAlign/MainButton/TabAlign"]
show_behind_parent = true
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"]
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 )
texture_hover = ExtResource( 4 )
texture_focused = ExtResource( 4 )
[node name="MarginBottom" type="MarginContainer" parent="MarginContainer/CenterAlign/MainButton/TabAlign/ButtonCount"]
anchor_right = 1.0
anchor_bottom = 1.0
theme_override_constants/margin_bottom = 10
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Label" type="Label" parent="MarginContainer/CenterAlign/MainButton/TabAlign/ButtonCount/MarginBottom"]
offset_right = 113.0
offset_bottom = 47.0
size_flags_horizontal = 3
size_flags_vertical = 7
theme_override_fonts/font = ExtResource( 1 )
text = "X / 10"
horizontal_alignment = 1
vertical_alignment = 1
__meta__ = {
"_edit_use_anchors_": false
}
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
anims/SlideReset = SubResource( 1 )