6f3f8b8f64
Discovered while playtesting the migrated build. Each fix has a specific Godot-3-to-4 cause that the --convert-3to4 tool did not catch. Fonts: - Replace 4 .tres font wrappers (MKX_Base, kirsty_base/medium/title) with FontVariation pointing at the .otf/.ttf source. Godot 3 DynamicFont with size= and font_data= is invalid in Godot 4 (those properties don't exist on FontFile). - Apply size 46 via theme_override_font_sizes/font_size on the 5 Labels that used kirsty_title.tres (LabelLoading + 4 in Summary). - Drop the broken VisualShader text_outline.material from the 4 Labels in Summary — Index p_from_port errors in Godot 4 meant COLOR was never written, so text rendered invisible. - Migrate VisualShader nodes inside text_outline.material (compressed asset; updated by the inspect/migrate scripts). Translations: - Move project.godot section from [locale] (Godot 3) to [internationalization] with locale/translations=... (Godot 4). The old section was silently ignored so tr() returned the raw msgid. - Adjust Setting.translate_int_to_locale to return "en"/"fr" to match what the .po files declare (was "en_GB"/"fr_FR", which Godot 3 fell back from automatically but Godot 4 does not). Label alignment (Godot 3 names not auto-renamed): - align -> horizontal_alignment, valign -> vertical_alignment across 9 .tscn files. Background / Loading / ChooseScene layout: - Rewrite Background.tscn from a VisualShader-textured Panel to a plain TextureRect (the visual shader connection ports went out of bounds in Godot 4, leaving the panel grey on scene reload). - Set layout_mode=1 + anchors_preset=15 on BackgroundPicture instances in Main.tscn and Loading.tscn — Godot 4 inheritance no longer applies the .tscn-root's anchors to an instanced child unless layout_mode is set to Anchors mode explicitly. - Replace scroll_horizontal_enabled (Godot 3) with horizontal_scroll_mode/vertical_scroll_mode (Godot 4) on ChooseScene's ScrollContainer. - Add theme_override_styles/panel = StyleBoxEmpty on the ScrollContainer (Godot 4 ScrollContainer ships a default dark panel style that Godot 3 did not). - Hide BackgroundTile in Template.tscn — it points at UI-level-btn-shadow.png (228x228, 83% opaque black) which used to render at natural size in Godot 3 but is stretched to fill the 456px rect in Godot 4, leaving a big black square below each thumbnail. The proper drop-shadow needs a shader or 9-patch. - TextureRect.expand=true (Godot 3) -> expand_mode=1 (Godot 4) on ThumbnailLevel and TopPart's content rects. Lighting: - background_mode 3 (which used to mean Sky in Godot 3) -> 2 (Sky in Godot 4; 3 is now Canvas, producing a black background). - background_sky -> sky, background_energy -> background_energy_multiplier, fog_color -> fog_light_color, fog_height_min -> fog_height; drop fog_height_enabled / fog_height_max / fog_height_curve / dof_blur_far_distance (no longer exist). - Add fog_mode = 1 so Godot 4 uses fog_depth_* instead of the new default fog_density-based exponential fog (which rendered as a thick white cloud). - ambient_light_energy 1.55 -> 0.4 — the new pipeline interprets the value much more strongly so 1.55 produced a saturated pink scene. - Remove the light_data = ExtResource(41) reference to WarCraft.lmbake — Godot 3 baked lightmap binary format is incompatible with Godot 4. Re-bake in editor when ready. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
389 lines
11 KiB
Plaintext
389 lines
11 KiB
Plaintext
[gd_scene load_steps=27 format=2]
|
|
|
|
[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="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
|
|
|
|
[sub_resource type="VisualShaderNodeInput" id=2]
|
|
input_name = "screen_uv"
|
|
|
|
[sub_resource type="VisualShaderNodeVectorDecompose" id=3]
|
|
output_port_for_preview = 1
|
|
|
|
[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="VisualShaderNodeMix" id=7]
|
|
|
|
[sub_resource type="VisualShaderNodeFloatOp" id=8]
|
|
default_input_values = [ 0, 0.0, 1, 0.2 ]
|
|
operator = 2
|
|
|
|
[sub_resource type="VisualShaderNodeFloatOp" id=9]
|
|
default_input_values = [ 0, 0.0, 1, -1.0 ]
|
|
operator = 2
|
|
|
|
[sub_resource type="VisualShaderNodeInput" id=10]
|
|
input_name = "screen_uv"
|
|
|
|
[sub_resource type="VisualShaderNodeTexture" id=11]
|
|
texture = ExtResource( 9 )
|
|
texture_type = 1
|
|
|
|
[sub_resource type="VisualShaderNodeVectorCompose" id=12]
|
|
default_input_values = [ 0, 0.0, 1, 0.0, 2, 1.0 ]
|
|
|
|
[sub_resource type="VisualShaderNodeFloatConstant" id=13]
|
|
constant = 0.4
|
|
|
|
[sub_resource type="VisualShaderNodeVectorDecompose" id=14]
|
|
|
|
[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 : source_color;
|
|
|
|
|
|
|
|
void vertex() {
|
|
// Output:0
|
|
|
|
}
|
|
|
|
void fragment() {
|
|
// Input:3
|
|
vec3 n_out3p0 = vec3(SCREEN_UV, 0.0);
|
|
|
|
// Scalar:6
|
|
float n_out6p0 = 0.400000;
|
|
|
|
// VectorOp:11
|
|
vec3 n_out11p0 = n_out3p0 / vec3(n_out6p0);
|
|
|
|
// VectorDecompose:7
|
|
float n_out7p0 = n_out11p0.x;
|
|
float n_out7p1 = n_out11p0.y;
|
|
float n_out7p2 = n_out11p0.z;
|
|
|
|
// ScalarOp:8
|
|
float n_in8p1 = 1.60000;
|
|
float n_out8p0 = n_out7p1 / n_in8p1;
|
|
|
|
// VectorCompose:5
|
|
float n_in5p2 = 1.00000;
|
|
vec3 n_out5p0 = vec3(n_out7p0, n_out8p0, n_in5p2);
|
|
|
|
// Texture:4
|
|
vec4 tex_frg_4_read = texture(tex_frg_4, n_out5p0.xy);
|
|
vec3 n_out4p0 = tex_frg_4_read.rgb;
|
|
float n_out4p1 = tex_frg_4_read.a;
|
|
|
|
// ScalarOp:22
|
|
float n_in22p1 = 0.20000;
|
|
float n_out22p0 = dot(n_out4p0, vec3(0.333333, 0.333333, 0.333333)) * n_in22p1;
|
|
|
|
// Color:18
|
|
vec3 n_out18p0 = vec3(0.200000, 0.155000, 0.110000);
|
|
float n_out18p1 = 1.000000;
|
|
|
|
// ColorOp:19
|
|
vec3 n_out19p0 = vec3(1.0) - (vec3(1.0) - n_out18p0) * (vec3(1.0) - n_out4p0);
|
|
|
|
// Input:14
|
|
vec3 n_out14p0 = vec3(SCREEN_UV, 0.0);
|
|
|
|
// VectorDecompose:15
|
|
float n_out15p0 = n_out14p0.x;
|
|
float n_out15p1 = n_out14p0.y;
|
|
float n_out15p2 = n_out14p0.z;
|
|
|
|
// VectorScalarMix:17
|
|
vec3 n_out17p0 = mix(n_out4p0, n_out19p0, n_out15p1);
|
|
|
|
// VectorScalarMix:20
|
|
vec3 n_out20p0 = mix(vec3(n_out22p0), n_out17p0, n_out15p1);
|
|
|
|
// Output:0
|
|
COLOR.rgb = n_out20p0;
|
|
|
|
}
|
|
|
|
void light() {
|
|
// Output:0
|
|
|
|
}
|
|
"
|
|
graph_offset = Vector2( -1049.92, -110.97 )
|
|
mode = 1
|
|
flags/light_only = false
|
|
nodes/fragment/0/position = Vector2( 2300, 540 )
|
|
nodes/fragment/3/node = SubResource( 10 )
|
|
nodes/fragment/3/position = Vector2( -2320, 660 )
|
|
nodes/fragment/4/node = SubResource( 11 )
|
|
nodes/fragment/4/position = Vector2( 60, 160 )
|
|
nodes/fragment/5/node = SubResource( 12 )
|
|
nodes/fragment/5/position = Vector2( -580, 720 )
|
|
nodes/fragment/6/node = SubResource( 13 )
|
|
nodes/fragment/6/position = Vector2( -2300, 800 )
|
|
nodes/fragment/7/node = SubResource( 14 )
|
|
nodes/fragment/7/position = Vector2( -1480, 700 )
|
|
nodes/fragment/8/node = SubResource( 15 )
|
|
nodes/fragment/8/position = Vector2( -960, 820 )
|
|
nodes/fragment/11/node = SubResource( 1 )
|
|
nodes/fragment/11/position = Vector2( -1860, 700 )
|
|
nodes/fragment/14/node = SubResource( 2 )
|
|
nodes/fragment/14/position = Vector2( 140, 980 )
|
|
nodes/fragment/15/node = SubResource( 3 )
|
|
nodes/fragment/15/position = Vector2( 580, 960 )
|
|
nodes/fragment/17/node = SubResource( 4 )
|
|
nodes/fragment/17/position = Vector2( 1240, 560 )
|
|
nodes/fragment/18/node = SubResource( 5 )
|
|
nodes/fragment/18/position = Vector2( 520, 620 )
|
|
nodes/fragment/19/node = SubResource( 6 )
|
|
nodes/fragment/19/position = Vector2( 840, 580 )
|
|
nodes/fragment/20/node = SubResource( 7 )
|
|
nodes/fragment/20/position = Vector2( 1780, 660 )
|
|
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 = 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
|
|
offset_right = 236.0
|
|
theme_override_constants/separation = 0
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="PanelWood" type="Panel" parent="."]
|
|
material = SubResource( 17 )
|
|
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"]
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
size_flags_horizontal = 7
|
|
size_flags_vertical = 3
|
|
theme_override_fonts/font = ExtResource( 4 )
|
|
theme_override_font_sizes/font_size = 46
|
|
text = "Puzzles"
|
|
horizontal_alignment = 1
|
|
vertical_alignment = 1
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false,
|
|
"_editor_description_": ""
|
|
}
|
|
|
|
[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"]
|
|
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"]
|
|
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"]
|
|
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 = 2
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="ClickButton" type="AudioStreamPlayer" parent="."]
|