Main.tscn 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  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. msaa = 2
  31. hdr = false
  32. usage = 3
  33. render_target_update_mode = 3
  34. [node name="Spatial" parent="HBoxContainer/ViewportContainer/Viewport" instance=ExtResource( 2 )]
  35. [node name="Camera" parent="HBoxContainer/ViewportContainer/Viewport/Spatial" index="2"]
  36. current = true
  37. [node name="Label" type="Label" parent="HBoxContainer/ViewportContainer"]
  38. margin_left = 7.0
  39. margin_top = 11.0
  40. margin_right = 157.0
  41. margin_bottom = 25.0
  42. text = "One-finger rot around X"
  43. [node name="ViewportContainer2" type="ViewportContainer" parent="HBoxContainer"]
  44. margin_left = 514.0
  45. margin_right = 1024.0
  46. margin_bottom = 298.0
  47. size_flags_horizontal = 3
  48. size_flags_vertical = 3
  49. stretch = true
  50. script = ExtResource( 1 )
  51. target = NodePath("Viewport/Spatial/MeshInstance")
  52. two_fingers_rot_z = false
  53. two_fingers_zoom = false
  54. [node name="Viewport" type="Viewport" parent="HBoxContainer/ViewportContainer2"]
  55. size = Vector2( 510, 298 )
  56. own_world = true
  57. transparent_bg = true
  58. handle_input_locally = false
  59. msaa = 2
  60. hdr = false
  61. usage = 3
  62. render_target_update_mode = 3
  63. [node name="Spatial" parent="HBoxContainer/ViewportContainer2/Viewport" instance=ExtResource( 2 )]
  64. [node name="Camera" parent="HBoxContainer/ViewportContainer2/Viewport/Spatial" index="2"]
  65. current = true
  66. [node name="Label2" type="Label" parent="HBoxContainer/ViewportContainer2"]
  67. margin_left = 8.0
  68. margin_top = 11.0
  69. margin_right = 196.0
  70. margin_bottom = 25.0
  71. text = "One-finger rot around X and Y"
  72. [node name="HBoxContainer2" type="HBoxContainer" parent="."]
  73. margin_top = 302.0
  74. margin_right = 1024.0
  75. margin_bottom = 600.0
  76. size_flags_horizontal = 3
  77. size_flags_vertical = 3
  78. [node name="ViewportContainer" type="ViewportContainer" parent="HBoxContainer2"]
  79. margin_right = 510.0
  80. margin_bottom = 298.0
  81. size_flags_horizontal = 3
  82. size_flags_vertical = 3
  83. stretch = true
  84. script = ExtResource( 1 )
  85. target = NodePath("Viewport/Spatial/MeshInstance")
  86. two_fingers_zoom = false
  87. [node name="Viewport" type="Viewport" parent="HBoxContainer2/ViewportContainer"]
  88. size = Vector2( 510, 298 )
  89. own_world = true
  90. transparent_bg = true
  91. handle_input_locally = false
  92. msaa = 2
  93. hdr = false
  94. usage = 3
  95. render_target_update_mode = 3
  96. [node name="Spatial" parent="HBoxContainer2/ViewportContainer/Viewport" instance=ExtResource( 2 )]
  97. [node name="Camera" parent="HBoxContainer2/ViewportContainer/Viewport/Spatial" index="2"]
  98. current = true
  99. [node name="Label3" type="Label" parent="HBoxContainer2/ViewportContainer"]
  100. margin_left = 8.0
  101. margin_top = 9.0
  102. margin_right = 236.0
  103. margin_bottom = 23.0
  104. text = "One-finger X/Y rot + two-finger Z rot"
  105. [node name="ViewportContainer2" type="ViewportContainer" parent="HBoxContainer2"]
  106. margin_left = 514.0
  107. margin_right = 1024.0
  108. margin_bottom = 298.0
  109. size_flags_horizontal = 3
  110. size_flags_vertical = 3
  111. stretch = true
  112. script = ExtResource( 1 )
  113. target = NodePath("Viewport/Spatial/MeshInstance")
  114. [node name="Viewport" type="Viewport" parent="HBoxContainer2/ViewportContainer2"]
  115. size = Vector2( 510, 298 )
  116. own_world = true
  117. transparent_bg = true
  118. handle_input_locally = false
  119. msaa = 2
  120. hdr = false
  121. usage = 3
  122. render_target_update_mode = 3
  123. [node name="Spatial" parent="HBoxContainer2/ViewportContainer2/Viewport" instance=ExtResource( 2 )]
  124. [node name="Camera" parent="HBoxContainer2/ViewportContainer2/Viewport/Spatial" index="2"]
  125. current = true
  126. [node name="Label2" type="Label" parent="HBoxContainer2/ViewportContainer2"]
  127. margin_left = 12.0
  128. margin_top = 9.0
  129. margin_right = 279.0
  130. margin_bottom = 23.0
  131. text = "One-finger X/Y, two-finger Z + pinch"
  132. [editable path="HBoxContainer/ViewportContainer/Viewport/Spatial"]
  133. [editable path="HBoxContainer/ViewportContainer2/Viewport/Spatial"]
  134. [editable path="HBoxContainer2/ViewportContainer/Viewport/Spatial"]
  135. [editable path="HBoxContainer2/ViewportContainer2/Viewport/Spatial"]