LoonyLips.tscn 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. [gd_scene load_steps=10 format=2]
  2. [ext_resource path="res://LoonyLips.gd" type="Script" id=1]
  3. [ext_resource path="res://gfx/blackboard.jpg" type="Texture" id=2]
  4. [ext_resource path="res://gfx/Feltpen.ttf" type="DynamicFontData" id=3]
  5. [ext_resource path="res://gfx/blue_button12.png" type="Texture" id=4]
  6. [ext_resource path="res://gfx/blue_button11.png" type="Texture" id=5]
  7. [ext_resource path="res://Story.gd" type="Script" id=6]
  8. [sub_resource type="DynamicFont" id=1]
  9. size = 40
  10. font_data = ExtResource( 3 )
  11. [sub_resource type="DynamicFont" id=2]
  12. size = 40
  13. font_data = ExtResource( 3 )
  14. [sub_resource type="DynamicFont" id=3]
  15. size = 40
  16. font_data = ExtResource( 3 )
  17. [node name="LoonyLips" type="Control"]
  18. anchor_right = 1.0
  19. anchor_bottom = 1.0
  20. script = ExtResource( 1 )
  21. __meta__ = {
  22. "_edit_use_anchors_": false
  23. }
  24. [node name="Bg" type="TextureRect" parent="."]
  25. anchor_right = 1.0
  26. anchor_bottom = 1.0
  27. texture = ExtResource( 2 )
  28. expand = true
  29. __meta__ = {
  30. "_edit_use_anchors_": false
  31. }
  32. [node name="VBoxContainer" type="VBoxContainer" parent="."]
  33. anchor_right = 1.0
  34. anchor_bottom = 1.0
  35. margin_left = 24.0
  36. margin_top = 24.0
  37. margin_right = -24.0
  38. margin_bottom = -24.0
  39. alignment = 2
  40. __meta__ = {
  41. "_edit_use_anchors_": false
  42. }
  43. [node name="DisplayText" type="Label" parent="VBoxContainer"]
  44. margin_right = 1232.0
  45. margin_bottom = 600.0
  46. rect_min_size = Vector2( 0, 600 )
  47. custom_fonts/font = SubResource( 1 )
  48. text = "Placeholder Text"
  49. autowrap = true
  50. __meta__ = {
  51. "_edit_use_anchors_": false
  52. }
  53. [node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer"]
  54. margin_top = 604.0
  55. margin_right = 1232.0
  56. margin_bottom = 677.0
  57. custom_constants/separation = 12
  58. alignment = 2
  59. [node name="PlayerText" type="LineEdit" parent="VBoxContainer/HBoxContainer"]
  60. margin_right = 1077.0
  61. margin_bottom = 73.0
  62. size_flags_horizontal = 3
  63. custom_fonts/font = SubResource( 2 )
  64. __meta__ = {
  65. "_edit_use_anchors_": false
  66. }
  67. [node name="TextureButton" type="TextureButton" parent="VBoxContainer/HBoxContainer"]
  68. margin_left = 1089.0
  69. margin_right = 1162.0
  70. margin_bottom = 73.0
  71. rect_min_size = Vector2( 73, 73 )
  72. texture_normal = ExtResource( 5 )
  73. texture_pressed = ExtResource( 4 )
  74. expand = true
  75. __meta__ = {
  76. "_edit_use_anchors_": false
  77. }
  78. [node name="Label" type="Label" parent="VBoxContainer/HBoxContainer"]
  79. margin_left = 1174.0
  80. margin_top = 5.0
  81. margin_right = 1232.0
  82. margin_bottom = 68.0
  83. custom_fonts/font = SubResource( 3 )
  84. text = "Ok"
  85. [node name="StoryBook" type="Node" parent="."]
  86. [node name="Story0" type="Node" parent="StoryBook"]
  87. script = ExtResource( 6 )
  88. prompts = PoolStringArray( "a name", "an adjective", "a noun" )
  89. story = "Once upon a time there was a princess called %s, that princess was very %s. I am sorry, this is my first %s project :''"
  90. [node name="Story1" type="Node" parent="StoryBook"]
  91. script = ExtResource( 6 )
  92. prompts = PoolStringArray( "a name", "another name", "an adjective", "another adjective" )
  93. story = "Once upon a time, there was a person called %s, that person had a dog called %s, it was very %s and %s"
  94. [node name="Story2" type="Node" parent="StoryBook"]
  95. script = ExtResource( 6 )
  96. prompts = PoolStringArray( "a name", "a thing", "a feeling" )
  97. story = "Once upon a time, %s ate a %s and felt very %s"
  98. [connection signal="text_entered" from="VBoxContainer/HBoxContainer/PlayerText" to="." method="_on_PlayerText_text_entered"]
  99. [connection signal="pressed" from="VBoxContainer/HBoxContainer/TextureButton" to="." method="_on_TextureButton2_pressed"]