mirror of
https://github.com/tonytins/dressupzack
synced 2025-06-25 16:14:43 -04:00
WIP decoupling clothing buttons
Couldn't think of a better title. Anyway, the current system is repeitive and redundent. While it works, it's not by means ideal. Because you have to manually write in a new condiation for every new clothing added. What makes it redundant is the fact that every clothing functions exactly the same. The only difference is in the layers it uses.
This commit is contained in:
parent
bfd678a1de
commit
721e2ab858
24 changed files with 132 additions and 84 deletions
BIN
resources/Game.theme
Normal file
BIN
resources/Game.theme
Normal file
Binary file not shown.
11
resources/KBlueBtnDisabled.tres
Normal file
11
resources/KBlueBtnDisabled.tres
Normal file
|
@ -0,0 +1,11 @@
|
|||
[gd_resource type="StyleBoxTexture" load_steps=2 format=2]
|
||||
|
||||
[ext_resource path="res://sprites/ui/blue_button10.png" type="Texture" id=1]
|
||||
|
||||
[resource]
|
||||
texture = ExtResource( 1 )
|
||||
region_rect = Rect2( 0, 0, 49, 45 )
|
||||
margin_left = 5.0
|
||||
margin_right = 5.0
|
||||
margin_top = 5.0
|
||||
margin_bottom = 10.0
|
11
resources/KBlueBtnNormal.tres
Normal file
11
resources/KBlueBtnNormal.tres
Normal file
|
@ -0,0 +1,11 @@
|
|||
[gd_resource type="StyleBoxTexture" load_steps=2 format=2]
|
||||
|
||||
[ext_resource path="res://sprites/ui/blue_button03.png" type="Texture" id=1]
|
||||
|
||||
[resource]
|
||||
texture = ExtResource( 1 )
|
||||
region_rect = Rect2( 0, 0, 190, 45 )
|
||||
margin_left = 5.0
|
||||
margin_right = 5.0
|
||||
margin_top = 5.0
|
||||
margin_bottom = 10.0
|
11
resources/KBlueBtnPressed.tres
Normal file
11
resources/KBlueBtnPressed.tres
Normal file
|
@ -0,0 +1,11 @@
|
|||
[gd_resource type="StyleBoxTexture" load_steps=2 format=2]
|
||||
|
||||
[ext_resource path="res://sprites/ui/blue_button00.png" type="Texture" id=1]
|
||||
|
||||
[resource]
|
||||
texture = ExtResource( 1 )
|
||||
region_rect = Rect2( 0, 0, 190, 49 )
|
||||
margin_left = 5.0
|
||||
margin_right = 5.0
|
||||
margin_top = 5.0
|
||||
margin_bottom = 10.0
|
11
resources/KGreyPanel.tres
Normal file
11
resources/KGreyPanel.tres
Normal file
|
@ -0,0 +1,11 @@
|
|||
[gd_resource type="StyleBoxTexture" load_steps=2 format=2]
|
||||
|
||||
[ext_resource path="res://sprites/ui/grey_panel.png" type="Texture" id=1]
|
||||
|
||||
[resource]
|
||||
texture = ExtResource( 1 )
|
||||
region_rect = Rect2( 0, 0, 100, 100 )
|
||||
margin_left = 5.0
|
||||
margin_right = 5.0
|
||||
margin_top = 5.0
|
||||
margin_bottom = 10.0
|
6
resources/character.tres
Normal file
6
resources/character.tres
Normal file
|
@ -0,0 +1,6 @@
|
|||
[gd_resource type="Resource" load_steps=2 format=2]
|
||||
|
||||
[ext_resource path="res://scripts/character.gd" type="Script" id=1]
|
||||
|
||||
[resource]
|
||||
script = ExtResource( 1 )
|
Loading…
Add table
Add a link
Reference in a new issue