mirror of
https://github.com/godotengine/godot-demo-projects.git
synced 2026-01-06 07:50:22 +01:00
- Move all demo projects that don't require Forward+/Mobile-only features to the Compatibility rendering method. This improves performance significantly on low-end devices and ensures visuals are identical to a web export of the demo. - Set deadzone on all inputs to 0.2 for better gamepad usability. - Remove reliance on `default_env.tres` to use built-in Environment resources in the main scene instead (which follows the preview environment workflow). - Remove notices pointing to GDNative or VisualScript, since both were removed in 4.0. - Various bug fixes and usability tweaks to 10+ demos.
37 lines
933 B
Plaintext
37 lines
933 B
Plaintext
[gd_scene load_steps=2 format=3 uid="uid://dnveeke63vq8x"]
|
|
|
|
[ext_resource type="Script" path="res://scene_a.gd" id="1"]
|
|
|
|
[node name="SceneA" type="Panel"]
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
size_flags_horizontal = 2
|
|
size_flags_vertical = 2
|
|
script = ExtResource("1")
|
|
|
|
[node name="Label" type="Label" parent="."]
|
|
layout_mode = 0
|
|
offset_left = 64.0
|
|
offset_top = 48.0
|
|
offset_right = 104.0
|
|
offset_bottom = 62.0
|
|
size_flags_vertical = 0
|
|
text = "This is scene A."
|
|
|
|
[node name="GoToScene" type="Button" parent="."]
|
|
layout_mode = 0
|
|
offset_left = 64.0
|
|
offset_top = 128.0
|
|
offset_right = 277.0
|
|
offset_bottom = 182.0
|
|
size_flags_horizontal = 2
|
|
size_flags_vertical = 2
|
|
theme_override_colors/font_color = Color(0.639216, 1, 0.639216, 1)
|
|
theme_override_font_sizes/font_size = 24
|
|
text = "Go to Scene B"
|
|
|
|
[connection signal="pressed" from="GoToScene" to="." method="_on_goto_scene_pressed"]
|