spinpause.tscn 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. [gd_scene load_steps=4 format=2]
  2. [ext_resource path="res://pause_button.gd" type="Script" id=1]
  3. [sub_resource type="CubeMesh" id=1]
  4. [sub_resource type="Animation" id=2]
  5. length = 10.0
  6. loop = true
  7. tracks/0/type = "value"
  8. tracks/0/path = NodePath("Cube:rotation_degrees")
  9. tracks/0/interp = 1
  10. tracks/0/loop_wrap = true
  11. tracks/0/imported = false
  12. tracks/0/enabled = true
  13. tracks/0/keys = {
  14. "times": PoolRealArray( 0, 10 ),
  15. "transitions": PoolRealArray( 1, 1 ),
  16. "update": 0,
  17. "values": [ Vector3( 0, 0, 0 ), Vector3( 0, -360, 0 ) ]
  18. }
  19. [node name="PauseScene" type="Spatial"]
  20. [node name="Cube" type="MeshInstance" parent="."]
  21. mesh = SubResource( 1 )
  22. material/0 = null
  23. [node name="Camera" type="Camera" parent="."]
  24. transform = Transform( 0.571594, 0.275303, -0.772974, 0, 0.942035, 0.335515, 0.820537, -0.191779, 0.538461, -5.59754, 2.75935, 4.01344 )
  25. fov = 74.0
  26. near = 0.1
  27. [node name="AnimationPlayer" type="AnimationPlayer" parent="."]
  28. autoplay = "spin"
  29. anims/spin = SubResource( 2 )
  30. [node name="SpotLight" type="SpotLight" parent="."]
  31. transform = Transform( 0.792992, 0.251051, -0.555101, 0, 0.911149, 0.412078, 0.609232, -0.326775, 0.722534, -3.05357, 1.80053, 3.64099 )
  32. spot_range = 6.0
  33. [node name="PauseButton" type="Button" parent="."]
  34. pause_mode = 2
  35. anchor_left = 0.5
  36. anchor_top = 0.5
  37. anchor_right = 0.5
  38. anchor_bottom = 0.5
  39. margin_left = -125.0
  40. margin_top = 150.0
  41. margin_right = 125.0
  42. margin_bottom = 200.0
  43. rect_pivot_offset = Vector2( 123, 25 )
  44. toggle_mode = true
  45. text = "Pause"
  46. script = ExtResource( 1 )