mirror of
https://github.com/godotengine/godot-demo-projects.git
synced 2026-01-04 15:00:09 +01:00
This leads to code that is easier to understand and runs faster thanks to GDScript's typed instructions. The untyped declaration warning is now enabled on all projects where type hints were added. All projects currently run without any untyped declration warnings. Dodge the Creeps and Squash the Creeps demos intentionally don't use type hints to match the documentation, where type hints haven't been adopted yet (given its beginner focus).
44 lines
1.2 KiB
Plaintext
44 lines
1.2 KiB
Plaintext
[gd_scene load_steps=2 format=3 uid="uid://dqxum77awcw6u"]
|
|
|
|
[ext_resource type="Script" path="res://script/game.gd" id="1"]
|
|
|
|
[node name="Game" type="Control"]
|
|
layout_mode = 3
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
size_flags_horizontal = 3
|
|
size_flags_vertical = 3
|
|
mouse_filter = 1
|
|
script = ExtResource("1")
|
|
|
|
[node name="HBoxContainer" type="HBoxContainer" parent="."]
|
|
layout_mode = 0
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
|
|
[node name="RichTextLabel" type="RichTextLabel" parent="HBoxContainer"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="HBoxContainer"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
|
|
[node name="Label" type="Label" parent="HBoxContainer/VBoxContainer"]
|
|
layout_mode = 2
|
|
text = "Players:"
|
|
|
|
[node name="ItemList" type="ItemList" parent="HBoxContainer/VBoxContainer"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
size_flags_vertical = 3
|
|
same_column_width = true
|
|
|
|
[node name="Action" type="Button" parent="HBoxContainer/VBoxContainer"]
|
|
layout_mode = 2
|
|
disabled = true
|
|
text = "Do Action!"
|
|
|
|
[connection signal="pressed" from="HBoxContainer/VBoxContainer/Action" to="." method="_on_Action_pressed"]
|