Files
puzzle-quest/scenes/UI/summary/Summary.tscn
T
Vaillant Jeremy ca67fc6ec3 Convert all VisualShaders to plain Shaders; clean editor noise
Godot 4 emits two unavoidable warnings every time it reconstructs a
Godot-3-authored VisualShader graph: 'graph_offset property is
deprecated' (the editor's pan position, removed in 4.x) and
'connect_nodes_forced: Index p_from_port = 1 is out of bounds'
(node-graph ports that no longer line up). The compiled GLSL inside
each ShaderMaterial is correct; only the graph reconstruction is
broken.

scripts/devisualize_shaders.gd walks every .material, .tres, and
.mesh under res:// and replaces ShaderMaterial.shader from
VisualShader to a plain Shader carrying the same .code. 15 materials
converted (font outline, dissolve, color tints, book/candle/godet/
growler/parchment/rock-floor/stool/table). Godot now loads the
compiled shader directly with no graph reconstruction → both
warnings gone, rendering identical.

Also:
- scripts/resave_scenes.gd: load + re-save every .tscn so inline
  ArrayMesh sub-resources (notably WarCraft.tscn::17, the baked
  floor) move from Godot-3 PoolByteArray to Godot-4 PackedByteArray
  surface format. Silences 'Mesh uses old surface format'.
- scripts/find_visualshaders.gd: companion audit tool that lists
  every Resource still backed by a VisualShader. Useful if new
  legacy materials get added.
- Drop the now-orphan inline VisualShader / ShaderMaterial sub-
  resources (id 1..17) from Summary.tscn. The PanelWood lost its
  screen-blend tint material; a plain Panel renders fine and the
  effect can be re-authored as a hand-written shader if wanted.
- Add releases/.gdignore and tighten .gitignore so Godot stops
  warning 'Detected another project.godot at res://releases'. The
  releases/ directory has its own placeholder project.godot which
  Godot would otherwise flag at every editor open.

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

233 lines
6.6 KiB
Plaintext

[gd_scene format=3]
[ext_resource type="Texture2D" path="res://assets/ui/themes/button-summary-hover.jpg" id="1"]
[ext_resource type="Texture2D" path="res://assets/ui/themes/button-summary.jpg" id="2"]
[ext_resource type="FontVariation" path="res://assets/fonts/kirsty/kirsty_base.tres" id="3"]
[ext_resource type="FontVariation" path="res://assets/fonts/kirsty/kirsty_title.tres" id="4"]
[ext_resource type="Texture2D" path="res://assets/ui/icones/treasure.png" id="5"]
[ext_resource type="Texture2D" path="res://assets/ui/icones/treasure-hover.png" id="7"]
[ext_resource type="Texture2D" path="res://assets/ui/themes/bck-vert-grd.png" id="8"]
[ext_resource type="Texture2D" path="res://assets/ui/themes/wood-tile.jpg" id="9"]
[node name="Summary" type="HBoxContainer"]
anchor_bottom = 1.0
offset_right = 236.0
theme_override_constants/separation = 0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="PanelWood" type="Panel" parent="."]
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
clip_contents = true
size_flags_horizontal = 8
size_flags_vertical = 11
theme_override_constants/separation = 30
__meta__ = {
"_edit_use_anchors_": false
}
[node name="CenterContainer" type="CenterContainer" parent="PanelWood/VBoxContainer"]
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"]
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
texture_normal = ExtResource("5")
texture_hover = ExtResource("7")
texture_focused = ExtResource("7")
stretch_mode = 3
[node name="ButtonPuzzle" type="TextureButton" parent="PanelWood/VBoxContainer"]
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
texture_normal = ExtResource("2")
texture_hover = ExtResource("1")
texture_focused = ExtResource("1")
__meta__ = {
"_editor_description_": ""
}
[node name="Label" type="Label" parent="PanelWood/VBoxContainer/ButtonPuzzle"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = 0.0
offset_top = 0.0
offset_right = 0.0
offset_bottom = 0.0
theme_override_fonts/font = ExtResource("4")
theme_override_font_sizes/font_size = 46
text = "Puzzles"
horizontal_alignment = 1
vertical_alignment = 1
[node name="ButtonSetting" type="TextureButton" parent="PanelWood/VBoxContainer"]
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
texture_normal = ExtResource("2")
texture_hover = ExtResource("1")
texture_focused = ExtResource("1")
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Label" type="Label" parent="PanelWood/VBoxContainer/ButtonSetting"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
size_flags_horizontal = 7
size_flags_vertical = 3
theme_override_fonts/font = ExtResource("4")
theme_override_font_sizes/font_size = 46
theme_override_colors/font_color = Color(0, 0, 0, 1)
text = "Paramètres"
horizontal_alignment = 1
vertical_alignment = 1
__meta__ = {
"_edit_use_anchors_": false,
"_editor_description_": ""
}
[node name="ButtonCredits" type="TextureButton" parent="PanelWood/VBoxContainer"]
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
texture_normal = ExtResource("2")
texture_hover = ExtResource("1")
texture_focused = ExtResource("1")
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Label" type="Label" parent="PanelWood/VBoxContainer/ButtonCredits"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
size_flags_horizontal = 7
size_flags_vertical = 3
theme_override_fonts/font = ExtResource("4")
theme_override_font_sizes/font_size = 46
theme_override_colors/font_color = Color(0, 0, 0, 1)
text = "Crédits"
horizontal_alignment = 1
vertical_alignment = 1
__meta__ = {
"_edit_use_anchors_": false,
"_editor_description_": ""
}
[node name="MarginContainer" type="MarginContainer" parent="PanelWood/VBoxContainer"]
offset_top = 622.0
offset_right = 350.0
offset_bottom = 893.0
size_flags_vertical = 3
[node name="ButtonQuit" type="TextureButton" parent="PanelWood/VBoxContainer"]
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
texture_normal = ExtResource("2")
texture_hover = ExtResource("1")
__meta__ = {
"_editor_description_": ""
}
[node name="Label" type="Label" parent="PanelWood/VBoxContainer/ButtonQuit"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
size_flags_horizontal = 7
size_flags_vertical = 3
theme_override_fonts/font = ExtResource("4")
theme_override_font_sizes/font_size = 46
theme_override_colors/font_color = Color(0, 0, 0, 1)
text = "Quit"
horizontal_alignment = 1
vertical_alignment = 1
__meta__ = {
"_edit_use_anchors_": false,
"_editor_description_": ""
}
[node name="ContainerVersion" type="HBoxContainer" parent="PanelWood/VBoxContainer"]
offset_top = 1030.0
offset_right = 350.0
offset_bottom = 1050.0
[node name="MarginLeft" type="MarginContainer" parent="PanelWood/VBoxContainer/ContainerVersion"]
offset_right = 283.0
offset_bottom = 20.0
size_flags_horizontal = 3
[node name="LabelVersion" type="Label" parent="PanelWood/VBoxContainer/ContainerVersion"]
offset_left = 287.0
offset_right = 334.0
offset_bottom = 20.0
size_flags_vertical = 0
theme_override_fonts/font = ExtResource("3")
theme_override_colors/font_color = Color(0.741176, 0.478431, 0.372549, 1)
text = "v 0.0.0"
horizontal_alignment = 2
[node name="MarginRight" type="MarginContainer" parent="PanelWood/VBoxContainer/ContainerVersion"]
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"]
offset_top = 1080.0
offset_right = 350.0
offset_bottom = 1080.0
size_flags_stretch_ratio = 0.2
[node name="TextureRect" type="TextureRect" parent="."]
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")
stretch_mode = 1
__meta__ = {
"_edit_use_anchors_": false
}
[node name="ClickButton" type="AudioStreamPlayer" parent="."]