feat: added dragon colors to editor
This commit is contained in:
		
							parent
							
								
									d8419cb9a4
								
							
						
					
					
						commit
						409b7b5955
					
				
					 15 changed files with 114 additions and 120 deletions
				
			
		| 
						 | 
				
			
			@ -1,9 +1,10 @@
 | 
			
		|||
[gd_scene load_steps=10 format=3 uid="uid://fut42ruut302"]
 | 
			
		||||
[gd_scene load_steps=11 format=3 uid="uid://fut42ruut302"]
 | 
			
		||||
 | 
			
		||||
[ext_resource type="Script" uid="uid://bfuos2kgfgber" path="res://scenes/dragon_editor/dragon_editor.gd" id="1_8vkll"]
 | 
			
		||||
[ext_resource type="Resource" uid="uid://cnhwn6kfcbjl5" path="res://assets/outfits/hats.tres" id="2_vvtct"]
 | 
			
		||||
[ext_resource type="Resource" uid="uid://etegcak2sphs" path="res://assets/outfits/shirts.tres" id="3_xhgxf"]
 | 
			
		||||
[ext_resource type="Resource" uid="uid://ba5684xylts3f" path="res://assets/outfits/shoes.tres" id="4_1ivi1"]
 | 
			
		||||
[ext_resource type="Resource" uid="uid://bcs60f2k7h0jc" path="res://assets/outfits/dragons.tres" id="5_1ivi1"]
 | 
			
		||||
[ext_resource type="Texture2D" uid="uid://dl87ffgh2hl68" path="res://assets/sprites/dragons/DragonPet_drac01.png" id="5_xhgxf"]
 | 
			
		||||
[ext_resource type="Texture2D" uid="uid://12fv5nymaljj" path="res://assets/sprites/hats/DragonPet_barret_barretina.png" id="6_1ivi1"]
 | 
			
		||||
[ext_resource type="Texture2D" uid="uid://cs0ke244c33t2" path="res://assets/sprites/shirts/DragonPet_roba_armadura.png" id="7_giwys"]
 | 
			
		||||
| 
						 | 
				
			
			@ -20,29 +21,71 @@ script = ExtResource("1_8vkll")
 | 
			
		|||
hat_outfits = ExtResource("2_vvtct")
 | 
			
		||||
shirt_outfits = ExtResource("3_xhgxf")
 | 
			
		||||
shoes_outfits = ExtResource("4_1ivi1")
 | 
			
		||||
dragon_colors = ExtResource("5_1ivi1")
 | 
			
		||||
 | 
			
		||||
[node name="CanvasLayer" type="CanvasLayer" parent="."]
 | 
			
		||||
 | 
			
		||||
[node name="VBoxContainer" type="VBoxContainer" parent="CanvasLayer"]
 | 
			
		||||
anchors_preset = 1
 | 
			
		||||
anchor_left = 1.0
 | 
			
		||||
anchor_right = 1.0
 | 
			
		||||
offset_left = -89.0
 | 
			
		||||
offset_bottom = 101.0
 | 
			
		||||
grow_horizontal = 0
 | 
			
		||||
 | 
			
		||||
[node name="change_hat" type="Button" parent="CanvasLayer/VBoxContainer"]
 | 
			
		||||
layout_mode = 2
 | 
			
		||||
[node name="change_hat" type="Button" parent="CanvasLayer"]
 | 
			
		||||
anchors_preset = 8
 | 
			
		||||
anchor_left = 0.5
 | 
			
		||||
anchor_top = 0.5
 | 
			
		||||
anchor_right = 0.5
 | 
			
		||||
anchor_bottom = 0.5
 | 
			
		||||
offset_left = -130.0
 | 
			
		||||
offset_top = -206.0
 | 
			
		||||
offset_right = -62.0
 | 
			
		||||
offset_bottom = -175.0
 | 
			
		||||
grow_horizontal = 2
 | 
			
		||||
grow_vertical = 2
 | 
			
		||||
focus_mode = 0
 | 
			
		||||
text = "barret"
 | 
			
		||||
 | 
			
		||||
[node name="change_shirt" type="Button" parent="CanvasLayer/VBoxContainer"]
 | 
			
		||||
layout_mode = 2
 | 
			
		||||
[node name="change_shirt" type="Button" parent="CanvasLayer"]
 | 
			
		||||
anchors_preset = 8
 | 
			
		||||
anchor_left = 0.5
 | 
			
		||||
anchor_top = 0.5
 | 
			
		||||
anchor_right = 0.5
 | 
			
		||||
anchor_bottom = 0.5
 | 
			
		||||
offset_left = -47.0
 | 
			
		||||
offset_top = -242.0
 | 
			
		||||
offset_right = 42.0
 | 
			
		||||
offset_bottom = -211.0
 | 
			
		||||
grow_horizontal = 2
 | 
			
		||||
grow_vertical = 2
 | 
			
		||||
focus_mode = 0
 | 
			
		||||
text = "samarreta"
 | 
			
		||||
 | 
			
		||||
[node name="change_shoes" type="Button" parent="CanvasLayer/VBoxContainer"]
 | 
			
		||||
layout_mode = 2
 | 
			
		||||
[node name="change_shoes" type="Button" parent="CanvasLayer"]
 | 
			
		||||
anchors_preset = 8
 | 
			
		||||
anchor_left = 0.5
 | 
			
		||||
anchor_top = 0.5
 | 
			
		||||
anchor_right = 0.5
 | 
			
		||||
anchor_bottom = 0.5
 | 
			
		||||
offset_left = 54.0
 | 
			
		||||
offset_top = -206.0
 | 
			
		||||
offset_right = 114.0
 | 
			
		||||
offset_bottom = -175.0
 | 
			
		||||
grow_horizontal = 2
 | 
			
		||||
grow_vertical = 2
 | 
			
		||||
focus_mode = 0
 | 
			
		||||
text = "sabata"
 | 
			
		||||
 | 
			
		||||
[node name="dragon_previous" type="Button" parent="CanvasLayer"]
 | 
			
		||||
offset_left = 40.0
 | 
			
		||||
offset_top = 232.0
 | 
			
		||||
offset_right = 58.0
 | 
			
		||||
offset_bottom = 263.0
 | 
			
		||||
focus_mode = 0
 | 
			
		||||
text = "<"
 | 
			
		||||
 | 
			
		||||
[node name="dragon_next" type="Button" parent="CanvasLayer"]
 | 
			
		||||
offset_left = 235.0
 | 
			
		||||
offset_top = 232.0
 | 
			
		||||
offset_right = 253.0
 | 
			
		||||
offset_bottom = 263.0
 | 
			
		||||
focus_mode = 0
 | 
			
		||||
text = ">"
 | 
			
		||||
 | 
			
		||||
[node name="create" type="Button" parent="CanvasLayer"]
 | 
			
		||||
anchors_preset = 3
 | 
			
		||||
anchor_left = 1.0
 | 
			
		||||
| 
						 | 
				
			
			@ -53,6 +96,7 @@ offset_left = -42.0
 | 
			
		|||
offset_top = -31.0
 | 
			
		||||
grow_horizontal = 0
 | 
			
		||||
grow_vertical = 0
 | 
			
		||||
focus_mode = 0
 | 
			
		||||
text = "crea"
 | 
			
		||||
 | 
			
		||||
[node name="Dragon" type="TextureRect" parent="CanvasLayer"]
 | 
			
		||||
| 
						 | 
				
			
			@ -125,7 +169,9 @@ max_length = 8
 | 
			
		|||
script = ExtResource("9_xhgxf")
 | 
			
		||||
 | 
			
		||||
[connection signal="close_requested" from="." to="." method="_on_close_requested"]
 | 
			
		||||
[connection signal="pressed" from="CanvasLayer/VBoxContainer/change_hat" to="." method="_on_change_hat_pressed"]
 | 
			
		||||
[connection signal="pressed" from="CanvasLayer/VBoxContainer/change_shirt" to="." method="_on_change_shirt_pressed"]
 | 
			
		||||
[connection signal="pressed" from="CanvasLayer/VBoxContainer/change_shoes" to="." method="_on_change_shoes_pressed"]
 | 
			
		||||
[connection signal="pressed" from="CanvasLayer/change_hat" to="." method="_on_change_hat_pressed"]
 | 
			
		||||
[connection signal="pressed" from="CanvasLayer/change_shirt" to="." method="_on_change_shirt_pressed"]
 | 
			
		||||
[connection signal="pressed" from="CanvasLayer/change_shoes" to="." method="_on_change_shoes_pressed"]
 | 
			
		||||
[connection signal="pressed" from="CanvasLayer/dragon_previous" to="." method="_on_previous_color_pressed"]
 | 
			
		||||
[connection signal="pressed" from="CanvasLayer/dragon_next" to="." method="_on_next_color_pressed"]
 | 
			
		||||
[connection signal="pressed" from="CanvasLayer/create" to="." method="_on_create_pressed"]
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue