1
0
Fork 0
mirror of https://github.com/tonytins/dressupzack synced 2025-12-18 12:54:43 -05:00

WIP: change outfits on click, no drag and drop

This commit is contained in:
Anthony Wilcox 2019-01-03 02:43:40 -05:00
parent 8a501d50b3
commit 002a35bd1b
42 changed files with 552 additions and 63 deletions

View file

@ -1,8 +1,8 @@
[gd_scene load_steps=17 format=2]
[gd_scene load_steps=20 format=2]
[ext_resource path="res://assets/briefs.png" type="Texture" id=1]
[ext_resource path="res://src/ItemDrag.gd" type="Script" id=2]
[ext_resource path="res://assets/undies.png" type="Texture" id=3]
[ext_resource path="res://src/Clothes.gd" type="Script" id=1]
[ext_resource path="res://assets/briefs.png" type="Texture" id=2]
[ext_resource path="res://assets/zbriefs.png" type="Texture" id=3]
[ext_resource path="res://assets/jeans.png" type="Texture" id=4]
[ext_resource path="res://assets/dj shorts.png" type="Texture" id=5]
[ext_resource path="res://assets/sweat pants.png" type="Texture" id=6]
@ -11,13 +11,18 @@
[ext_resource path="res://assets/raw shirt.png" type="Texture" id=9]
[ext_resource path="res://assets/atomic shirt.png" type="Texture" id=10]
[ext_resource path="res://assets/snowboard coat.png" type="Texture" id=11]
[ext_resource path="res://assets/trench coat.png" type="Texture" id=12]
[ext_resource path="res://assets/blue tux.png" type="Texture" id=13]
[ext_resource path="res://assets/jp school girl.png" type="Texture" id=14]
[ext_resource path="res://assets/camera.png" type="Texture" id=15]
[ext_resource path="res://assets/owo censor.png" type="Texture" id=16]
[ext_resource path="res://src/ItemDrag.gd" type="Script" id=12]
[ext_resource path="res://assets/trench coat.png" type="Texture" id=13]
[ext_resource path="res://assets/blue tux.png" type="Texture" id=14]
[ext_resource path="res://assets/jp school girl.png" type="Texture" id=15]
[ext_resource path="res://assets/camera.png" type="Texture" id=16]
[ext_resource path="res://assets/owo censor.png" type="Texture" id=17]
[ext_resource path="res://assets/bottoms_placeholder.png" type="Texture" id=18]
[ext_resource path="res://assets/tops_placeholder.png" type="Texture" id=19]
[node name="Clothes" type="Node"]
[node name="Clothes" type="Node" index="0"]
script = ExtResource( 1 )
[node name="Wordrobe" type="ReferenceRect" parent="." index="0"]
@ -44,10 +49,10 @@ anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_left = 542.0
margin_top = 302.0
margin_right = 608.0
margin_bottom = 345.0
margin_left = 506.0
margin_top = 291.0
margin_right = 612.0
margin_bottom = 403.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
focus_mode = 2
@ -59,8 +64,7 @@ toggle_mode = false
enabled_focus_mode = 2
shortcut = null
group = null
texture_normal = ExtResource( 1 )
script = ExtResource( 2 )
texture_normal = ExtResource( 2 )
[node name="ZBriefs" type="TextureButton" parent="Wordrobe/Underwear" index="1"]
@ -68,10 +72,10 @@ anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_left = 543.0
margin_top = 350.0
margin_right = 609.0
margin_bottom = 393.0
margin_left = 963.0
margin_top = 360.0
margin_right = 1069.0
margin_bottom = 472.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
focus_mode = 2
@ -84,7 +88,6 @@ enabled_focus_mode = 2
shortcut = null
group = null
texture_normal = ExtResource( 3 )
script = ExtResource( 2 )
_sections_unfolded = [ "Textures" ]
[node name="Bottoms" type="Node" parent="Wordrobe" index="1"]
@ -111,7 +114,6 @@ enabled_focus_mode = 2
shortcut = null
group = null
texture_normal = ExtResource( 4 )
script = ExtResource( 2 )
_sections_unfolded = [ "Textures" ]
[node name="DJ Shorts" type="TextureButton" parent="Wordrobe/Bottoms" index="1"]
@ -122,8 +124,8 @@ anchor_right = 0.0
anchor_bottom = 0.0
margin_left = 639.0
margin_top = 286.0
margin_right = 735.0
margin_bottom = 379.0
margin_right = 745.0
margin_bottom = 398.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
focus_mode = 2
@ -136,7 +138,6 @@ enabled_focus_mode = 2
shortcut = null
group = null
texture_normal = ExtResource( 5 )
script = ExtResource( 2 )
_sections_unfolded = [ "Anchor", "Textures" ]
[node name="Sweats" type="TextureButton" parent="Wordrobe/Bottoms" index="2"]
@ -145,10 +146,10 @@ anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_left = 485.0
margin_top = 405.0
margin_right = 591.0
margin_bottom = 517.0
margin_left = 499.0
margin_top = 389.0
margin_right = 605.0
margin_bottom = 501.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
focus_mode = 2
@ -161,7 +162,6 @@ enabled_focus_mode = 2
shortcut = null
group = null
texture_normal = ExtResource( 6 )
script = ExtResource( 2 )
_sections_unfolded = [ "Textures" ]
[node name="Tops" type="Node" parent="Wordrobe" index="2"]
@ -188,7 +188,6 @@ enabled_focus_mode = 2
shortcut = null
group = null
texture_normal = ExtResource( 7 )
script = ExtResource( 2 )
_sections_unfolded = [ "Textures" ]
[node name="DJ Shirt" type="TextureButton" parent="Wordrobe/Tops" index="1"]
@ -213,7 +212,6 @@ enabled_focus_mode = 2
shortcut = null
group = null
texture_normal = ExtResource( 8 )
script = ExtResource( 2 )
_sections_unfolded = [ "Textures" ]
[node name="Raw" type="TextureButton" parent="Wordrobe/Tops" index="2"]
@ -224,7 +222,7 @@ anchor_right = 0.0
anchor_bottom = 0.0
margin_left = 533.0
margin_top = 177.0
margin_right = 614.0
margin_right = 618.0
margin_bottom = 290.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
@ -238,10 +236,9 @@ enabled_focus_mode = 2
shortcut = null
group = null
texture_normal = ExtResource( 9 )
script = ExtResource( 2 )
_sections_unfolded = [ "Textures" ]
[node name="Biker" type="TextureButton" parent="Wordrobe/Tops" index="3"]
[node name="Atomic" type="TextureButton" parent="Wordrobe/Tops" index="3"]
anchor_left = 0.0
anchor_top = 0.0
@ -263,7 +260,6 @@ enabled_focus_mode = 2
shortcut = null
group = null
texture_normal = ExtResource( 10 )
script = ExtResource( 2 )
_sections_unfolded = [ "Textures" ]
[node name="Outfits" type="Node" parent="Wordrobe" index="3"]
@ -290,7 +286,7 @@ enabled_focus_mode = 2
shortcut = null
group = null
texture_normal = ExtResource( 11 )
script = ExtResource( 2 )
script = ExtResource( 12 )
_sections_unfolded = [ "Textures" ]
[node name="Trench Coat" type="TextureButton" parent="Wordrobe/Outfits" index="1"]
@ -314,8 +310,8 @@ toggle_mode = false
enabled_focus_mode = 2
shortcut = null
group = null
texture_normal = ExtResource( 12 )
script = ExtResource( 2 )
texture_normal = ExtResource( 13 )
script = ExtResource( 12 )
_sections_unfolded = [ "Textures" ]
[node name="Blue Tux" type="TextureButton" parent="Wordrobe/Outfits" index="2"]
@ -339,8 +335,8 @@ toggle_mode = false
enabled_focus_mode = 2
shortcut = null
group = null
texture_normal = ExtResource( 13 )
script = ExtResource( 2 )
texture_normal = ExtResource( 14 )
script = ExtResource( 12 )
_sections_unfolded = [ "Textures" ]
[node name="School Girl" type="TextureButton" parent="Wordrobe/Outfits" index="3"]
@ -364,8 +360,8 @@ toggle_mode = false
enabled_focus_mode = 2
shortcut = null
group = null
texture_normal = ExtResource( 14 )
script = ExtResource( 2 )
texture_normal = ExtResource( 15 )
script = ExtResource( 12 )
_sections_unfolded = [ "Textures" ]
[node name="Accessories" type="Node" parent="Wordrobe" index="4"]
@ -391,8 +387,8 @@ toggle_mode = false
enabled_focus_mode = 2
shortcut = null
group = null
texture_normal = ExtResource( 15 )
script = ExtResource( 2 )
texture_normal = ExtResource( 16 )
script = ExtResource( 12 )
_sections_unfolded = [ "Textures" ]
[node name="OwO Censor" type="TextureButton" parent="Wordrobe/Accessories" index="1"]
@ -416,35 +412,54 @@ toggle_mode = false
enabled_focus_mode = 2
shortcut = null
group = null
texture_normal = ExtResource( 16 )
script = ExtResource( 2 )
texture_normal = ExtResource( 17 )
script = ExtResource( 12 )
_sections_unfolded = [ "Textures" ]
[connection signal="gui_input" from="Wordrobe/Underwear/Briefs" to="Wordrobe/Underwear/Briefs" method="_on_outfit_gui_input"]
[node name="Body" type="ReferenceRect" parent="." index="1"]
[connection signal="gui_input" from="Wordrobe/Underwear/ZBriefs" to="Wordrobe/Underwear/ZBriefs" method="_on_outfit_gui_input"]
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_left = 26.0
margin_top = 297.0
margin_right = 144.0
margin_bottom = 519.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
mouse_filter = 0
mouse_default_cursor_shape = 0
size_flags_horizontal = 1
size_flags_vertical = 1
[connection signal="gui_input" from="Wordrobe/Bottoms/Jeans" to="Wordrobe/Bottoms/Jeans" method="_on_outfit_gui_input"]
[node name="Bottom" type="Sprite" parent="Body" index="0"]
[connection signal="gui_input" from="Wordrobe/Bottoms/DJ Shorts" to="Wordrobe/Bottoms/DJ Shorts" method="_on_outfit_gui_input"]
position = Vector2( 57.9419, 144.296 )
texture = ExtResource( 18 )
[connection signal="gui_input" from="Wordrobe/Bottoms/Sweats" to="Wordrobe/Bottoms/Sweats" method="_on_outfit_gui_input"]
[node name="Top" type="Sprite" parent="Body" index="1"]
[connection signal="gui_input" from="Wordrobe/Tops/Sweatshirt" to="Wordrobe/Tops/Sweatshirt" method="_on_outfit_gui_input"]
position = Vector2( 64.0597, 55.3242 )
texture = ExtResource( 19 )
[connection signal="gui_input" from="Wordrobe/Tops/DJ Shirt" to="Wordrobe/Tops/DJ Shirt" method="_on_outfit_gui_input"]
[connection signal="pressed" from="Wordrobe/Underwear/Briefs" to="." method="_on_Briefs_pressed"]
[connection signal="gui_input" from="Wordrobe/Tops/Raw" to="Wordrobe/Tops/Raw" method="_on_outfit_gui_input"]
[connection signal="pressed" from="Wordrobe/Underwear/ZBriefs" to="." method="_on_ZBriefs_pressed"]
[connection signal="gui_input" from="Wordrobe/Tops/Biker" to="Wordrobe/Tops/Biker" method="_on_outfit_gui_input"]
[connection signal="pressed" from="Wordrobe/Bottoms/Jeans" to="." method="_on_Jeans_pressed"]
[connection signal="gui_input" from="Wordrobe/Outfits/Snowboard" to="Wordrobe/Outfits/Snowboard" method="_on_outfit_gui_input"]
[connection signal="pressed" from="Wordrobe/Bottoms/DJ Shorts" to="." method="_on_DJ_Shorts_pressed"]
[connection signal="gui_input" from="Wordrobe/Outfits/Trench Coat" to="Wordrobe/Outfits/Trench Coat" method="_on_outfit_gui_input"]
[connection signal="pressed" from="Wordrobe/Bottoms/Sweats" to="." method="_on_Sweats_pressed"]
[connection signal="gui_input" from="Wordrobe/Outfits/Blue Tux" to="Wordrobe/Outfits/Blue Tux" method="_on_outfit_gui_input"]
[connection signal="pressed" from="Wordrobe/Tops/Sweatshirt" to="." method="_on_Sweatshirt_pressed"]
[connection signal="gui_input" from="Wordrobe/Outfits/School Girl" to="Wordrobe/Outfits/School Girl" method="_on_outfit_gui_input"]
[connection signal="pressed" from="Wordrobe/Tops/DJ Shirt" to="." method="_on_DJ_Shirt_pressed"]
[connection signal="pressed" from="Wordrobe/Tops/Raw" to="." method="_on_Raw_pressed"]
[connection signal="pressed" from="Wordrobe/Tops/Atomic" to="." method="_on_Atomic_pressed"]
[connection signal="gui_input" from="Wordrobe/Accessories/Camera" to="Wordrobe/Accessories/Camera" method="_on_outfit_gui_input"]