Newer
Older
DungeonShooting / DungeonShooting_Godot / prefab / ui / TileSetEditorSegment.tscn
  1. [gd_scene load_steps=6 format=3 uid="uid://daias2tkvj20c"]
  2.  
  3. [ext_resource type="Script" path="res://src/game/ui/tileSetEditorSegment/TileSetEditorSegmentPanel.cs" id="1_to1lc"]
  4. [ext_resource type="Shader" path="res://resource/material/Grid.gdshader" id="2_t1p2n"]
  5. [ext_resource type="Texture2D" uid="uid://uhhfgdhpk7i4" path="res://icon.png" id="2_wr143"]
  6. [ext_resource type="Script" path="res://src/game/ui/tileSetEditorSegment/TileSetEditorSegmentLeftBg.cs" id="3_dnmr6"]
  7.  
  8. [sub_resource type="ShaderMaterial" id="ShaderMaterial_u3xqn"]
  9. shader = ExtResource("2_t1p2n")
  10. shader_parameter/color = Color(0.529412, 0.529412, 0.529412, 0.0431373)
  11. shader_parameter/size = Vector2(1334, 1076)
  12. shader_parameter/line_width = 2
  13. shader_parameter/offset = Vector2(0, 0)
  14. shader_parameter/grid_size = 16.0
  15.  
  16. [node name="TileSetEditorSegment" type="Control"]
  17. layout_mode = 3
  18. anchors_preset = 15
  19. anchor_right = 1.0
  20. anchor_bottom = 1.0
  21. grow_horizontal = 2
  22. grow_vertical = 2
  23. script = ExtResource("1_to1lc")
  24.  
  25. [node name="HSplitContainer" type="HSplitContainer" parent="."]
  26. layout_mode = 1
  27. anchors_preset = 15
  28. anchor_right = 1.0
  29. anchor_bottom = 1.0
  30. grow_horizontal = 2
  31. grow_vertical = 2
  32.  
  33. [node name="Left" type="Panel" parent="HSplitContainer"]
  34. layout_mode = 2
  35. size_flags_horizontal = 3
  36. size_flags_stretch_ratio = 70.0
  37.  
  38. [node name="MarginContainer" type="MarginContainer" parent="HSplitContainer/Left"]
  39. layout_mode = 1
  40. anchors_preset = 15
  41. anchor_right = 1.0
  42. anchor_bottom = 1.0
  43. grow_horizontal = 2
  44. grow_vertical = 2
  45. theme_override_constants/margin_left = 2
  46. theme_override_constants/margin_top = 2
  47. theme_override_constants/margin_right = 2
  48. theme_override_constants/margin_bottom = 2
  49.  
  50. [node name="LeftBg" type="ColorRect" parent="HSplitContainer/Left/MarginContainer"]
  51. clip_children = 2
  52. z_index = 1
  53. layout_mode = 2
  54. color = Color(0.203922, 0.203922, 0.203922, 1)
  55. script = ExtResource("3_dnmr6")
  56.  
  57. [node name="TileTexture" type="TextureRect" parent="HSplitContainer/Left/MarginContainer/LeftBg"]
  58. layout_mode = 1
  59. anchors_preset = 8
  60. anchor_left = 0.5
  61. anchor_top = 0.5
  62. anchor_right = 0.5
  63. anchor_bottom = 0.5
  64. offset_left = -32.0
  65. offset_top = -32.0
  66. offset_right = 32.0
  67. offset_bottom = 32.0
  68. grow_horizontal = 2
  69. grow_vertical = 2
  70. scale = Vector2(2, 2)
  71. texture = ExtResource("2_wr143")
  72.  
  73. [node name="Brush" type="Control" parent="HSplitContainer/Left/MarginContainer/LeftBg/TileTexture"]
  74. layout_mode = 1
  75. anchors_preset = 15
  76. anchor_right = 1.0
  77. anchor_bottom = 1.0
  78. grow_horizontal = 2
  79. grow_vertical = 2
  80. mouse_filter = 2
  81.  
  82. [node name="Grid" type="ColorRect" parent="HSplitContainer/Left/MarginContainer/LeftBg"]
  83. material = SubResource("ShaderMaterial_u3xqn")
  84. layout_mode = 1
  85. anchors_preset = 15
  86. anchor_right = 1.0
  87. anchor_bottom = 1.0
  88. grow_horizontal = 2
  89. grow_vertical = 2
  90. mouse_filter = 2
  91.  
  92. [node name="Right" type="Panel" parent="HSplitContainer"]
  93. layout_mode = 2
  94. size_flags_horizontal = 3
  95. size_flags_stretch_ratio = 30.0
  96.  
  97. [node name="MarginContainer" type="MarginContainer" parent="HSplitContainer/Right"]
  98. layout_mode = 1
  99. anchors_preset = 15
  100. anchor_right = 1.0
  101. anchor_bottom = 1.0
  102. grow_horizontal = 2
  103. grow_vertical = 2
  104. theme_override_constants/margin_left = 2
  105. theme_override_constants/margin_top = 2
  106. theme_override_constants/margin_right = 2
  107. theme_override_constants/margin_bottom = 2