TerrainEntry.tscn 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. [gd_scene load_steps=8 format=3 uid="uid://u2y444hj182c"]
  2. [ext_resource type="Script" uid="uid://c2qfovpuj58b7" path="res://addons/better-terrain/editor/TerrainEntry.gd" id="1_o2na3"]
  3. [ext_resource type="Texture2D" uid="uid://kmypxsqhynyv" path="res://addons/better-terrain/icons/Decoration.svg" id="2_ossyj"]
  4. [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_3pdcc"]
  5. content_margin_left = 4.0
  6. content_margin_top = 4.0
  7. content_margin_right = 4.0
  8. content_margin_bottom = 4.0
  9. draw_center = false
  10. [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_dqhir"]
  11. bg_color = Color(0.243, 0.816, 0.518, 1)
  12. border_color = Color(0, 0, 0, 0.439216)
  13. corner_radius_top_left = 8
  14. corner_radius_bottom_left = 8
  15. [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_rohyw"]
  16. content_margin_left = 2.0
  17. content_margin_top = 2.0
  18. content_margin_right = 2.0
  19. content_margin_bottom = 2.0
  20. bg_color = Color(0, 0, 0, 0.439216)
  21. corner_radius_top_left = 4
  22. corner_radius_top_right = 4
  23. corner_radius_bottom_right = 4
  24. corner_radius_bottom_left = 4
  25. [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_xa0fl"]
  26. content_margin_left = 4.0
  27. content_margin_top = 4.0
  28. content_margin_right = 4.0
  29. content_margin_bottom = 4.0
  30. bg_color = Color(0, 0, 0, 0.439216)
  31. [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_b4rkm"]
  32. content_margin_left = 3.0
  33. bg_color = Color(0, 0, 0, 0.439216)
  34. draw_center = false
  35. [node name="TerrainEntry" type="PanelContainer"]
  36. custom_minimum_size = Vector2(60, 60)
  37. offset_right = 200.0
  38. offset_bottom = 60.0
  39. size_flags_vertical = 3
  40. focus_mode = 2
  41. theme_override_styles/panel = SubResource("StyleBoxFlat_3pdcc")
  42. script = ExtResource("1_o2na3")
  43. [node name="Layout" type="BoxContainer" parent="."]
  44. unique_name_in_owner = true
  45. layout_mode = 2
  46. theme_override_constants/separation = 4
  47. [node name="IconLayout" type="HBoxContainer" parent="Layout"]
  48. unique_name_in_owner = true
  49. layout_mode = 2
  50. size_flags_horizontal = 4
  51. [node name="Color" type="PanelContainer" parent="Layout/IconLayout"]
  52. unique_name_in_owner = true
  53. z_index = 1
  54. custom_minimum_size = Vector2(24, 24)
  55. layout_mode = 2
  56. size_flags_horizontal = 0
  57. mouse_filter = 1
  58. theme_override_styles/panel = SubResource("StyleBoxFlat_dqhir")
  59. [node name="PanelContainer" type="PanelContainer" parent="Layout/IconLayout/Color"]
  60. layout_mode = 2
  61. size_flags_horizontal = 4
  62. size_flags_vertical = 4
  63. mouse_filter = 1
  64. theme_override_styles/panel = SubResource("StyleBoxFlat_rohyw")
  65. [node name="TypeIcon" type="TextureRect" parent="Layout/IconLayout/Color/PanelContainer"]
  66. unique_name_in_owner = true
  67. layout_mode = 2
  68. size_flags_horizontal = 4
  69. size_flags_vertical = 4
  70. texture = ExtResource("2_ossyj")
  71. [node name="TerrainIconPanel" type="PanelContainer" parent="Layout/IconLayout"]
  72. unique_name_in_owner = true
  73. custom_minimum_size = Vector2(52, 52)
  74. layout_mode = 2
  75. size_flags_horizontal = 4
  76. size_flags_vertical = 4
  77. mouse_filter = 1
  78. theme_override_styles/panel = SubResource("StyleBoxFlat_xa0fl")
  79. [node name="TerrainIcon" type="TextureRect" parent="Layout/IconLayout/TerrainIconPanel"]
  80. unique_name_in_owner = true
  81. texture_filter = 1
  82. custom_minimum_size = Vector2(40, 40)
  83. layout_mode = 2
  84. expand_mode = 4
  85. stretch_mode = 5
  86. [node name="Name" type="Label" parent="Layout"]
  87. unique_name_in_owner = true
  88. layout_mode = 2
  89. size_flags_horizontal = 3
  90. size_flags_vertical = 1
  91. theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
  92. theme_override_constants/outline_size = 0
  93. theme_override_styles/normal = SubResource("StyleBoxFlat_b4rkm")
  94. text = "New Terrain"
  95. vertical_alignment = 1
  96. text_overrun_behavior = 3
  97. [connection signal="focus_entered" from="." to="." method="_on_focus_entered"]
  98. [connection signal="focus_exited" from="." to="." method="_on_focus_exited"]