Dialogue.tscn 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. [gd_scene load_steps=8 format=3 uid="uid://bgvr3t4hmbkny"]
  2. [ext_resource type="Theme" uid="uid://dhb6h35g1bk0x" path="res://data/themes/DefaultTheme.tres" id="1_w0q73"]
  3. [ext_resource type="Script" uid="uid://bpaa4goe5rkfa" path="res://sources/gui/Dialogue.gd" id="1_xbnx6"]
  4. [ext_resource type="PackedScene" uid="uid://3ldimch2l6rv" path="res://presets/gui/Scrollable.tscn" id="2_415ce"]
  5. [ext_resource type="Texture2D" uid="uid://bxbrk4eng2uhi" path="res://data/graphics/gui/menu/menubar_button.png" id="3_5rxxj"]
  6. [ext_resource type="Texture2D" uid="uid://b2t8xg8go0vsr" path="res://data/graphics/gui/menu/menubar_button_pressed.png" id="4_fspi0"]
  7. [ext_resource type="PackedScene" uid="uid://tqcjqyaicaol" path="res://presets/gui/contexts/ContextMenuV.tscn" id="5_6rp1f"]
  8. [sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_5qyvn"]
  9. [node name="Dialogue" type="VBoxContainer"]
  10. custom_minimum_size = Vector2(676, 280)
  11. offset_right = 676.0
  12. offset_bottom = 364.0
  13. mouse_filter = 2
  14. theme = ExtResource("1_w0q73")
  15. script = ExtResource("1_xbnx6")
  16. [node name="Buffer" type="Control" parent="."]
  17. layout_mode = 2
  18. size_flags_vertical = 3
  19. mouse_filter = 2
  20. [node name="BottomVbox" type="VBoxContainer" parent="."]
  21. custom_minimum_size = Vector2(0, 280)
  22. layout_mode = 2
  23. size_flags_vertical = 3
  24. mouse_filter = 2
  25. [node name="Dialogue" type="PanelContainer" parent="BottomVbox"]
  26. visible = false
  27. layout_mode = 2
  28. size_flags_horizontal = 4
  29. theme_type_variation = &"DialogueBox"
  30. [node name="FixedHBox" type="HBoxContainer" parent="BottomVbox/Dialogue"]
  31. layout_mode = 2
  32. mouse_filter = 2
  33. [node name="Scrollable" parent="BottomVbox/Dialogue/FixedHBox" instance=ExtResource("2_415ce")]
  34. custom_minimum_size = Vector2(500, 100)
  35. layout_mode = 2
  36. size_flags_horizontal = 4
  37. size_flags_vertical = 0
  38. mouse_filter = 2
  39. theme_override_styles/panel = SubResource("StyleBoxEmpty_5qyvn")
  40. [node name="Buffer" type="Control" parent="BottomVbox/Dialogue/FixedHBox"]
  41. custom_minimum_size = Vector2(50, 0)
  42. layout_mode = 2
  43. size_flags_horizontal = 3
  44. size_flags_vertical = 3
  45. mouse_filter = 2
  46. [node name="Button" type="Control" parent="BottomVbox/Dialogue"]
  47. custom_minimum_size = Vector2(64, 64)
  48. layout_mode = 2
  49. size_flags_horizontal = 8
  50. size_flags_vertical = 4
  51. mouse_filter = 2
  52. [node name="TouchButton" type="TouchScreenButton" parent="BottomVbox/Dialogue/Button"]
  53. position = Vector2(32, 0)
  54. texture_normal = ExtResource("3_5rxxj")
  55. texture_pressed = ExtResource("4_fspi0")
  56. [node name="Label" type="Label" parent="BottomVbox/Dialogue/Button"]
  57. layout_mode = 1
  58. anchors_preset = 8
  59. anchor_left = 0.5
  60. anchor_top = 0.5
  61. anchor_right = 0.5
  62. anchor_bottom = 0.5
  63. offset_left = 12.0
  64. offset_top = -10.0
  65. offset_right = 52.0
  66. offset_bottom = 9.0
  67. grow_horizontal = 2
  68. grow_vertical = 2
  69. horizontal_alignment = 1
  70. vertical_alignment = 1
  71. [node name="ChoiceVbox" type="VBoxContainer" parent="BottomVbox"]
  72. custom_minimum_size = Vector2(0, 140)
  73. layout_mode = 2
  74. size_flags_vertical = 3
  75. mouse_filter = 2
  76. [node name="BufferUp" type="Control" parent="BottomVbox/ChoiceVbox"]
  77. layout_mode = 2
  78. size_flags_vertical = 3
  79. mouse_filter = 2
  80. [node name="Choice" parent="BottomVbox/ChoiceVbox" instance=ExtResource("5_6rp1f")]
  81. visible = false
  82. layout_mode = 2
  83. size_flags_horizontal = 4
  84. size_flags_vertical = 4
  85. mouse_filter = 1
  86. theme_type_variation = &"DialogueBox"
  87. fadeInDelay = 0.5
  88. displayDelay = 0.0
  89. fadeOutDelay = 0.3
  90. [node name="BufferDown" type="Control" parent="BottomVbox/ChoiceVbox"]
  91. layout_mode = 2
  92. size_flags_vertical = 3
  93. mouse_filter = 2
  94. [connection signal="released" from="BottomVbox/Dialogue/Button/TouchButton" to="." method="ButtonPressed"]