TilePropertySceneRef.tscn 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. [gd_scene load_steps=6 format=3 uid="uid://clfxxcxk3fobh"]
  2. [ext_resource type="Script" uid="uid://c1jo8djcruqbf" path="res://Scripts/Parts/TilePropertySceneRef.gd" id="1_p4kuk"]
  3. [ext_resource type="Texture2D" uid="uid://bnv2ocqgws3p7" path="res://Assets/Sprites/UI/Panel.png" id="2_xqybm"]
  4. [ext_resource type="Script" uid="uid://cbal8ms2oe1ik" path="res://Scripts/Classes/Components/ResourceSetterNew.gd" id="3_v8h6y"]
  5. [sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_p4kuk"]
  6. [sub_resource type="StyleBoxTexture" id="StyleBoxTexture_v8h6y"]
  7. texture = ExtResource("2_xqybm")
  8. texture_margin_left = 2.0
  9. texture_margin_top = 2.0
  10. texture_margin_right = 2.0
  11. texture_margin_bottom = 2.0
  12. [node name="TilePropertySCENE" type="HBoxContainer"]
  13. script = ExtResource("1_p4kuk")
  14. [node name="Label" type="Label" parent="."]
  15. unique_name_in_owner = true
  16. layout_mode = 2
  17. size_flags_horizontal = 0
  18. text = "PROPERTY_NAME:"
  19. uppercase = true
  20. [node name="SceneName" type="Label" parent="."]
  21. unique_name_in_owner = true
  22. layout_mode = 2
  23. size_flags_horizontal = 0
  24. text = "PROPERTY_NAME:"
  25. uppercase = true
  26. [node name="Button" type="Button" parent="."]
  27. custom_minimum_size = Vector2(16, 0)
  28. layout_mode = 2
  29. size_flags_horizontal = 10
  30. theme_override_colors/font_color = Color(1, 1, 1, 1)
  31. theme_override_styles/focus = SubResource("StyleBoxEmpty_p4kuk")
  32. theme_override_styles/disabled = SubResource("StyleBoxTexture_v8h6y")
  33. theme_override_styles/hover = SubResource("StyleBoxTexture_v8h6y")
  34. theme_override_styles/pressed = SubResource("StyleBoxTexture_v8h6y")
  35. theme_override_styles/normal = SubResource("StyleBoxTexture_v8h6y")
  36. text = "+"
  37. [node name="ResourceSetterNew" type="Node" parent="."]
  38. script = ExtResource("3_v8h6y")
  39. property_name = "texture"
  40. mode = 1
  41. use_cache = false
  42. metadata/_custom_type_script = "uid://cbal8ms2oe1ik"
  43. [connection signal="pressed" from="Button" to="." method="open_tile_selection_menu"]