ca67fc6ec3
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>
149 lines
4.3 KiB
Plaintext
149 lines
4.3 KiB
Plaintext
[gd_scene format=3]
|
|
|
|
[ext_resource type="Script" path="res://scenes/UI/settings/Settings.gd" id="1"]
|
|
|
|
[node name="Settings" type="CenterContainer"]
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
offset_left = -1.12244
|
|
offset_right = -1.12244
|
|
script = ExtResource("1")
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="."]
|
|
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"]
|
|
offset_right = 185.0
|
|
offset_bottom = 27.0
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="VBoxContainer/langue"]
|
|
offset_left = 67.0
|
|
offset_right = 117.0
|
|
offset_bottom = 27.0
|
|
__meta__ = {
|
|
"_editor_description_": ""
|
|
}
|
|
|
|
[node name="Label" type="Label" parent="VBoxContainer/langue/VBoxContainer"]
|
|
offset_right = 50.0
|
|
offset_bottom = 14.0
|
|
text = "langue :"
|
|
horizontal_alignment = 1
|
|
|
|
[node name="data" type="ItemList" parent="VBoxContainer/langue/VBoxContainer"]
|
|
offset_top = 18.0
|
|
offset_right = 50.0
|
|
offset_bottom = 27.0
|
|
focus_mode = 0
|
|
auto_height = true
|
|
max_columns = 2
|
|
same_column_width = true
|
|
fixed_icon_size = Vector2(32, 32)
|
|
|
|
[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer/langue"]
|
|
offset_left = 92.0
|
|
offset_top = 13.0
|
|
offset_right = 92.0
|
|
offset_bottom = 13.0
|
|
|
|
[node name="gyroscope" type="CenterContainer" parent="VBoxContainer"]
|
|
offset_top = 31.0
|
|
offset_right = 185.0
|
|
offset_bottom = 71.0
|
|
|
|
[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer/gyroscope"]
|
|
offset_left = 16.0
|
|
offset_right = 169.0
|
|
offset_bottom = 40.0
|
|
|
|
[node name="Label" type="Label" parent="VBoxContainer/gyroscope/HBoxContainer"]
|
|
offset_top = 13.0
|
|
offset_right = 73.0
|
|
offset_bottom = 27.0
|
|
text = "gyroscope :"
|
|
|
|
[node name="data" type="CheckButton" parent="VBoxContainer/gyroscope/HBoxContainer"]
|
|
offset_left = 77.0
|
|
offset_right = 153.0
|
|
offset_bottom = 40.0
|
|
horizontal_alignment = 1
|
|
|
|
[node name="ambient_sound" type="CenterContainer" parent="VBoxContainer"]
|
|
offset_top = 75.0
|
|
offset_right = 185.0
|
|
offset_bottom = 115.0
|
|
|
|
[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer/ambient_sound"]
|
|
offset_right = 185.0
|
|
offset_bottom = 40.0
|
|
|
|
[node name="Label" type="Label" parent="VBoxContainer/ambient_sound/HBoxContainer"]
|
|
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"]
|
|
offset_left = 109.0
|
|
offset_right = 185.0
|
|
offset_bottom = 40.0
|
|
|
|
[node name="resolution" type="CenterContainer" parent="VBoxContainer"]
|
|
offset_top = 119.0
|
|
offset_right = 185.0
|
|
offset_bottom = 146.0
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="VBoxContainer/resolution"]
|
|
offset_left = 54.0
|
|
offset_right = 130.0
|
|
offset_bottom = 27.0
|
|
|
|
[node name="Label" type="Label" parent="VBoxContainer/resolution/VBoxContainer"]
|
|
offset_right = 76.0
|
|
offset_bottom = 14.0
|
|
text = "Resolution :"
|
|
|
|
[node name="data" type="ItemList" parent="VBoxContainer/resolution/VBoxContainer"]
|
|
offset_top = 18.0
|
|
offset_right = 76.0
|
|
offset_bottom = 27.0
|
|
focus_mode = 0
|
|
size_flags_horizontal = 3
|
|
size_flags_vertical = 3
|
|
auto_height = true
|
|
same_column_width = true
|
|
|
|
[node name="fullscreen" type="CenterContainer" parent="VBoxContainer"]
|
|
offset_top = 150.0
|
|
offset_right = 185.0
|
|
offset_bottom = 190.0
|
|
|
|
[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer/fullscreen"]
|
|
offset_left = 15.0
|
|
offset_right = 169.0
|
|
offset_bottom = 40.0
|
|
|
|
[node name="Label" type="Label" parent="VBoxContainer/fullscreen/HBoxContainer"]
|
|
offset_top = 13.0
|
|
offset_right = 74.0
|
|
offset_bottom = 27.0
|
|
text = "Fullscreen :"
|
|
|
|
[node name="data" type="CheckButton" parent="VBoxContainer/fullscreen/HBoxContainer"]
|
|
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"]
|
|
[connection signal="pressed" from="VBoxContainer/ambient_sound/HBoxContainer/data" to="." method="_on_ambient_sound_pressed"]
|
|
[connection signal="item_selected" from="VBoxContainer/resolution/VBoxContainer/data" to="." method="_on_resolution_item_selected"]
|
|
[connection signal="pressed" from="VBoxContainer/fullscreen/HBoxContainer/data" to="." method="_on_fullscreen_item_selected"]
|