[gd_scene load_steps=2 format=3] [ext_resource type="Script" path="res://ui/paint_panel.gd" id="1_paint"] [node name="PaintPanel" 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_paint") [node name="Dim" type="ColorRect" parent="."] layout_mode = 1 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 color = Color(0.03, 0.06, 0.14, 0.72) [node name="Center" type="CenterContainer" parent="."] 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="Panel" type="PanelContainer" parent="Center"] layout_mode = 2 [node name="Margin" type="MarginContainer" parent="Center/Panel"] layout_mode = 2 theme_override_constants/margin_left = 18 theme_override_constants/margin_top = 14 theme_override_constants/margin_right = 18 theme_override_constants/margin_bottom = 14 [node name="Box" type="VBoxContainer" parent="Center/Panel/Margin"] layout_mode = 2 theme_override_constants/separation = 12 [node name="Title" type="Label" parent="Center/Panel/Margin/Box"] layout_mode = 2 theme_override_font_sizes/font_size = 22 text = "画脸" [node name="Row" type="HBoxContainer" parent="Center/Panel/Margin/Box"] layout_mode = 2 theme_override_constants/separation = 16 [node name="CanvasStack" type="Control" parent="Center/Panel/Margin/Box/Row"] custom_minimum_size = Vector2(420, 420) layout_mode = 2 mouse_filter = 2 [node name="SkinRect" type="ColorRect" parent="Center/Panel/Margin/Box/Row/CanvasStack"] unique_name_in_owner = true layout_mode = 1 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 mouse_filter = 2 color = Color(0.537255, 0.701961, 1, 1) [node name="PresetRect" type="TextureRect" parent="Center/Panel/Margin/Box/Row/CanvasStack"] unique_name_in_owner = true layout_mode = 1 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 mouse_filter = 2 expand_mode = 1 [node name="StrokeRect" type="TextureRect" parent="Center/Panel/Margin/Box/Row/CanvasStack"] unique_name_in_owner = true layout_mode = 1 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 mouse_filter = 0 expand_mode = 1 [node name="Tools" type="VBoxContainer" parent="Center/Panel/Margin/Box/Row"] layout_mode = 2 theme_override_constants/separation = 10 [node name="ColorButton" type="ColorPickerButton" parent="Center/Panel/Margin/Box/Row/Tools"] unique_name_in_owner = true custom_minimum_size = Vector2(160, 36) layout_mode = 2 color = Color(0, 0, 0, 1) [node name="WidthRow" type="HBoxContainer" parent="Center/Panel/Margin/Box/Row/Tools"] layout_mode = 2 theme_override_constants/separation = 8 [node name="Label" type="Label" parent="Center/Panel/Margin/Box/Row/Tools/WidthRow"] layout_mode = 2 text = "粗细" [node name="WidthSlider" type="HSlider" parent="Center/Panel/Margin/Box/Row/Tools/WidthRow"] unique_name_in_owner = true custom_minimum_size = Vector2(110, 0) layout_mode = 2 min_value = 2.0 max_value = 48.0 value = 12.0 [node name="WidthLabel" type="Label" parent="Center/Panel/Margin/Box/Row/Tools/WidthRow"] unique_name_in_owner = true custom_minimum_size = Vector2(52, 0) layout_mode = 2 text = "12 px" [node name="EraserToggle" type="CheckButton" parent="Center/Panel/Margin/Box/Row/Tools"] unique_name_in_owner = true layout_mode = 2 text = "橡皮" [node name="ClearButton" type="Button" parent="Center/Panel/Margin/Box/Row/Tools"] unique_name_in_owner = true layout_mode = 2 text = "清空" [node name="Hint" type="Label" parent="Center/Panel/Margin/Box/Row/Tools"] layout_mode = 2 custom_minimum_size = Vector2(160, 0) modulate = Color(1, 1, 1, 0.65) theme_override_font_sizes/font_size = 13 text = "在左边画布上直接画。 橡皮擦掉笔画,露出来的是底下的脸。" autowrap_mode = 3 [node name="NameEdit" type="LineEdit" parent="Center/Panel/Margin/Box/Row/Tools"] unique_name_in_owner = true custom_minimum_size = Vector2(160, 36) layout_mode = 2 placeholder_text = "表情名称(可留空)" [node name="Bottom" type="HBoxContainer" parent="Center/Panel/Margin/Box"] layout_mode = 2 alignment = 2 theme_override_constants/separation = 10 [node name="CancelButton" type="Button" parent="Center/Panel/Margin/Box/Bottom"] unique_name_in_owner = true custom_minimum_size = Vector2(120, 40) layout_mode = 2 text = "取消" [node name="DoneButton" type="Button" parent="Center/Panel/Margin/Box/Bottom"] unique_name_in_owner = true custom_minimum_size = Vector2(120, 40) layout_mode = 2 text = "保存到表情列表"