415 lines
16 KiB
Plaintext
415 lines
16 KiB
Plaintext
[gd_scene load_steps=14 format=3 uid="uid://dno0a4457twd4"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://c3wwe6r000gpq" path="res://external/test portrait/farmer_f/composite.png" id="1_h8465"]
|
|
[ext_resource type="Script" uid="uid://y86x71nakgkl" path="res://scripts/portrait_customizer.gd" id="1_qv0tv"]
|
|
[ext_resource type="PackedScene" uid="uid://drshemnag35re" path="res://templates/hero_portrait.tscn" id="3_wkmmk"]
|
|
|
|
[sub_resource type="Gradient" id="Gradient_v2k53"]
|
|
offsets = PackedFloat32Array(0)
|
|
colors = PackedColorArray(1, 0.73333335, 0, 1)
|
|
|
|
[sub_resource type="GradientTexture1D" id="GradientTexture1D_6y6h7"]
|
|
gradient = SubResource("Gradient_v2k53")
|
|
width = 1
|
|
|
|
[sub_resource type="Gradient" id="Gradient_5l11s"]
|
|
offsets = PackedFloat32Array(0)
|
|
colors = PackedColorArray(0.46, 0.23, 0, 1)
|
|
|
|
[sub_resource type="GradientTexture1D" id="GradientTexture1D_uwnmi"]
|
|
gradient = SubResource("Gradient_5l11s")
|
|
width = 1
|
|
|
|
[sub_resource type="Gradient" id="Gradient_x374a"]
|
|
offsets = PackedFloat32Array(0)
|
|
colors = PackedColorArray(0.8, 0.18666668, 0, 1)
|
|
|
|
[sub_resource type="GradientTexture1D" id="GradientTexture1D_72sxj"]
|
|
gradient = SubResource("Gradient_x374a")
|
|
width = 1
|
|
|
|
[sub_resource type="Gradient" id="Gradient_xot8x"]
|
|
offsets = PackedFloat32Array(0)
|
|
colors = PackedColorArray(0.13682577, 0.13682574, 0.13682571, 1)
|
|
|
|
[sub_resource type="GradientTexture1D" id="GradientTexture1D_ac3np"]
|
|
gradient = SubResource("Gradient_xot8x")
|
|
width = 1
|
|
|
|
[sub_resource type="Gradient" id="Gradient_osq0m"]
|
|
offsets = PackedFloat32Array(0)
|
|
colors = PackedColorArray(0, 0, 0.7647059, 1)
|
|
|
|
[sub_resource type="GradientTexture1D" id="GradientTexture1D_5l84q"]
|
|
gradient = SubResource("Gradient_osq0m")
|
|
width = 1
|
|
|
|
[node name="Portrait Customizer" 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_qv0tv")
|
|
|
|
[node name="ColorRect3" 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, 0, 0, 0.5686275)
|
|
|
|
[node name="ColorRect" type="ColorRect" parent="."]
|
|
custom_minimum_size = Vector2(600, 600)
|
|
layout_mode = 0
|
|
offset_left = 1024.0
|
|
offset_top = 79.0
|
|
offset_right = 1624.0
|
|
offset_bottom = 679.0
|
|
color = Color(0.6872149, 0.68721503, 0.6872149, 1)
|
|
|
|
[node name="ColorRect2" type="ColorRect" parent="."]
|
|
custom_minimum_size = Vector2(512, 512)
|
|
layout_mode = 0
|
|
offset_left = 1070.0
|
|
offset_top = 120.0
|
|
offset_right = 1582.0
|
|
offset_bottom = 632.0
|
|
|
|
[node name="Base" type="TextureRect" parent="."]
|
|
visible = false
|
|
custom_minimum_size = Vector2(512, 512)
|
|
layout_mode = 0
|
|
offset_left = 692.0
|
|
offset_top = 129.0
|
|
offset_right = 1204.0
|
|
offset_bottom = 641.0
|
|
texture = ExtResource("1_h8465")
|
|
|
|
[node name="HeroPortrait" parent="." instance=ExtResource("3_wkmmk")]
|
|
layout_mode = 0
|
|
offset_left = 1070.0
|
|
offset_top = 120.0
|
|
offset_right = 1582.0
|
|
offset_bottom = 632.0
|
|
|
|
[node name="LeftButton" type="Button" parent="."]
|
|
layout_mode = 0
|
|
offset_left = 957.0
|
|
offset_top = 338.0
|
|
offset_right = 1022.0
|
|
offset_bottom = 483.0
|
|
theme_override_font_sizes/font_size = 100
|
|
text = "<"
|
|
|
|
[node name="UpButton" type="Button" parent="."]
|
|
layout_mode = 0
|
|
offset_left = 1396.0
|
|
offset_top = 12.000006
|
|
offset_right = 1461.0
|
|
offset_bottom = 157.0
|
|
rotation = 1.5707964
|
|
theme_override_font_sizes/font_size = 100
|
|
text = "<"
|
|
|
|
[node name="DownButton" type="Button" parent="."]
|
|
layout_mode = 0
|
|
offset_left = 1259.0
|
|
offset_top = 747.0
|
|
offset_right = 1324.0
|
|
offset_bottom = 892.0
|
|
rotation = -1.5707964
|
|
theme_override_font_sizes/font_size = 100
|
|
text = "<"
|
|
|
|
[node name="RightButton" type="Button" parent="."]
|
|
layout_mode = 0
|
|
offset_left = 1625.0
|
|
offset_top = 338.0
|
|
offset_right = 1690.0
|
|
offset_bottom = 483.0
|
|
theme_override_font_sizes/font_size = 100
|
|
text = ">"
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="."]
|
|
layout_mode = 0
|
|
offset_left = 925.0
|
|
offset_top = 765.0
|
|
offset_right = 1770.0
|
|
offset_bottom = 1059.0
|
|
|
|
[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer"]
|
|
layout_mode = 2
|
|
alignment = 1
|
|
|
|
[node name="RandomButton" type="Button" parent="VBoxContainer/HBoxContainer"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
theme_override_font_sizes/font_size = 100
|
|
text = "Random"
|
|
|
|
[node name="AcceptButton" type="Button" parent="VBoxContainer"]
|
|
layout_mode = 2
|
|
theme_override_font_sizes/font_size = 100
|
|
text = "ACCEPT"
|
|
|
|
[node name="VBoxContainer2" type="VBoxContainer" parent="."]
|
|
layout_mode = 0
|
|
offset_left = 138.0
|
|
offset_top = 19.0
|
|
offset_right = 768.0
|
|
offset_bottom = 1062.0
|
|
theme_override_constants/separation = 10
|
|
|
|
[node name="HairPanel" type="PanelContainer" parent="VBoxContainer2"]
|
|
layout_mode = 2
|
|
|
|
[node name="MarginContainer" type="MarginContainer" parent="VBoxContainer2/HairPanel"]
|
|
layout_mode = 2
|
|
theme_override_constants/margin_left = 25
|
|
theme_override_constants/margin_top = 25
|
|
theme_override_constants/margin_right = 25
|
|
theme_override_constants/margin_bottom = 25
|
|
|
|
[node name="HBoxContainer" type="VBoxContainer" parent="VBoxContainer2/HairPanel/MarginContainer"]
|
|
layout_mode = 2
|
|
|
|
[node name="Label" type="Label" parent="VBoxContainer2/HairPanel/MarginContainer/HBoxContainer"]
|
|
layout_mode = 2
|
|
theme_override_font_sizes/font_size = 48
|
|
text = "Hair"
|
|
horizontal_alignment = 1
|
|
|
|
[node name="HairGrid" type="GridContainer" parent="VBoxContainer2/HairPanel/MarginContainer/HBoxContainer"]
|
|
layout_mode = 2
|
|
theme_override_constants/h_separation = 20
|
|
theme_override_constants/v_separation = 20
|
|
columns = 5
|
|
|
|
[node name="BlondeButton" type="TextureButton" parent="VBoxContainer2/HairPanel/MarginContainer/HBoxContainer/HairGrid"]
|
|
custom_minimum_size = Vector2(100, 100)
|
|
layout_mode = 2
|
|
texture_normal = SubResource("GradientTexture1D_6y6h7")
|
|
ignore_texture_size = true
|
|
stretch_mode = 0
|
|
|
|
[node name="BrownButton" type="TextureButton" parent="VBoxContainer2/HairPanel/MarginContainer/HBoxContainer/HairGrid"]
|
|
custom_minimum_size = Vector2(100, 100)
|
|
layout_mode = 2
|
|
texture_normal = SubResource("GradientTexture1D_uwnmi")
|
|
ignore_texture_size = true
|
|
stretch_mode = 0
|
|
|
|
[node name="RedButton" type="TextureButton" parent="VBoxContainer2/HairPanel/MarginContainer/HBoxContainer/HairGrid"]
|
|
custom_minimum_size = Vector2(100, 100)
|
|
layout_mode = 2
|
|
texture_normal = SubResource("GradientTexture1D_72sxj")
|
|
ignore_texture_size = true
|
|
stretch_mode = 0
|
|
|
|
[node name="BlackButton" type="TextureButton" parent="VBoxContainer2/HairPanel/MarginContainer/HBoxContainer/HairGrid"]
|
|
custom_minimum_size = Vector2(100, 100)
|
|
layout_mode = 2
|
|
texture_normal = SubResource("GradientTexture1D_ac3np")
|
|
ignore_texture_size = true
|
|
stretch_mode = 0
|
|
|
|
[node name="BlueButton" type="TextureButton" parent="VBoxContainer2/HairPanel/MarginContainer/HBoxContainer/HairGrid"]
|
|
custom_minimum_size = Vector2(100, 100)
|
|
layout_mode = 2
|
|
texture_normal = SubResource("GradientTexture1D_5l84q")
|
|
ignore_texture_size = true
|
|
stretch_mode = 0
|
|
|
|
[node name="SilverButton" type="TextureButton" parent="VBoxContainer2/HairPanel/MarginContainer/HBoxContainer/HairGrid"]
|
|
custom_minimum_size = Vector2(100, 100)
|
|
layout_mode = 2
|
|
texture_normal = SubResource("GradientTexture1D_6y6h7")
|
|
ignore_texture_size = true
|
|
stretch_mode = 0
|
|
|
|
[node name="SkinPanel" type="PanelContainer" parent="VBoxContainer2"]
|
|
layout_mode = 2
|
|
|
|
[node name="MarginContainer" type="MarginContainer" parent="VBoxContainer2/SkinPanel"]
|
|
layout_mode = 2
|
|
theme_override_constants/margin_left = 25
|
|
theme_override_constants/margin_top = 25
|
|
theme_override_constants/margin_right = 25
|
|
theme_override_constants/margin_bottom = 25
|
|
|
|
[node name="HBoxContainer" type="VBoxContainer" parent="VBoxContainer2/SkinPanel/MarginContainer"]
|
|
layout_mode = 2
|
|
|
|
[node name="Label" type="Label" parent="VBoxContainer2/SkinPanel/MarginContainer/HBoxContainer"]
|
|
layout_mode = 2
|
|
theme_override_font_sizes/font_size = 48
|
|
text = "Skin"
|
|
horizontal_alignment = 1
|
|
|
|
[node name="SkinGrid" type="GridContainer" parent="VBoxContainer2/SkinPanel/MarginContainer/HBoxContainer"]
|
|
custom_minimum_size = Vector2(0, 220)
|
|
layout_mode = 2
|
|
theme_override_constants/h_separation = 20
|
|
theme_override_constants/v_separation = 20
|
|
columns = 5
|
|
|
|
[node name="PaleButton" type="TextureButton" parent="VBoxContainer2/SkinPanel/MarginContainer/HBoxContainer/SkinGrid"]
|
|
custom_minimum_size = Vector2(100, 100)
|
|
layout_mode = 2
|
|
texture_normal = SubResource("GradientTexture1D_6y6h7")
|
|
ignore_texture_size = true
|
|
stretch_mode = 0
|
|
|
|
[node name="MediumButton" type="TextureButton" parent="VBoxContainer2/SkinPanel/MarginContainer/HBoxContainer/SkinGrid"]
|
|
custom_minimum_size = Vector2(100, 100)
|
|
layout_mode = 2
|
|
texture_normal = SubResource("GradientTexture1D_6y6h7")
|
|
ignore_texture_size = true
|
|
stretch_mode = 0
|
|
|
|
[node name="OliveButton" type="TextureButton" parent="VBoxContainer2/SkinPanel/MarginContainer/HBoxContainer/SkinGrid"]
|
|
custom_minimum_size = Vector2(100, 100)
|
|
layout_mode = 2
|
|
texture_normal = SubResource("GradientTexture1D_6y6h7")
|
|
ignore_texture_size = true
|
|
stretch_mode = 0
|
|
|
|
[node name="BrownButton" type="TextureButton" parent="VBoxContainer2/SkinPanel/MarginContainer/HBoxContainer/SkinGrid"]
|
|
custom_minimum_size = Vector2(100, 100)
|
|
layout_mode = 2
|
|
texture_normal = SubResource("GradientTexture1D_6y6h7")
|
|
ignore_texture_size = true
|
|
stretch_mode = 0
|
|
|
|
[node name="RedButton" type="TextureButton" parent="VBoxContainer2/SkinPanel/MarginContainer/HBoxContainer/SkinGrid"]
|
|
custom_minimum_size = Vector2(100, 100)
|
|
layout_mode = 2
|
|
texture_normal = SubResource("GradientTexture1D_6y6h7")
|
|
ignore_texture_size = true
|
|
stretch_mode = 0
|
|
|
|
[node name="BlueButton" type="TextureButton" parent="VBoxContainer2/SkinPanel/MarginContainer/HBoxContainer/SkinGrid"]
|
|
custom_minimum_size = Vector2(100, 100)
|
|
layout_mode = 2
|
|
texture_normal = SubResource("GradientTexture1D_6y6h7")
|
|
ignore_texture_size = true
|
|
stretch_mode = 0
|
|
|
|
[node name="EyePanel" type="PanelContainer" parent="VBoxContainer2"]
|
|
layout_mode = 2
|
|
|
|
[node name="MarginContainer" type="MarginContainer" parent="VBoxContainer2/EyePanel"]
|
|
layout_mode = 2
|
|
theme_override_constants/margin_left = 25
|
|
theme_override_constants/margin_top = 25
|
|
theme_override_constants/margin_right = 25
|
|
theme_override_constants/margin_bottom = 25
|
|
|
|
[node name="HBoxContainer" type="VBoxContainer" parent="VBoxContainer2/EyePanel/MarginContainer"]
|
|
layout_mode = 2
|
|
|
|
[node name="Label" type="Label" parent="VBoxContainer2/EyePanel/MarginContainer/HBoxContainer"]
|
|
layout_mode = 2
|
|
theme_override_font_sizes/font_size = 48
|
|
text = "Eye"
|
|
horizontal_alignment = 1
|
|
|
|
[node name="HairGrid" type="GridContainer" parent="VBoxContainer2/EyePanel/MarginContainer/HBoxContainer"]
|
|
layout_mode = 2
|
|
theme_override_constants/h_separation = 20
|
|
theme_override_constants/v_separation = 20
|
|
columns = 5
|
|
|
|
[node name="BlondHairButton" type="TextureButton" parent="VBoxContainer2/EyePanel/MarginContainer/HBoxContainer/HairGrid"]
|
|
custom_minimum_size = Vector2(100, 100)
|
|
layout_mode = 2
|
|
texture_normal = SubResource("GradientTexture1D_6y6h7")
|
|
ignore_texture_size = true
|
|
stretch_mode = 0
|
|
|
|
[node name="BrownHairButton" type="TextureButton" parent="VBoxContainer2/EyePanel/MarginContainer/HBoxContainer/HairGrid"]
|
|
custom_minimum_size = Vector2(100, 100)
|
|
layout_mode = 2
|
|
texture_normal = SubResource("GradientTexture1D_uwnmi")
|
|
ignore_texture_size = true
|
|
stretch_mode = 0
|
|
|
|
[node name="RedHairButton" type="TextureButton" parent="VBoxContainer2/EyePanel/MarginContainer/HBoxContainer/HairGrid"]
|
|
custom_minimum_size = Vector2(100, 100)
|
|
layout_mode = 2
|
|
texture_normal = SubResource("GradientTexture1D_72sxj")
|
|
ignore_texture_size = true
|
|
stretch_mode = 0
|
|
|
|
[node name="BlackHairButton" type="TextureButton" parent="VBoxContainer2/EyePanel/MarginContainer/HBoxContainer/HairGrid"]
|
|
custom_minimum_size = Vector2(100, 100)
|
|
layout_mode = 2
|
|
texture_normal = SubResource("GradientTexture1D_ac3np")
|
|
ignore_texture_size = true
|
|
stretch_mode = 0
|
|
|
|
[node name="BlueHairButton" type="TextureButton" parent="VBoxContainer2/EyePanel/MarginContainer/HBoxContainer/HairGrid"]
|
|
custom_minimum_size = Vector2(100, 100)
|
|
layout_mode = 2
|
|
texture_normal = SubResource("GradientTexture1D_5l84q")
|
|
ignore_texture_size = true
|
|
stretch_mode = 0
|
|
|
|
[node name="BlondHairButton2" type="TextureButton" parent="VBoxContainer2/EyePanel/MarginContainer/HBoxContainer/HairGrid"]
|
|
custom_minimum_size = Vector2(100, 100)
|
|
layout_mode = 2
|
|
texture_normal = SubResource("GradientTexture1D_6y6h7")
|
|
ignore_texture_size = true
|
|
stretch_mode = 0
|
|
|
|
[node name="BrownHairButton2" type="TextureButton" parent="VBoxContainer2/EyePanel/MarginContainer/HBoxContainer/HairGrid"]
|
|
custom_minimum_size = Vector2(100, 100)
|
|
layout_mode = 2
|
|
texture_normal = SubResource("GradientTexture1D_uwnmi")
|
|
ignore_texture_size = true
|
|
stretch_mode = 0
|
|
|
|
[node name="RedHairButton2" type="TextureButton" parent="VBoxContainer2/EyePanel/MarginContainer/HBoxContainer/HairGrid"]
|
|
custom_minimum_size = Vector2(100, 100)
|
|
layout_mode = 2
|
|
texture_normal = SubResource("GradientTexture1D_72sxj")
|
|
ignore_texture_size = true
|
|
stretch_mode = 0
|
|
|
|
[node name="BlackHairButton2" type="TextureButton" parent="VBoxContainer2/EyePanel/MarginContainer/HBoxContainer/HairGrid"]
|
|
custom_minimum_size = Vector2(100, 100)
|
|
layout_mode = 2
|
|
texture_normal = SubResource("GradientTexture1D_ac3np")
|
|
ignore_texture_size = true
|
|
stretch_mode = 0
|
|
|
|
[node name="BlueHairButton2" type="TextureButton" parent="VBoxContainer2/EyePanel/MarginContainer/HBoxContainer/HairGrid"]
|
|
custom_minimum_size = Vector2(100, 100)
|
|
layout_mode = 2
|
|
texture_normal = SubResource("GradientTexture1D_5l84q")
|
|
ignore_texture_size = true
|
|
stretch_mode = 0
|
|
|
|
[connection signal="pressed" from="LeftButton" to="." method="_on_left_button_pressed"]
|
|
[connection signal="pressed" from="UpButton" to="." method="_on_up_button_pressed"]
|
|
[connection signal="pressed" from="DownButton" to="." method="_on_down_button_pressed"]
|
|
[connection signal="pressed" from="RightButton" to="." method="_on_right_button_pressed"]
|
|
[connection signal="pressed" from="VBoxContainer/HBoxContainer/RandomButton" to="." method="_on_random_button_pressed"]
|
|
[connection signal="pressed" from="VBoxContainer/AcceptButton" to="." method="_on_accept_button_pressed"]
|
|
[connection signal="pressed" from="VBoxContainer2/HairPanel/MarginContainer/HBoxContainer/HairGrid/BlondeButton" to="." method="_on_color_pressed" binds= [1, "blonde"]]
|
|
[connection signal="pressed" from="VBoxContainer2/HairPanel/MarginContainer/HBoxContainer/HairGrid/BrownButton" to="." method="_on_color_pressed" binds= [1, "brown"]]
|
|
[connection signal="pressed" from="VBoxContainer2/HairPanel/MarginContainer/HBoxContainer/HairGrid/RedButton" to="." method="_on_color_pressed" binds= [1, "red"]]
|
|
[connection signal="pressed" from="VBoxContainer2/HairPanel/MarginContainer/HBoxContainer/HairGrid/BlackButton" to="." method="_on_color_pressed" binds= [1, "black"]]
|
|
[connection signal="pressed" from="VBoxContainer2/HairPanel/MarginContainer/HBoxContainer/HairGrid/BlueButton" to="." method="_on_color_pressed" binds= [1, "blue"]]
|
|
[connection signal="pressed" from="VBoxContainer2/HairPanel/MarginContainer/HBoxContainer/HairGrid/SilverButton" to="." method="_on_color_pressed" binds= [1, "silver"]]
|
|
[connection signal="pressed" from="VBoxContainer2/SkinPanel/MarginContainer/HBoxContainer/SkinGrid/PaleButton" to="." method="_on_color_pressed" binds= [0, "pale"]]
|
|
[connection signal="pressed" from="VBoxContainer2/SkinPanel/MarginContainer/HBoxContainer/SkinGrid/MediumButton" to="." method="_on_color_pressed" binds= [0, "medium"]]
|
|
[connection signal="pressed" from="VBoxContainer2/SkinPanel/MarginContainer/HBoxContainer/SkinGrid/OliveButton" to="." method="_on_color_pressed" binds= [0, "olive"]]
|
|
[connection signal="pressed" from="VBoxContainer2/SkinPanel/MarginContainer/HBoxContainer/SkinGrid/BrownButton" to="." method="_on_color_pressed" binds= [0, "brown"]]
|
|
[connection signal="pressed" from="VBoxContainer2/SkinPanel/MarginContainer/HBoxContainer/SkinGrid/RedButton" to="." method="_on_color_pressed" binds= [0, "red"]]
|
|
[connection signal="pressed" from="VBoxContainer2/SkinPanel/MarginContainer/HBoxContainer/SkinGrid/BlueButton" to="." method="_on_color_pressed" binds= [0, "blue"]]
|