TilePropertyString.tscn 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. [gd_scene load_steps=8 format=3 uid="uid://l0lulnbn7v6b"]
  2. [ext_resource type="Script" uid="uid://dq6c5tah580o" path="res://Scripts/Classes/Editor/TilePropertyString.gd" id="1_yptip"]
  3. [ext_resource type="StyleBox" uid="uid://comkghpj0djcl" path="res://Resources/UI/Panel.tres" id="2_4ea2j"]
  4. [ext_resource type="StyleBox" uid="uid://btw30ed0dg4bt" path="res://Resources/UI/Tab.tres" id="3_yptip"]
  5. [ext_resource type="Script" uid="uid://dja6281w30iv0" path="res://Scripts/UI/TextValidator.gd" id="4_ibhoq"]
  6. [sub_resource type="StyleBoxLine" id="StyleBoxLine_yptip"]
  7. color = Color(1, 1, 1, 1)
  8. [sub_resource type="FontFile" id="FontFile_yptip"]
  9. cache/0/16/0/ascent = 0.0
  10. cache/0/16/0/descent = 0.0
  11. cache/0/16/0/underline_position = 0.0
  12. cache/0/16/0/underline_thickness = 0.0
  13. cache/0/16/0/scale = 1.0
  14. cache/0/15/0/ascent = 0.0
  15. cache/0/15/0/descent = 0.0
  16. cache/0/15/0/underline_position = 0.0
  17. cache/0/15/0/underline_thickness = 0.0
  18. cache/0/15/0/scale = 1.0
  19. cache/0/14/0/ascent = 0.0
  20. cache/0/14/0/descent = 0.0
  21. cache/0/14/0/underline_position = 0.0
  22. cache/0/14/0/underline_thickness = 0.0
  23. cache/0/14/0/scale = 1.0
  24. cache/0/13/0/ascent = 0.0
  25. cache/0/13/0/descent = 0.0
  26. cache/0/13/0/underline_position = 0.0
  27. cache/0/13/0/underline_thickness = 0.0
  28. cache/0/13/0/scale = 1.0
  29. cache/0/12/0/ascent = 0.0
  30. cache/0/12/0/descent = 0.0
  31. cache/0/12/0/underline_position = 0.0
  32. cache/0/12/0/underline_thickness = 0.0
  33. cache/0/12/0/scale = 1.0
  34. cache/0/11/0/ascent = 0.0
  35. cache/0/11/0/descent = 0.0
  36. cache/0/11/0/underline_position = 0.0
  37. cache/0/11/0/underline_thickness = 0.0
  38. cache/0/11/0/scale = 1.0
  39. cache/0/10/0/ascent = 0.0
  40. cache/0/10/0/descent = 0.0
  41. cache/0/10/0/underline_position = 0.0
  42. cache/0/10/0/underline_thickness = 0.0
  43. cache/0/10/0/scale = 1.0
  44. cache/0/9/0/ascent = 0.0
  45. cache/0/9/0/descent = 0.0
  46. cache/0/9/0/underline_position = 0.0
  47. cache/0/9/0/underline_thickness = 0.0
  48. cache/0/9/0/scale = 1.0
  49. cache/0/8/0/ascent = 0.0
  50. cache/0/8/0/descent = 0.0
  51. cache/0/8/0/underline_position = 0.0
  52. cache/0/8/0/underline_thickness = 0.0
  53. cache/0/8/0/scale = 1.0
  54. [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_yptip"]
  55. bg_color = Color(0.09620471, 0.09620475, 0.09620468, 1)
  56. border_width_left = 1
  57. border_width_top = 1
  58. border_width_right = 1
  59. border_width_bottom = 1
  60. border_color = Color(1, 1, 1, 1)
  61. expand_margin_left = 1.0
  62. expand_margin_top = 1.0
  63. expand_margin_right = 1.0
  64. expand_margin_bottom = 1.0
  65. [node name="TilePropertyBOOL" type="HBoxContainer"]
  66. offset_right = 184.0
  67. offset_bottom = 16.0
  68. script = ExtResource("1_yptip")
  69. tile_property_name = "text"
  70. [node name="Label" type="Label" parent="."]
  71. unique_name_in_owner = true
  72. layout_mode = 2
  73. size_flags_horizontal = 3
  74. text = "PROPERTY_NAME:"
  75. uppercase = true
  76. [node name="Value" type="Label" parent="."]
  77. unique_name_in_owner = true
  78. layout_mode = 2
  79. size_flags_horizontal = 3
  80. text = "aadadadawsdad"
  81. text_overrun_behavior = 3
  82. uppercase = true
  83. [node name="Button" type="Button" parent="."]
  84. layout_mode = 2
  85. text = "…"
  86. [node name="CanvasLayer" type="CanvasLayer" parent="."]
  87. visible = false
  88. [node name="Panel" type="PanelContainer" parent="CanvasLayer"]
  89. anchors_preset = 8
  90. anchor_left = 0.5
  91. anchor_top = 0.5
  92. anchor_right = 0.5
  93. anchor_bottom = 0.5
  94. offset_left = -119.0
  95. offset_top = -93.0
  96. offset_right = 119.0
  97. offset_bottom = 93.0
  98. grow_horizontal = 2
  99. grow_vertical = 2
  100. theme_override_styles/panel = ExtResource("2_4ea2j")
  101. [node name="VBoxContainer" type="VBoxContainer" parent="CanvasLayer/Panel"]
  102. layout_mode = 2
  103. [node name="Label" type="Label" parent="CanvasLayer/Panel/VBoxContainer"]
  104. layout_mode = 2
  105. size_flags_horizontal = 4
  106. text = "EDIT TEXT"
  107. [node name="HSeparator" type="HSeparator" parent="CanvasLayer/Panel/VBoxContainer/Label"]
  108. layout_mode = 1
  109. anchors_preset = 12
  110. anchor_top = 1.0
  111. anchor_right = 1.0
  112. anchor_bottom = 1.0
  113. offset_top = -4.0
  114. grow_horizontal = 2
  115. grow_vertical = 0
  116. theme_override_styles/separator = SubResource("StyleBoxLine_yptip")
  117. [node name="TextEdit" type="TextEdit" parent="CanvasLayer/Panel/VBoxContainer"]
  118. layout_mode = 2
  119. size_flags_vertical = 3
  120. theme_override_fonts/font = SubResource("FontFile_yptip")
  121. theme_override_font_sizes/font_size = 12
  122. theme_override_styles/normal = SubResource("StyleBoxFlat_yptip")
  123. theme_override_styles/focus = SubResource("StyleBoxFlat_yptip")
  124. context_menu_enabled = false
  125. emoji_menu_enabled = false
  126. caret_blink = true
  127. [node name="Button" type="Button" parent="CanvasLayer/Panel/VBoxContainer"]
  128. layout_mode = 2
  129. theme_override_styles/normal = ExtResource("3_yptip")
  130. text = "SUBMIT"
  131. [node name="TextValidator" type="Node" parent="."]
  132. script = ExtResource("4_ibhoq")
  133. metadata/_custom_type_script = "uid://dja6281w30iv0"
  134. [connection signal="start_value_changed" from="." to="CanvasLayer/Panel/VBoxContainer/TextEdit" method="set_text"]
  135. [connection signal="pressed" from="Button" to="." method="open_menu"]
  136. [connection signal="pressed" from="CanvasLayer/Panel/VBoxContainer/Button" to="." method="on_pressed"]