plant_button.tscn 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. [gd_scene load_steps=4 format=3 uid="uid://d0myc3w8eieve"]
  2. [ext_resource type="Texture2D" uid="uid://0f8gj2t81y04" path="res://res/missdemandrake_icon.png" id="1_f73da"]
  3. [ext_resource type="Script" path="res://scene/ui/plant_button.gd" id="1_g4acw"]
  4. [ext_resource type="Script" path="res://scene/ui/plant_button_root.gd" id="1_hg7q7"]
  5. [node name="PlantButton" type="Control"]
  6. custom_minimum_size = Vector2(80, 72)
  7. layout_mode = 3
  8. anchors_preset = 0
  9. script = ExtResource("1_hg7q7")
  10. [node name="MarginContainer" type="MarginContainer" parent="."]
  11. layout_mode = 1
  12. anchors_preset = 8
  13. anchor_left = 0.5
  14. anchor_top = 0.5
  15. anchor_right = 0.5
  16. anchor_bottom = 0.5
  17. offset_left = -40.0
  18. offset_top = -36.0
  19. offset_right = 40.0
  20. offset_bottom = 36.0
  21. grow_horizontal = 2
  22. grow_vertical = 2
  23. theme_override_constants/margin_left = 8
  24. theme_override_constants/margin_top = 4
  25. theme_override_constants/margin_right = 8
  26. theme_override_constants/margin_bottom = 4
  27. [node name="Button" type="Button" parent="MarginContainer"]
  28. custom_minimum_size = Vector2(64, 64)
  29. layout_mode = 2
  30. focus_mode = 0
  31. icon = ExtResource("1_f73da")
  32. expand_icon = true
  33. script = ExtResource("1_g4acw")
  34. [node name="Tooltip" type="MarginContainer" parent="."]
  35. visible = false
  36. layout_mode = 1
  37. anchors_preset = -1
  38. anchor_top = 0.5
  39. anchor_bottom = 0.5
  40. grow_horizontal = 0
  41. grow_vertical = 2
  42. theme_override_constants/margin_right = 32
  43. [node name="Tooltip2" type="PanelContainer" parent="Tooltip"]
  44. layout_mode = 2
  45. [node name="Tooltip3" type="MarginContainer" parent="Tooltip/Tooltip2"]
  46. layout_mode = 2
  47. theme_override_constants/margin_left = 8
  48. theme_override_constants/margin_top = 8
  49. theme_override_constants/margin_right = 8
  50. theme_override_constants/margin_bottom = 8
  51. [node name="VBoxContainer" type="VBoxContainer" parent="Tooltip/Tooltip2/Tooltip3"]
  52. layout_mode = 2
  53. [node name="Label" type="RichTextLabel" parent="Tooltip/Tooltip2/Tooltip3/VBoxContainer"]
  54. custom_minimum_size = Vector2(250, 0)
  55. layout_mode = 2
  56. bbcode_enabled = true
  57. fit_content_height = true