Root.tscn 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. [gd_scene load_steps=10 format=2]
  2. [ext_resource path="res://scene/World.tscn" type="PackedScene" id=1]
  3. [ext_resource path="res://asset/Font.tres" type="DynamicFont" id=2]
  4. [ext_resource path="res://scene/MusicPlayer.tscn" type="PackedScene" id=3]
  5. [ext_resource path="res://asset/LiberationSans-Regular.ttf" type="DynamicFontData" id=4]
  6. [ext_resource path="res://asset/logo.png" type="Texture" id=5]
  7. [ext_resource path="res://asset/black.png" type="Texture" id=6]
  8. [ext_resource path="res://asset/logo2.png" type="Texture" id=7]
  9. [sub_resource type="GDScript" id=2]
  10. script/source = "extends VSlider
  11. func _on_value_changed(value):
  12. AudioServer.set_bus_volume_db(0, -(100.0 - value) / 1.5)
  13. "
  14. [sub_resource type="DynamicFont" id=1]
  15. size = 12
  16. outline_size = 2
  17. outline_color = Color( 0.113725, 0.113725, 0.113725, 1 )
  18. font_data = ExtResource( 4 )
  19. [node name="Root" type="Control"]
  20. anchor_right = 1.0
  21. anchor_bottom = 1.0
  22. margin_left = 9.0
  23. margin_top = -2.0
  24. margin_right = 9.0
  25. margin_bottom = -2.0
  26. [node name="World" parent="." instance=ExtResource( 1 )]
  27. position = Vector2( -38, 17 )
  28. [node name="MusicPlayer" parent="." instance=ExtResource( 3 )]
  29. [node name="UI" type="CanvasLayer" parent="."]
  30. [node name="LightingTime" type="RichTextLabel" parent="UI"]
  31. visible = false
  32. anchor_left = 0.01
  33. anchor_right = 1.0
  34. margin_right = 2003.0
  35. margin_bottom = 1013.0
  36. rect_scale = Vector2( 0.02, 0.02 )
  37. custom_fonts/normal_font = ExtResource( 2 )
  38. bbcode_text = "9.99"
  39. text = "9.99"
  40. fit_content_height = true
  41. [node name="VSlider" type="VSlider" parent="UI"]
  42. margin_left = 283.0
  43. margin_top = 2.0
  44. margin_right = 299.0
  45. margin_bottom = 39.0
  46. value = 100.0
  47. script = SubResource( 2 )
  48. [node name="Logo" type="TextureRect" parent="UI"]
  49. visible = false
  50. margin_left = -17.0
  51. margin_right = 314.0
  52. margin_bottom = 200.0
  53. texture = ExtResource( 5 )
  54. [node name="Darkness" type="TextureRect" parent="UI"]
  55. visible = false
  56. margin_left = -17.0
  57. margin_right = 314.0
  58. margin_bottom = 200.0
  59. texture = ExtResource( 6 )
  60. [node name="Darkness2" type="TextureRect" parent="UI"]
  61. visible = false
  62. margin_left = -88.0
  63. margin_top = -43.0
  64. margin_right = 380.0
  65. margin_bottom = 240.0
  66. texture = ExtResource( 7 )
  67. [node name="Caption" type="RichTextLabel" parent="UI"]
  68. visible = false
  69. margin_top = 179.0
  70. margin_right = 300.0
  71. margin_bottom = 200.0
  72. grow_horizontal = 2
  73. grow_vertical = 2
  74. custom_fonts/normal_font = SubResource( 1 )
  75. bbcode_enabled = true
  76. bbcode_text = "[center]text[/center]"
  77. text = "text"
  78. fit_content_height = true
  79. [connection signal="value_changed" from="UI/VSlider" to="UI/VSlider" method="_on_value_changed"]