[gd_scene load_steps=9 format=3 uid="uid://daias2tkvj20c"] [ext_resource type="Script" path="res://src/game/ui/tileSetEditorSegment/TileSetEditorSegmentPanel.cs" id="1_to1lc"] [ext_resource type="Script" path="res://src/game/ui/tileSetEditorSegment/TileEditArea.cs" id="2_h43yx"] [ext_resource type="Shader" path="res://resource/material/Grid.gdshader" id="2_t1p2n"] [ext_resource type="Texture2D" uid="uid://uhhfgdhpk7i4" path="res://icon.png" id="2_wr143"] [ext_resource type="Script" path="res://src/game/ui/tileSetEditorSegment/MaskBrush.cs" id="4_ytys0"] [ext_resource type="Texture2D" uid="uid://bn47bmilcw4x0" path="res://resource/sprite/ui/commonIcon/Select2.png" id="6_g5ey6"] [ext_resource type="Script" path="res://src/game/ui/tileSetEditorSegment/TileSelected.cs" id="6_gql80"] [sub_resource type="ShaderMaterial" id="ShaderMaterial_u3xqn"] shader = ExtResource("2_t1p2n") shader_parameter/color = Color(0.529412, 0.529412, 0.529412, 0.0431373) shader_parameter/size = Vector2(1334, 1076) shader_parameter/line_width = 2 shader_parameter/offset = Vector2(0, 0) shader_parameter/grid_size = 16.0 [node name="TileSetEditorSegment" type="Control"] layout_mode = 3 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 script = ExtResource("1_to1lc") [node name="HSplitContainer" type="HSplitContainer" parent="."] layout_mode = 1 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 [node name="Left" type="Panel" parent="HSplitContainer"] layout_mode = 2 size_flags_horizontal = 3 size_flags_stretch_ratio = 68.0 [node name="MarginContainer" type="MarginContainer" parent="HSplitContainer/Left"] layout_mode = 1 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 theme_override_constants/margin_left = 2 theme_override_constants/margin_top = 2 theme_override_constants/margin_right = 2 theme_override_constants/margin_bottom = 2 [node name="LeftBg" type="ColorRect" parent="HSplitContainer/Left/MarginContainer"] clip_children = 2 z_index = 1 layout_mode = 2 color = Color(0.203922, 0.203922, 0.203922, 1) script = ExtResource("2_h43yx") [node name="TileTexture" type="TextureRect" parent="HSplitContainer/Left/MarginContainer/LeftBg"] layout_mode = 1 anchors_preset = 8 anchor_left = 0.5 anchor_top = 0.5 anchor_right = 0.5 anchor_bottom = 0.5 offset_left = -32.0 offset_top = -32.0 offset_right = 32.0 offset_bottom = 32.0 grow_horizontal = 2 grow_vertical = 2 scale = Vector2(2, 2) mouse_filter = 2 texture = ExtResource("2_wr143") [node name="MaskRoot" type="Control" parent="HSplitContainer/Left/MarginContainer/LeftBg/TileTexture"] layout_mode = 1 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 mouse_filter = 2 [node name="MaskRect" type="ColorRect" parent="HSplitContainer/Left/MarginContainer/LeftBg/TileTexture/MaskRoot"] layout_mode = 1 offset_right = 16.0 offset_bottom = 16.0 mouse_filter = 2 color = Color(0, 0, 0, 0.588235) [node name="MaskBrush" type="Control" parent="HSplitContainer/Left/MarginContainer/LeftBg/TileTexture"] layout_mode = 1 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 mouse_filter = 2 script = ExtResource("4_ytys0") [node name="Grid" type="ColorRect" parent="HSplitContainer/Left/MarginContainer/LeftBg"] material = SubResource("ShaderMaterial_u3xqn") layout_mode = 1 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 mouse_filter = 2 [node name="Right" type="Panel" parent="HSplitContainer"] layout_mode = 2 size_flags_horizontal = 3 size_flags_stretch_ratio = 31.0 [node name="MarginContainer" type="MarginContainer" parent="HSplitContainer/Right"] layout_mode = 1 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 theme_override_constants/margin_left = 2 theme_override_constants/margin_top = 2 theme_override_constants/margin_right = 2 theme_override_constants/margin_bottom = 2 [node name="RightBg" type="VBoxContainer" parent="HSplitContainer/Right/MarginContainer"] layout_mode = 2 script = ExtResource("6_gql80") [node name="Label" type="Label" parent="HSplitContainer/Right/MarginContainer/RightBg"] layout_mode = 2 text = "已经导入的图块(双击移除):" [node name="ScrollContainer" type="ScrollContainer" parent="HSplitContainer/Right/MarginContainer/RightBg"] layout_mode = 2 size_flags_vertical = 3 [node name="CellButton" type="Button" parent="HSplitContainer/Right/MarginContainer/RightBg/ScrollContainer"] custom_minimum_size = Vector2(120, 145) layout_mode = 2 [node name="PreviewImage" type="TextureRect" parent="HSplitContainer/Right/MarginContainer/RightBg/ScrollContainer/CellButton"] layout_mode = 1 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 offset_left = 2.0 offset_top = 2.0 offset_right = -2.0 offset_bottom = -27.0 grow_horizontal = 2 grow_vertical = 2 mouse_filter = 2 stretch_mode = 5 [node name="CellId" type="Label" parent="HSplitContainer/Right/MarginContainer/RightBg/ScrollContainer/CellButton"] layout_mode = 1 anchors_preset = 12 anchor_top = 1.0 anchor_right = 1.0 anchor_bottom = 1.0 offset_top = -27.0 offset_bottom = -3.0 grow_horizontal = 2 grow_vertical = 0 theme_override_font_sizes/font_size = 16 text = "(0,0)" horizontal_alignment = 1 vertical_alignment = 1 clip_text = true text_overrun_behavior = 1 [node name="SelectTexture" type="NinePatchRect" parent="HSplitContainer/Right/MarginContainer/RightBg/ScrollContainer/CellButton"] layout_mode = 1 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 texture = ExtResource("6_g5ey6") region_rect = Rect2(0, 0, 36, 36) patch_margin_left = 3 patch_margin_top = 3 patch_margin_right = 3 patch_margin_bottom = 3