Control.tscn 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232
  1. [gd_scene load_steps=9 format=2]
  2. [ext_resource path="res://31plan2202 [QIPRotw1_6c].ogv" type="VideoStream" id=1]
  3. [ext_resource path="res://Camera.gd" type="Script" id=2]
  4. [ext_resource path="res://VideoPlayer.gd" type="Script" id=3]
  5. [sub_resource type="ViewportTexture" id=1]
  6. viewport_path = NodePath("Viewport")
  7. [sub_resource type="SpatialMaterial" id=2]
  8. resource_local_to_scene = true
  9. flags_unshaded = true
  10. params_cull_mode = 1
  11. albedo_texture = SubResource( 1 )
  12. [sub_resource type="SphereMesh" id=3]
  13. [sub_resource type="Animation" id=4]
  14. resource_name = "autostuff"
  15. length = 46.0
  16. loop = true
  17. step = 1.0
  18. tracks/0/type = "value"
  19. tracks/0/path = NodePath("Button2:visible")
  20. tracks/0/interp = 1
  21. tracks/0/loop_wrap = true
  22. tracks/0/imported = false
  23. tracks/0/enabled = true
  24. tracks/0/keys = {
  25. "times": PoolRealArray( 0, 40, 46 ),
  26. "transitions": PoolRealArray( 1, 1, 1 ),
  27. "update": 1,
  28. "values": [ false, true, false ]
  29. }
  30. tracks/1/type = "value"
  31. tracks/1/path = NodePath("Button:visible")
  32. tracks/1/interp = 1
  33. tracks/1/loop_wrap = true
  34. tracks/1/imported = false
  35. tracks/1/enabled = true
  36. tracks/1/keys = {
  37. "times": PoolRealArray( 0, 40, 46 ),
  38. "transitions": PoolRealArray( 1, 1, 1 ),
  39. "update": 1,
  40. "values": [ false, true, false ]
  41. }
  42. tracks/2/type = "method"
  43. tracks/2/path = NodePath("Viewport/VideoPlayer")
  44. tracks/2/interp = 1
  45. tracks/2/loop_wrap = true
  46. tracks/2/imported = false
  47. tracks/2/enabled = false
  48. tracks/2/keys = {
  49. "times": PoolRealArray( 46 ),
  50. "transitions": PoolRealArray( 1 ),
  51. "values": [ {
  52. "args": [ ],
  53. "method": "stop"
  54. } ]
  55. }
  56. tracks/3/type = "method"
  57. tracks/3/path = NodePath("Spatial/Camera")
  58. tracks/3/interp = 1
  59. tracks/3/loop_wrap = true
  60. tracks/3/imported = false
  61. tracks/3/enabled = true
  62. tracks/3/keys = {
  63. "times": PoolRealArray( 40, 46 ),
  64. "transitions": PoolRealArray( 1, 1 ),
  65. "values": [ {
  66. "args": [ ],
  67. "method": "_leave_tree"
  68. }, {
  69. "args": [ ],
  70. "method": "_enter_tree"
  71. } ]
  72. }
  73. tracks/4/type = "method"
  74. tracks/4/path = NodePath("AnimationPlayer")
  75. tracks/4/interp = 1
  76. tracks/4/loop_wrap = true
  77. tracks/4/imported = false
  78. tracks/4/enabled = true
  79. tracks/4/keys = {
  80. "times": PoolRealArray( 46 ),
  81. "transitions": PoolRealArray( 1 ),
  82. "values": [ {
  83. "args": [ "autostuff2", -1, 1.0, false ],
  84. "method": "play"
  85. } ]
  86. }
  87. [sub_resource type="Animation" id=5]
  88. resource_name = "autostuff2"
  89. length = 46.0
  90. loop = true
  91. step = 1.0
  92. tracks/0/type = "value"
  93. tracks/0/path = NodePath("Button2:visible")
  94. tracks/0/interp = 1
  95. tracks/0/loop_wrap = true
  96. tracks/0/imported = false
  97. tracks/0/enabled = true
  98. tracks/0/keys = {
  99. "times": PoolRealArray( 0, 10, 16 ),
  100. "transitions": PoolRealArray( 1, 1, 1 ),
  101. "update": 1,
  102. "values": [ false, true, false ]
  103. }
  104. tracks/1/type = "value"
  105. tracks/1/path = NodePath("Button:visible")
  106. tracks/1/interp = 1
  107. tracks/1/loop_wrap = true
  108. tracks/1/imported = false
  109. tracks/1/enabled = true
  110. tracks/1/keys = {
  111. "times": PoolRealArray( 0, 10, 16 ),
  112. "transitions": PoolRealArray( 1, 1, 1 ),
  113. "update": 1,
  114. "values": [ false, true, false ]
  115. }
  116. tracks/2/type = "method"
  117. tracks/2/path = NodePath("Viewport/VideoPlayer")
  118. tracks/2/interp = 1
  119. tracks/2/loop_wrap = true
  120. tracks/2/imported = false
  121. tracks/2/enabled = false
  122. tracks/2/keys = {
  123. "times": PoolRealArray( 16 ),
  124. "transitions": PoolRealArray( 1 ),
  125. "values": [ {
  126. "args": [ ],
  127. "method": "stop"
  128. } ]
  129. }
  130. tracks/3/type = "method"
  131. tracks/3/path = NodePath("Spatial/Camera")
  132. tracks/3/interp = 1
  133. tracks/3/loop_wrap = true
  134. tracks/3/imported = false
  135. tracks/3/enabled = true
  136. tracks/3/keys = {
  137. "times": PoolRealArray( 10, 16 ),
  138. "transitions": PoolRealArray( 1, 1 ),
  139. "values": [ {
  140. "args": [ ],
  141. "method": "_leave_tree"
  142. }, {
  143. "args": [ ],
  144. "method": "_enter_tree"
  145. } ]
  146. }
  147. tracks/4/type = "method"
  148. tracks/4/path = NodePath("AnimationPlayer")
  149. tracks/4/interp = 1
  150. tracks/4/loop_wrap = true
  151. tracks/4/imported = false
  152. tracks/4/enabled = true
  153. tracks/4/keys = {
  154. "times": PoolRealArray( 16 ),
  155. "transitions": PoolRealArray( 1 ),
  156. "values": [ {
  157. "args": [ "autostuff2", -1, 1.0, false ],
  158. "method": "play"
  159. } ]
  160. }
  161. [node name="Control" type="Control"]
  162. anchor_right = 1.0
  163. anchor_bottom = 1.0
  164. __meta__ = {
  165. "_edit_use_anchors_": false
  166. }
  167. [node name="Viewport" type="Viewport" parent="."]
  168. size = Vector2( 3840, 1920 )
  169. own_world = true
  170. render_target_v_flip = true
  171. [node name="VideoPlayer" type="VideoPlayer" parent="Viewport"]
  172. anchor_right = 1.0
  173. anchor_bottom = 1.0
  174. stream = ExtResource( 1 )
  175. autoplay = true
  176. buffering_msec = 1000
  177. script = ExtResource( 3 )
  178. __meta__ = {
  179. "_edit_use_anchors_": false
  180. }
  181. [node name="MeshInstance" type="MeshInstance" parent="."]
  182. transform = Transform( -10, 0, 0, 0, 10, 0, 0, 0, 10, 0, 0, 0 )
  183. material_override = SubResource( 2 )
  184. mesh = SubResource( 3 )
  185. material/0 = null
  186. [node name="Spatial" type="Spatial" parent="."]
  187. [node name="Camera" type="Camera" parent="Spatial"]
  188. fov = 80.0
  189. far = 75.0
  190. script = ExtResource( 2 )
  191. [node name="Button" type="Button" parent="."]
  192. visible = false
  193. margin_left = 494.642
  194. margin_top = 258.069
  195. margin_right = 608.642
  196. margin_bottom = 311.069
  197. text = "b1"
  198. __meta__ = {
  199. "_edit_use_anchors_": false
  200. }
  201. [node name="Button2" type="Button" parent="."]
  202. visible = false
  203. margin_left = 361.0
  204. margin_top = 260.0
  205. margin_right = 472.0
  206. margin_bottom = 313.0
  207. text = "b2"
  208. __meta__ = {
  209. "_edit_use_anchors_": false
  210. }
  211. [node name="AnimationPlayer" type="AnimationPlayer" parent="."]
  212. autoplay = "autostuff"
  213. anims/autostuff = SubResource( 4 )
  214. anims/autostuff2 = SubResource( 5 )
  215. [connection signal="button_down" from="Button" to="Viewport/VideoPlayer" method="_on_Button_button_down"]
  216. [connection signal="button_down" from="Button" to="Button2" method="hide"]
  217. [connection signal="button_down" from="Button" to="Button" method="hide"]