Main.tscn 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. [gd_scene load_steps=3 format=2]
  2. [ext_resource path="res://GestureArea.gd" type="Script" id=1]
  3. [ext_resource path="res://CubeScene.tscn" type="PackedScene" id=2]
  4. [node name="VBoxContainer" type="VBoxContainer"]
  5. anchor_right = 1.0
  6. anchor_bottom = 1.0
  7. size_flags_horizontal = 0
  8. size_flags_vertical = 0
  9. [node name="HBoxContainer" type="HBoxContainer" parent="."]
  10. margin_right = 1024.0
  11. margin_bottom = 298.0
  12. size_flags_horizontal = 3
  13. size_flags_vertical = 3
  14. [node name="ViewportContainer" type="ViewportContainer" parent="HBoxContainer"]
  15. margin_right = 510.0
  16. margin_bottom = 298.0
  17. size_flags_horizontal = 3
  18. size_flags_vertical = 3
  19. stretch = true
  20. script = ExtResource( 1 )
  21. target = NodePath("Viewport/Spatial/MeshInstance")
  22. one_finger_rot_y = false
  23. two_fingers_rot_z = false
  24. two_fingers_zoom = false
  25. [node name="Viewport" type="Viewport" parent="HBoxContainer/ViewportContainer"]
  26. size = Vector2( 510, 298 )
  27. own_world = true
  28. transparent_bg = true
  29. handle_input_locally = false
  30. hdr = false
  31. render_target_update_mode = 3
  32. [node name="Spatial" parent="HBoxContainer/ViewportContainer/Viewport" instance=ExtResource( 2 )]
  33. [node name="Camera" parent="HBoxContainer/ViewportContainer/Viewport/Spatial" index="2"]
  34. current = true
  35. [node name="Label" type="Label" parent="HBoxContainer/ViewportContainer"]
  36. margin_left = 7.0
  37. margin_top = 11.0
  38. margin_right = 157.0
  39. margin_bottom = 25.0
  40. text = "One-finger rot around X"
  41. [node name="ViewportContainer2" type="ViewportContainer" parent="HBoxContainer"]
  42. margin_left = 514.0
  43. margin_right = 1024.0
  44. margin_bottom = 298.0
  45. size_flags_horizontal = 3
  46. size_flags_vertical = 3
  47. stretch = true
  48. script = ExtResource( 1 )
  49. target = NodePath("Viewport/Spatial/MeshInstance")
  50. two_fingers_rot_z = false
  51. two_fingers_zoom = false
  52. [node name="Viewport" type="Viewport" parent="HBoxContainer/ViewportContainer2"]
  53. size = Vector2( 510, 298 )
  54. own_world = true
  55. transparent_bg = true
  56. handle_input_locally = false
  57. hdr = false
  58. render_target_update_mode = 3
  59. [node name="Spatial" parent="HBoxContainer/ViewportContainer2/Viewport" instance=ExtResource( 2 )]
  60. [node name="Camera" parent="HBoxContainer/ViewportContainer2/Viewport/Spatial" index="2"]
  61. current = true
  62. [node name="Label2" type="Label" parent="HBoxContainer/ViewportContainer2"]
  63. margin_left = 8.0
  64. margin_top = 11.0
  65. margin_right = 196.0
  66. margin_bottom = 25.0
  67. text = "One-finger rot around X and Y"
  68. [node name="HBoxContainer2" type="HBoxContainer" parent="."]
  69. margin_top = 302.0
  70. margin_right = 1024.0
  71. margin_bottom = 600.0
  72. size_flags_horizontal = 3
  73. size_flags_vertical = 3
  74. [node name="ViewportContainer" type="ViewportContainer" parent="HBoxContainer2"]
  75. margin_right = 510.0
  76. margin_bottom = 298.0
  77. size_flags_horizontal = 3
  78. size_flags_vertical = 3
  79. stretch = true
  80. script = ExtResource( 1 )
  81. target = NodePath("Viewport/Spatial/MeshInstance")
  82. two_fingers_zoom = false
  83. [node name="Viewport" type="Viewport" parent="HBoxContainer2/ViewportContainer"]
  84. size = Vector2( 510, 298 )
  85. own_world = true
  86. transparent_bg = true
  87. handle_input_locally = false
  88. hdr = false
  89. render_target_update_mode = 3
  90. [node name="Spatial" parent="HBoxContainer2/ViewportContainer/Viewport" instance=ExtResource( 2 )]
  91. [node name="Camera" parent="HBoxContainer2/ViewportContainer/Viewport/Spatial" index="2"]
  92. current = true
  93. [node name="Label3" type="Label" parent="HBoxContainer2/ViewportContainer"]
  94. margin_left = 8.0
  95. margin_top = 9.0
  96. margin_right = 236.0
  97. margin_bottom = 23.0
  98. text = "One-finger X/Y rot + two-finger Z rot"
  99. [node name="ViewportContainer2" type="ViewportContainer" parent="HBoxContainer2"]
  100. margin_left = 514.0
  101. margin_right = 1024.0
  102. margin_bottom = 298.0
  103. size_flags_horizontal = 3
  104. size_flags_vertical = 3
  105. stretch = true
  106. script = ExtResource( 1 )
  107. target = NodePath("Viewport/Spatial/MeshInstance")
  108. [node name="Viewport" type="Viewport" parent="HBoxContainer2/ViewportContainer2"]
  109. size = Vector2( 510, 298 )
  110. own_world = true
  111. transparent_bg = true
  112. handle_input_locally = false
  113. hdr = false
  114. render_target_update_mode = 3
  115. [node name="Spatial" parent="HBoxContainer2/ViewportContainer2/Viewport" instance=ExtResource( 2 )]
  116. [node name="Camera" parent="HBoxContainer2/ViewportContainer2/Viewport/Spatial" index="2"]
  117. current = true
  118. [node name="Label2" type="Label" parent="HBoxContainer2/ViewportContainer2"]
  119. margin_left = 12.0
  120. margin_top = 9.0
  121. margin_right = 279.0
  122. margin_bottom = 23.0
  123. text = "One-finger X/Y, two-finger Z + pinch"
  124. [editable path="HBoxContainer/ViewportContainer/Viewport/Spatial"]
  125. [editable path="HBoxContainer/ViewportContainer2/Viewport/Spatial"]
  126. [editable path="HBoxContainer2/ViewportContainer/Viewport/Spatial"]
  127. [editable path="HBoxContainer2/ViewportContainer2/Viewport/Spatial"]