os_test.tscn 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. [gd_scene load_steps=3 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. [node name="OSTest" type="Panel"]
  5. anchors_preset = 15
  6. anchor_right = 1.0
  7. anchor_bottom = 1.0
  8. grow_horizontal = 2
  9. grow_vertical = 2
  10. script = ExtResource("1")
  11. [node name="HBoxContainer" type="HBoxContainer" parent="."]
  12. layout_mode = 1
  13. anchors_preset = 15
  14. anchor_right = 1.0
  15. anchor_bottom = 1.0
  16. offset_left = 20.0
  17. offset_top = 20.0
  18. offset_right = -20.0
  19. offset_bottom = -20.0
  20. grow_horizontal = 2
  21. grow_vertical = 2
  22. theme_override_constants/separation = 10
  23. [node name="Features" type="RichTextLabel" parent="HBoxContainer"]
  24. layout_mode = 2
  25. size_flags_horizontal = 3
  26. size_flags_vertical = 3
  27. bbcode_enabled = true
  28. [node name="Actions" type="VBoxContainer" parent="HBoxContainer"]
  29. layout_mode = 2
  30. size_flags_horizontal = 3
  31. size_flags_vertical = 3
  32. script = ExtResource("4")
  33. [node name="Label" type="Label" parent="HBoxContainer/Actions"]
  34. layout_mode = 2
  35. theme_override_font_sizes/font_size = 24
  36. text = "Actions"
  37. horizontal_alignment = 1
  38. [node name="GridContainer" type="GridContainer" parent="HBoxContainer/Actions"]
  39. layout_mode = 2
  40. size_flags_horizontal = 3
  41. size_flags_vertical = 3
  42. columns = 2
  43. [node name="OpenShellWeb" type="Button" parent="HBoxContainer/Actions/GridContainer"]
  44. layout_mode = 2
  45. size_flags_horizontal = 3
  46. size_flags_vertical = 3
  47. text = "Open Shell (web)"
  48. [node name="OpenShellFolder" type="Button" parent="HBoxContainer/Actions/GridContainer"]
  49. layout_mode = 2
  50. size_flags_horizontal = 3
  51. size_flags_vertical = 3
  52. text = "Open Shell (folder)"
  53. [node name="ChangeWindowTitle" type="Button" parent="HBoxContainer/Actions/GridContainer"]
  54. layout_mode = 2
  55. size_flags_horizontal = 3
  56. size_flags_vertical = 3
  57. text = "Change Window Title"
  58. [node name="ChangeWindowIcon" type="Button" parent="HBoxContainer/Actions/GridContainer"]
  59. layout_mode = 2
  60. size_flags_horizontal = 3
  61. size_flags_vertical = 3
  62. text = "Change Window Icon"
  63. [node name="MoveWindowToForeground" type="Button" parent="HBoxContainer/Actions/GridContainer"]
  64. layout_mode = 2
  65. size_flags_horizontal = 3
  66. size_flags_vertical = 3
  67. text = "Move Window to Foreground"
  68. [node name="RequestAttention" type="Button" parent="HBoxContainer/Actions/GridContainer"]
  69. layout_mode = 2
  70. size_flags_horizontal = 3
  71. size_flags_vertical = 3
  72. text = "Request Attention"
  73. [node name="VibrateDeviceShort" type="Button" parent="HBoxContainer/Actions/GridContainer"]
  74. layout_mode = 2
  75. size_flags_horizontal = 3
  76. size_flags_vertical = 3
  77. text = "Vibrate Device (200 ms)"
  78. [node name="VibrateDeviceLong" type="Button" parent="HBoxContainer/Actions/GridContainer"]
  79. layout_mode = 2
  80. size_flags_horizontal = 3
  81. size_flags_vertical = 3
  82. text = "Vibrate Device (1000 ms)"
  83. [node name="AddGlobalMenuItems" type="Button" parent="HBoxContainer/Actions/GridContainer"]
  84. layout_mode = 2
  85. size_flags_horizontal = 3
  86. size_flags_vertical = 3
  87. text = "Add Global Menu Items"
  88. [node name="RemoveGlobalMenuItem" type="Button" parent="HBoxContainer/Actions/GridContainer"]
  89. layout_mode = 2
  90. size_flags_horizontal = 3
  91. size_flags_vertical = 3
  92. text = "Remove Global Menu Item"
  93. [node name="GetClipboard" type="Button" parent="HBoxContainer/Actions/GridContainer"]
  94. layout_mode = 2
  95. size_flags_horizontal = 3
  96. size_flags_vertical = 3
  97. text = "Get Clipboard Contents"
  98. [node name="SetClipboard" type="Button" parent="HBoxContainer/Actions/GridContainer"]
  99. layout_mode = 2
  100. size_flags_horizontal = 3
  101. size_flags_vertical = 3
  102. text = "Set Clipboard Contents"
  103. [node name="DisplayAlert" type="Button" parent="HBoxContainer/Actions/GridContainer"]
  104. layout_mode = 2
  105. size_flags_horizontal = 3
  106. size_flags_vertical = 3
  107. text = "Display Alert"
  108. [node name="KillCurrentProcess" type="Button" parent="HBoxContainer/Actions/GridContainer"]
  109. layout_mode = 2
  110. size_flags_horizontal = 3
  111. size_flags_vertical = 3
  112. text = "Kill Current Process"
  113. [node name="CSharpTest" type="Node" parent="."]
  114. [connection signal="pressed" from="HBoxContainer/Actions/GridContainer/OpenShellWeb" to="HBoxContainer/Actions" method="_on_OpenShellWeb_pressed"]
  115. [connection signal="pressed" from="HBoxContainer/Actions/GridContainer/OpenShellFolder" to="HBoxContainer/Actions" method="_on_OpenShellFolder_pressed"]
  116. [connection signal="pressed" from="HBoxContainer/Actions/GridContainer/ChangeWindowTitle" to="HBoxContainer/Actions" method="_on_ChangeWindowTitle_pressed"]
  117. [connection signal="pressed" from="HBoxContainer/Actions/GridContainer/ChangeWindowIcon" to="HBoxContainer/Actions" method="_on_ChangeWindowIcon_pressed"]
  118. [connection signal="pressed" from="HBoxContainer/Actions/GridContainer/MoveWindowToForeground" to="HBoxContainer/Actions" method="_on_MoveWindowToForeground_pressed"]
  119. [connection signal="pressed" from="HBoxContainer/Actions/GridContainer/RequestAttention" to="HBoxContainer/Actions" method="_on_RequestAttention_pressed"]
  120. [connection signal="pressed" from="HBoxContainer/Actions/GridContainer/VibrateDeviceShort" to="HBoxContainer/Actions" method="_on_VibrateDeviceShort_pressed"]
  121. [connection signal="pressed" from="HBoxContainer/Actions/GridContainer/VibrateDeviceLong" to="HBoxContainer/Actions" method="_on_VibrateDeviceLong_pressed"]
  122. [connection signal="pressed" from="HBoxContainer/Actions/GridContainer/AddGlobalMenuItems" to="HBoxContainer/Actions" method="_on_AddGlobalMenuItems_pressed"]
  123. [connection signal="pressed" from="HBoxContainer/Actions/GridContainer/RemoveGlobalMenuItem" to="HBoxContainer/Actions" method="_on_RemoveGlobalMenuItem_pressed"]
  124. [connection signal="pressed" from="HBoxContainer/Actions/GridContainer/GetClipboard" to="HBoxContainer/Actions" method="_on_GetClipboard_pressed"]
  125. [connection signal="pressed" from="HBoxContainer/Actions/GridContainer/SetClipboard" to="HBoxContainer/Actions" method="_on_SetClipboard_pressed"]
  126. [connection signal="pressed" from="HBoxContainer/Actions/GridContainer/DisplayAlert" to="HBoxContainer/Actions" method="_on_DisplayAlert_pressed"]
  127. [connection signal="pressed" from="HBoxContainer/Actions/GridContainer/KillCurrentProcess" to="HBoxContainer/Actions" method="_on_KillCurrentProcess_pressed"]