os_test.tscn 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. [gd_scene load_steps=4 format=3 uid="uid://ds1y65r8ld026"]
  2. [ext_resource type="Script" path="res://os_test.gd" id="1"]
  3. [ext_resource type="Script" path="res://actions.gd" id="4"]
  4. [sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_dl4cr"]
  5. [node name="OSTest" type="Panel"]
  6. anchors_preset = 15
  7. anchor_right = 1.0
  8. anchor_bottom = 1.0
  9. grow_horizontal = 2
  10. grow_vertical = 2
  11. script = ExtResource("1")
  12. [node name="HBoxContainer" type="HBoxContainer" parent="."]
  13. layout_mode = 1
  14. anchors_preset = 15
  15. anchor_right = 1.0
  16. anchor_bottom = 1.0
  17. offset_left = 20.0
  18. offset_top = 20.0
  19. offset_right = -20.0
  20. offset_bottom = -20.0
  21. grow_horizontal = 2
  22. grow_vertical = 2
  23. theme_override_constants/separation = 10
  24. [node name="Features" type="RichTextLabel" parent="HBoxContainer"]
  25. layout_mode = 2
  26. size_flags_horizontal = 3
  27. size_flags_vertical = 3
  28. focus_mode = 2
  29. theme_override_constants/line_separation = 6
  30. theme_override_styles/focus = SubResource("StyleBoxEmpty_dl4cr")
  31. bbcode_enabled = true
  32. [node name="Actions" type="VBoxContainer" parent="HBoxContainer"]
  33. layout_mode = 2
  34. size_flags_horizontal = 3
  35. size_flags_vertical = 3
  36. script = ExtResource("4")
  37. [node name="Label" type="Label" parent="HBoxContainer/Actions"]
  38. layout_mode = 2
  39. theme_override_font_sizes/font_size = 24
  40. text = "Actions"
  41. horizontal_alignment = 1
  42. [node name="GridContainer" type="GridContainer" parent="HBoxContainer/Actions"]
  43. layout_mode = 2
  44. size_flags_horizontal = 3
  45. size_flags_vertical = 3
  46. columns = 2
  47. [node name="OpenShellWeb" type="Button" parent="HBoxContainer/Actions/GridContainer"]
  48. layout_mode = 2
  49. size_flags_horizontal = 3
  50. size_flags_vertical = 3
  51. text = "Open Shell (web)"
  52. [node name="OpenShellFolder" type="Button" parent="HBoxContainer/Actions/GridContainer"]
  53. layout_mode = 2
  54. size_flags_horizontal = 3
  55. size_flags_vertical = 3
  56. text = "Open Shell (folder)"
  57. [node name="ChangeWindowTitle" type="Button" parent="HBoxContainer/Actions/GridContainer"]
  58. layout_mode = 2
  59. size_flags_horizontal = 3
  60. size_flags_vertical = 3
  61. text = "Change Window Title"
  62. [node name="ChangeWindowIcon" type="Button" parent="HBoxContainer/Actions/GridContainer"]
  63. layout_mode = 2
  64. size_flags_horizontal = 3
  65. size_flags_vertical = 3
  66. text = "Change Window Icon"
  67. [node name="MoveWindowToForeground" type="Button" parent="HBoxContainer/Actions/GridContainer"]
  68. layout_mode = 2
  69. size_flags_horizontal = 3
  70. size_flags_vertical = 3
  71. text = "Move Window to Foreground"
  72. [node name="RequestAttention" type="Button" parent="HBoxContainer/Actions/GridContainer"]
  73. layout_mode = 2
  74. size_flags_horizontal = 3
  75. size_flags_vertical = 3
  76. text = "Request Attention"
  77. [node name="VibrateDeviceShort" type="Button" parent="HBoxContainer/Actions/GridContainer"]
  78. layout_mode = 2
  79. size_flags_horizontal = 3
  80. size_flags_vertical = 3
  81. text = "Vibrate Device (200 ms)"
  82. [node name="VibrateDeviceLong" type="Button" parent="HBoxContainer/Actions/GridContainer"]
  83. layout_mode = 2
  84. size_flags_horizontal = 3
  85. size_flags_vertical = 3
  86. text = "Vibrate Device (1000 ms)"
  87. [node name="AddGlobalMenuItems" type="Button" parent="HBoxContainer/Actions/GridContainer"]
  88. layout_mode = 2
  89. size_flags_horizontal = 3
  90. size_flags_vertical = 3
  91. text = "Add Global Menu Items"
  92. [node name="RemoveGlobalMenuItem" type="Button" parent="HBoxContainer/Actions/GridContainer"]
  93. layout_mode = 2
  94. size_flags_horizontal = 3
  95. size_flags_vertical = 3
  96. text = "Remove Global Menu Item"
  97. [node name="GetClipboard" type="Button" parent="HBoxContainer/Actions/GridContainer"]
  98. layout_mode = 2
  99. size_flags_horizontal = 3
  100. size_flags_vertical = 3
  101. text = "Get Clipboard Contents"
  102. [node name="SetClipboard" type="Button" parent="HBoxContainer/Actions/GridContainer"]
  103. layout_mode = 2
  104. size_flags_horizontal = 3
  105. size_flags_vertical = 3
  106. text = "Set Clipboard Contents"
  107. [node name="DisplayAlert" type="Button" parent="HBoxContainer/Actions/GridContainer"]
  108. layout_mode = 2
  109. size_flags_horizontal = 3
  110. size_flags_vertical = 3
  111. text = "Display Alert"
  112. [node name="KillCurrentProcess" type="Button" parent="HBoxContainer/Actions/GridContainer"]
  113. layout_mode = 2
  114. size_flags_horizontal = 3
  115. size_flags_vertical = 3
  116. text = "Kill Current Process"
  117. [node name="CSharpTest" type="Node" parent="."]
  118. [connection signal="pressed" from="HBoxContainer/Actions/GridContainer/OpenShellWeb" to="HBoxContainer/Actions" method="_on_open_shell_web_pressed"]
  119. [connection signal="pressed" from="HBoxContainer/Actions/GridContainer/OpenShellFolder" to="HBoxContainer/Actions" method="_on_open_shell_folder_pressed"]
  120. [connection signal="pressed" from="HBoxContainer/Actions/GridContainer/ChangeWindowTitle" to="HBoxContainer/Actions" method="_on_change_window_title_pressed"]
  121. [connection signal="pressed" from="HBoxContainer/Actions/GridContainer/ChangeWindowIcon" to="HBoxContainer/Actions" method="_on_change_window_icon_pressed"]
  122. [connection signal="pressed" from="HBoxContainer/Actions/GridContainer/MoveWindowToForeground" to="HBoxContainer/Actions" method="_on_move_window_to_foreground_pressed"]
  123. [connection signal="pressed" from="HBoxContainer/Actions/GridContainer/RequestAttention" to="HBoxContainer/Actions" method="_on_request_attention_pressed"]
  124. [connection signal="pressed" from="HBoxContainer/Actions/GridContainer/VibrateDeviceShort" to="HBoxContainer/Actions" method="_on_vibrate_device_short_pressed"]
  125. [connection signal="pressed" from="HBoxContainer/Actions/GridContainer/VibrateDeviceLong" to="HBoxContainer/Actions" method="_on_vibrate_device_long_pressed"]
  126. [connection signal="pressed" from="HBoxContainer/Actions/GridContainer/AddGlobalMenuItems" to="HBoxContainer/Actions" method="_on_add_global_menu_items_pressed"]
  127. [connection signal="pressed" from="HBoxContainer/Actions/GridContainer/RemoveGlobalMenuItem" to="HBoxContainer/Actions" method="_on_remove_global_menu_item_pressed"]
  128. [connection signal="pressed" from="HBoxContainer/Actions/GridContainer/GetClipboard" to="HBoxContainer/Actions" method="_on_get_clipboard_pressed"]
  129. [connection signal="pressed" from="HBoxContainer/Actions/GridContainer/SetClipboard" to="HBoxContainer/Actions" method="_on_set_clipboard_pressed"]
  130. [connection signal="pressed" from="HBoxContainer/Actions/GridContainer/DisplayAlert" to="HBoxContainer/Actions" method="_on_display_alert_pressed"]
  131. [connection signal="pressed" from="HBoxContainer/Actions/GridContainer/KillCurrentProcess" to="HBoxContainer/Actions" method="_on_kill_current_process_pressed"]