InfoBox.tscn 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. [gd_scene load_steps=3 format=3 uid="uid://clibpgandrw2t"]
  2. [ext_resource type="Script" path="res://UI/InfoBox.gd" id="1_fcjue"]
  3. [sub_resource type="StyleBoxLine" id="StyleBoxLine_67cy6"]
  4. color = Color(1, 1, 1, 1)
  5. thickness = 2
  6. [node name="InfoBox" type="Control"]
  7. layout_mode = 3
  8. anchors_preset = 15
  9. anchor_right = 1.0
  10. anchor_bottom = 1.0
  11. grow_horizontal = 2
  12. grow_vertical = 2
  13. script = ExtResource("1_fcjue")
  14. [node name="MarginContainer" type="MarginContainer" parent="."]
  15. layout_mode = 1
  16. anchors_preset = 15
  17. anchor_right = 1.0
  18. anchor_bottom = 1.0
  19. grow_horizontal = 2
  20. grow_vertical = 2
  21. theme_override_constants/margin_left = 120
  22. theme_override_constants/margin_top = 80
  23. theme_override_constants/margin_right = 120
  24. theme_override_constants/margin_bottom = 80
  25. [node name="ColorRect" type="ColorRect" parent="MarginContainer"]
  26. layout_mode = 2
  27. color = Color(0.313726, 0.447059, 0.678431, 0.709804)
  28. [node name="MarginContainer" type="MarginContainer" parent="MarginContainer"]
  29. layout_mode = 2
  30. theme_override_constants/margin_left = 30
  31. theme_override_constants/margin_top = 30
  32. theme_override_constants/margin_right = 30
  33. theme_override_constants/margin_bottom = 30
  34. [node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer/MarginContainer"]
  35. layout_mode = 2
  36. theme_override_constants/separation = 10
  37. [node name="InfoTitle" type="Label" parent="MarginContainer/MarginContainer/VBoxContainer"]
  38. layout_mode = 2
  39. theme_override_font_sizes/font_size = 16
  40. text = "Title"
  41. [node name="HSeparator" type="HSeparator" parent="MarginContainer/MarginContainer/VBoxContainer"]
  42. layout_mode = 2
  43. theme_override_styles/separator = SubResource("StyleBoxLine_67cy6")
  44. [node name="InfoText" type="Label" parent="MarginContainer/MarginContainer/VBoxContainer"]
  45. custom_minimum_size = Vector2(99, 800)
  46. layout_direction = 1
  47. layout_mode = 2
  48. text = "This is just stupid placeholder text!
  49. This is just stupid placeholder text!
  50. This is just stupid placeholder text!
  51. "