mirror of
https://github.com/godotengine/godot-demo-projects.git
synced 2026-01-06 16:00:08 +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).
155 lines
6.1 KiB
Plaintext
155 lines
6.1 KiB
Plaintext
[gd_scene load_steps=4 format=3 uid="uid://ds1y65r8ld026"]
|
|
|
|
[ext_resource type="Script" path="res://os_test.gd" id="1"]
|
|
[ext_resource type="Script" path="res://actions.gd" id="4"]
|
|
|
|
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_dl4cr"]
|
|
|
|
[node name="OSTest" type="Panel"]
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
script = ExtResource("1")
|
|
|
|
[node name="HBoxContainer" type="HBoxContainer" parent="."]
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
offset_left = 20.0
|
|
offset_top = 20.0
|
|
offset_right = -20.0
|
|
offset_bottom = -20.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
theme_override_constants/separation = 10
|
|
|
|
[node name="Features" type="RichTextLabel" parent="HBoxContainer"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
size_flags_vertical = 3
|
|
focus_mode = 2
|
|
theme_override_styles/focus = SubResource("StyleBoxEmpty_dl4cr")
|
|
bbcode_enabled = true
|
|
|
|
[node name="Actions" type="VBoxContainer" parent="HBoxContainer"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
size_flags_vertical = 3
|
|
script = ExtResource("4")
|
|
|
|
[node name="Label" type="Label" parent="HBoxContainer/Actions"]
|
|
layout_mode = 2
|
|
theme_override_font_sizes/font_size = 24
|
|
text = "Actions"
|
|
horizontal_alignment = 1
|
|
|
|
[node name="GridContainer" type="GridContainer" parent="HBoxContainer/Actions"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
size_flags_vertical = 3
|
|
columns = 2
|
|
|
|
[node name="OpenShellWeb" type="Button" parent="HBoxContainer/Actions/GridContainer"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
size_flags_vertical = 3
|
|
text = "Open Shell (web)"
|
|
|
|
[node name="OpenShellFolder" type="Button" parent="HBoxContainer/Actions/GridContainer"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
size_flags_vertical = 3
|
|
text = "Open Shell (folder)"
|
|
|
|
[node name="ChangeWindowTitle" type="Button" parent="HBoxContainer/Actions/GridContainer"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
size_flags_vertical = 3
|
|
text = "Change Window Title"
|
|
|
|
[node name="ChangeWindowIcon" type="Button" parent="HBoxContainer/Actions/GridContainer"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
size_flags_vertical = 3
|
|
text = "Change Window Icon"
|
|
|
|
[node name="MoveWindowToForeground" type="Button" parent="HBoxContainer/Actions/GridContainer"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
size_flags_vertical = 3
|
|
text = "Move Window to Foreground"
|
|
|
|
[node name="RequestAttention" type="Button" parent="HBoxContainer/Actions/GridContainer"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
size_flags_vertical = 3
|
|
text = "Request Attention"
|
|
|
|
[node name="VibrateDeviceShort" type="Button" parent="HBoxContainer/Actions/GridContainer"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
size_flags_vertical = 3
|
|
text = "Vibrate Device (200 ms)"
|
|
|
|
[node name="VibrateDeviceLong" type="Button" parent="HBoxContainer/Actions/GridContainer"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
size_flags_vertical = 3
|
|
text = "Vibrate Device (1000 ms)"
|
|
|
|
[node name="AddGlobalMenuItems" type="Button" parent="HBoxContainer/Actions/GridContainer"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
size_flags_vertical = 3
|
|
text = "Add Global Menu Items"
|
|
|
|
[node name="RemoveGlobalMenuItem" type="Button" parent="HBoxContainer/Actions/GridContainer"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
size_flags_vertical = 3
|
|
text = "Remove Global Menu Item"
|
|
|
|
[node name="GetClipboard" type="Button" parent="HBoxContainer/Actions/GridContainer"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
size_flags_vertical = 3
|
|
text = "Get Clipboard Contents"
|
|
|
|
[node name="SetClipboard" type="Button" parent="HBoxContainer/Actions/GridContainer"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
size_flags_vertical = 3
|
|
text = "Set Clipboard Contents"
|
|
|
|
[node name="DisplayAlert" type="Button" parent="HBoxContainer/Actions/GridContainer"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
size_flags_vertical = 3
|
|
text = "Display Alert"
|
|
|
|
[node name="KillCurrentProcess" type="Button" parent="HBoxContainer/Actions/GridContainer"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
size_flags_vertical = 3
|
|
text = "Kill Current Process"
|
|
|
|
[node name="CSharpTest" type="Node" parent="."]
|
|
|
|
[connection signal="pressed" from="HBoxContainer/Actions/GridContainer/OpenShellWeb" to="HBoxContainer/Actions" method="_on_open_shell_web_pressed"]
|
|
[connection signal="pressed" from="HBoxContainer/Actions/GridContainer/OpenShellFolder" to="HBoxContainer/Actions" method="_on_open_shell_folder_pressed"]
|
|
[connection signal="pressed" from="HBoxContainer/Actions/GridContainer/ChangeWindowTitle" to="HBoxContainer/Actions" method="_on_change_window_title_pressed"]
|
|
[connection signal="pressed" from="HBoxContainer/Actions/GridContainer/ChangeWindowIcon" to="HBoxContainer/Actions" method="_on_change_window_icon_pressed"]
|
|
[connection signal="pressed" from="HBoxContainer/Actions/GridContainer/MoveWindowToForeground" to="HBoxContainer/Actions" method="_on_move_window_to_foreground_pressed"]
|
|
[connection signal="pressed" from="HBoxContainer/Actions/GridContainer/RequestAttention" to="HBoxContainer/Actions" method="_on_request_attention_pressed"]
|
|
[connection signal="pressed" from="HBoxContainer/Actions/GridContainer/VibrateDeviceShort" to="HBoxContainer/Actions" method="_on_vibrate_device_short_pressed"]
|
|
[connection signal="pressed" from="HBoxContainer/Actions/GridContainer/VibrateDeviceLong" to="HBoxContainer/Actions" method="_on_vibrate_device_long_pressed"]
|
|
[connection signal="pressed" from="HBoxContainer/Actions/GridContainer/AddGlobalMenuItems" to="HBoxContainer/Actions" method="_on_add_global_menu_items_pressed"]
|
|
[connection signal="pressed" from="HBoxContainer/Actions/GridContainer/RemoveGlobalMenuItem" to="HBoxContainer/Actions" method="_on_remove_global_menu_item_pressed"]
|
|
[connection signal="pressed" from="HBoxContainer/Actions/GridContainer/GetClipboard" to="HBoxContainer/Actions" method="_on_get_clipboard_pressed"]
|
|
[connection signal="pressed" from="HBoxContainer/Actions/GridContainer/SetClipboard" to="HBoxContainer/Actions" method="_on_set_clipboard_pressed"]
|
|
[connection signal="pressed" from="HBoxContainer/Actions/GridContainer/DisplayAlert" to="HBoxContainer/Actions" method="_on_display_alert_pressed"]
|
|
[connection signal="pressed" from="HBoxContainer/Actions/GridContainer/KillCurrentProcess" to="HBoxContainer/Actions" method="_on_kill_current_process_pressed"]
|