Pack some texture, start work on draft ui

This commit is contained in:
Hamcha 2019-06-07 02:02:07 +02:00
parent 0bcbd57b0d
commit f74b53993a
Signed by: hamcha
GPG Key ID: A40413D21021EAEE
66 changed files with 446 additions and 537 deletions

Binary file not shown.

BIN
AssetSrc/draftbg.afphoto Normal file

Binary file not shown.

BIN
AssetSrc/icons.afphoto Normal file

Binary file not shown.

BIN
AssetSrc/races.afphoto Normal file

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 MiB

After

Width:  |  Height:  |  Size: 556 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 326 KiB

View File

@ -2,15 +2,15 @@
importer="texture"
type="StreamTexture"
path="res://.import/race-ally.png-5d358c96e8d74382fa7a61d961bd1f51.stex"
path="res://.import/hall.png-ab06c7a881e71434043816d73db7a17c.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://MLPAssets/Icons/Races/race-ally.png"
dest_files=[ "res://.import/race-ally.png-5d358c96e8d74382fa7a61d961bd1f51.stex" ]
source_file="res://MLPAssets/Background/hall.png"
dest_files=[ "res://.import/hall.png-ab06c7a881e71434043816d73db7a17c.stex" ]
[params]

Binary file not shown.

After

Width:  |  Height:  |  Size: 55 KiB

View File

@ -2,15 +2,15 @@
importer="texture"
type="StreamTexture"
path="res://.import/Generosity_Symbol.png-36f38666d9559e86136c3a2fa5c4828e.stex"
path="res://.import/type-troublemaker.png-135d0f7b0908dc45bf220c73620f5a00.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://MLPAssets/Icons/Elements/Generosity_Symbol.png"
dest_files=[ "res://.import/Generosity_Symbol.png-36f38666d9559e86136c3a2fa5c4828e.stex" ]
source_file="res://MLPAssets/Icons/CardType/type-troublemaker.png"
dest_files=[ "res://.import/type-troublemaker.png-135d0f7b0908dc45bf220c73620f5a00.stex" ]
[params]

Binary file not shown.

After

Width:  |  Height:  |  Size: 63 KiB

View File

@ -2,15 +2,15 @@
importer="texture"
type="StreamTexture"
path="res://.import/race-alicorn.png-f05bea165abb58c5864208516d677a1b.stex"
path="res://.import/Elements.png-d45cb501e3e6ea76339ca9ce3a10d3fd.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://MLPAssets/Icons/Races/race-alicorn.png"
dest_files=[ "res://.import/race-alicorn.png-f05bea165abb58c5864208516d677a1b.stex" ]
source_file="res://MLPAssets/Icons/Elements.png"
dest_files=[ "res://.import/Elements.png-d45cb501e3e6ea76339ca9ce3a10d3fd.stex" ]
[params]
@ -21,7 +21,7 @@ compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/mipmaps=true
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
@ -30,5 +30,5 @@ process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
detect_3d=false
svg/scale=1.0

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

View File

@ -1,34 +0,0 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/Generosity_Power_Icon.png-6a00e0a199f44405c844dd9b79597da8.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://MLPAssets/Icons/Elements/Generosity_Power_Icon.png"
dest_files=[ "res://.import/Generosity_Power_Icon.png-6a00e0a199f44405c844dd9b79597da8.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

View File

@ -1,34 +0,0 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/Honesty_Power_Icon.png-710516fd973d27bd184fa6d6fb571eaa.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://MLPAssets/Icons/Elements/Honesty_Power_Icon.png"
dest_files=[ "res://.import/Honesty_Power_Icon.png-710516fd973d27bd184fa6d6fb571eaa.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

View File

@ -1,34 +0,0 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/Honesty_Symbol.png-2c209dcbc79868ac421ca41b5b9b51df.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://MLPAssets/Icons/Elements/Honesty_Symbol.png"
dest_files=[ "res://.import/Honesty_Symbol.png-2c209dcbc79868ac421ca41b5b9b51df.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

View File

@ -1,34 +0,0 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/Kindness_Power_Icon.png-b25e6d7ce502d8bf1c0501d266540d72.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://MLPAssets/Icons/Elements/Kindness_Power_Icon.png"
dest_files=[ "res://.import/Kindness_Power_Icon.png-b25e6d7ce502d8bf1c0501d266540d72.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

View File

@ -1,34 +0,0 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/Kindness_Symbol.png-923a34d7ed3784eb0d406cab1bccf2f4.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://MLPAssets/Icons/Elements/Kindness_Symbol.png"
dest_files=[ "res://.import/Kindness_Symbol.png-923a34d7ed3784eb0d406cab1bccf2f4.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

View File

@ -1,34 +0,0 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/Laughter_Power_Icon.png-751d2376c98f0ba50a774005ae7ee45c.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://MLPAssets/Icons/Elements/Laughter_Power_Icon.png"
dest_files=[ "res://.import/Laughter_Power_Icon.png-751d2376c98f0ba50a774005ae7ee45c.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

View File

@ -1,34 +0,0 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/Laughter_Symbol.png-1fc4b1daad70dbf0ba325b0211aada22.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://MLPAssets/Icons/Elements/Laughter_Symbol.png"
dest_files=[ "res://.import/Laughter_Symbol.png-1fc4b1daad70dbf0ba325b0211aada22.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

View File

@ -1,34 +0,0 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/Loyalty_Power_Icon.png-18f43e09481a90d424318b90679b4b01.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://MLPAssets/Icons/Elements/Loyalty_Power_Icon.png"
dest_files=[ "res://.import/Loyalty_Power_Icon.png-18f43e09481a90d424318b90679b4b01.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

View File

@ -1,34 +0,0 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/Loyalty_Symbol.png-6c620fee51100554aca0a7c3fa34af6f.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://MLPAssets/Icons/Elements/Loyalty_Symbol.png"
dest_files=[ "res://.import/Loyalty_Symbol.png-6c620fee51100554aca0a7c3fa34af6f.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

View File

@ -1,34 +0,0 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/Magic_Power_Icon.png-2ef58c3f57ee80424c3eb7466c9eda47.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://MLPAssets/Icons/Elements/Magic_Power_Icon.png"
dest_files=[ "res://.import/Magic_Power_Icon.png-2ef58c3f57ee80424c3eb7466c9eda47.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

View File

@ -1,34 +0,0 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/Magic_Symbol.png-a14b173e4e6b989dcc38390e2d841d0b.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://MLPAssets/Icons/Elements/Magic_Symbol.png"
dest_files=[ "res://.import/Magic_Symbol.png-a14b173e4e6b989dcc38390e2d841d0b.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

Binary file not shown.

Before

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

View File

@ -1,34 +0,0 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/race-critter.png-7a314d4df7f5f776dc925fc33b76bd34.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://MLPAssets/Icons/Races/race-critter.png"
dest_files=[ "res://.import/race-critter.png-7a314d4df7f5f776dc925fc33b76bd34.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 25 KiB

View File

@ -1,34 +0,0 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/race-earthpony.png-df4da6e787db0f5509283ca95aa52579.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://MLPAssets/Icons/Races/race-earthpony.png"
dest_files=[ "res://.import/race-earthpony.png-df4da6e787db0f5509283ca95aa52579.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

Binary file not shown.

Before

Width:  |  Height:  |  Size: 29 KiB

View File

@ -1,34 +0,0 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/race-pegasus.png-fb3b30815350ffc4ed1803cac3818372.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://MLPAssets/Icons/Races/race-pegasus.png"
dest_files=[ "res://.import/race-pegasus.png-fb3b30815350ffc4ed1803cac3818372.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

View File

@ -1,34 +0,0 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/race-unicorn.png-16a9663603a93d93ac59ce1f905fcea3.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://MLPAssets/Icons/Races/race-unicorn.png"
dest_files=[ "res://.import/race-unicorn.png-16a9663603a93d93ac59ce1f905fcea3.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

Binary file not shown.

Before

Width:  |  Height:  |  Size: 56 KiB

After

Width:  |  Height:  |  Size: 42 KiB

BIN
MLPAssets/Icons/races.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 146 KiB

View File

@ -2,15 +2,15 @@
importer="texture"
type="StreamTexture"
path="res://.import/race-dragon.png-49a10be879ec7fddaa5d4fcaab67a2f6.stex"
path="res://.import/races.png-55f079546b9dbd0271c82f56257b7a2e.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://MLPAssets/Icons/Races/race-dragon.png"
dest_files=[ "res://.import/race-dragon.png-49a10be879ec7fddaa5d4fcaab67a2f6.stex" ]
source_file="res://MLPAssets/Icons/races.png"
dest_files=[ "res://.import/races.png-55f079546b9dbd0271c82f56257b7a2e.stex" ]
[params]

View File

@ -1,6 +1,6 @@
[gd_scene load_steps=2 format=2]
[ext_resource path="res://Scenes/UI/BGMusic.gd" type="Script" id=1]
[ext_resource path="res://Scenes/Scripts/BGMusic.gd" type="Script" id=1]
[node name="BGM" type="AudioStreamPlayer"]
bus = "BGM"

View File

@ -4,7 +4,7 @@
[ext_resource path="res://Scenes/Scripts/Camera.gd" type="Script" id=2]
[ext_resource path="res://MLPAssets/Background/boardbg.jpg" type="Texture" id=3]
[ext_resource path="res://Scenes/BoardUI.tscn" type="PackedScene" id=4]
[ext_resource path="res://Scenes/Components/Stack.tscn" type="PackedScene" id=5]
[ext_resource path="res://Scenes/Board/Stack.tscn" type="PackedScene" id=5]
[sub_resource type="SpatialMaterial" id=1]
flags_unshaded = true

View File

@ -1,6 +1,6 @@
[gd_scene load_steps=18 format=2]
[ext_resource path="res://Scenes/Components/Card.gd" type="Script" id=1]
[ext_resource path="res://Scenes/Board/Card.gd" type="Script" id=1]
[ext_resource path="res://MLPAssets/Models/cardborder.obj" type="ArrayMesh" id=2]
[ext_resource path="res://MLPAssets/Models/cardborder.material" type="Material" id=3]
[ext_resource path="res://MLPAssets/Placeholders/CardMat.tres" type="Material" id=4]

View File

@ -1,6 +1,7 @@
[gd_scene load_steps=8 format=2]
[ext_resource path="res://Scenes/Components/Stack.gd" type="Script" id=1]
[ext_resource path="res://Scenes/Board/Stack.gd" type="Script" id=1]
[sub_resource type="BoxShape" id=1]
extents = Vector3( 0.424389, 0.0827175, 0.546632 )

View File

@ -1,7 +1,8 @@
[gd_scene load_steps=4 format=2]
[ext_resource path="res://UIAssets/GameBar/phase-icons.png" type="Texture" id=1]
[ext_resource path="res://Scenes/UI/PhaseIcon.gd" type="Script" id=2]
[ext_resource path="res://Scenes/Board/UI/PhaseIcon.gd" type="Script" id=2]
[sub_resource type="AtlasTexture" id=1]
flags = 4

View File

@ -1,7 +1,7 @@
[gd_scene load_steps=5 format=2]
[ext_resource path="res://Scenes/Scripts/BoardUI.gd" type="Script" id=1]
[ext_resource path="res://Scenes/UI/PhaseIcon.tscn" type="PackedScene" id=2]
[ext_resource path="res://Scenes/Board/UI/PhaseIcon.tscn" type="PackedScene" id=2]
[ext_resource path="res://MLPAssets/Placeholders/unknowncard.jpg" type="Texture" id=3]
[sub_resource type="Animation" id=1]

View File

@ -1,7 +1,7 @@
[gd_scene load_steps=3 format=2]
[ext_resource path="res://Scenes/Scripts/DeckBuilder.gd" type="Script" id=1]
[ext_resource path="res://MLPAssets/Background/library.webp" type="Texture" id=2]
[ext_resource path="res://MLPAssets/Background/deckbuilderbg.png" type="Texture" id=2]
[node name="DeckBuilder" type="Control"]
anchor_right = 1.0

317
Scenes/Draft.tscn Normal file
View File

@ -0,0 +1,317 @@
[gd_scene load_steps=4 format=2]
[ext_resource path="res://MLPAssets/Background/hall.png" type="Texture" id=1]
[ext_resource path="res://Scenes/Draft/CardListItem.tscn" type="PackedScene" id=2]
[ext_resource path="res://MLPAssets/Placeholders/unknowncard.jpg" type="Texture" id=3]
[node name="Control" type="Control"]
anchor_right = 1.0
anchor_bottom = 1.0
[node name="hall" type="TextureRect" parent="."]
anchor_right = 1.0
anchor_bottom = 1.0
texture = ExtResource( 1 )
expand = true
stretch_mode = 6
[node name="Drafted" type="GridContainer" parent="."]
margin_left = 122.0
margin_top = 591.0
margin_right = 1158.0
margin_bottom = 780.0
columns = 2
[node name="CardLabel" parent="Drafted" instance=ExtResource( 2 )]
anchor_right = 0.0
anchor_bottom = 0.0
margin_right = 200.0
margin_bottom = 23.0
barColors = {
"blue": Color( 0.286275, 0.635294, 0.72549, 1 ),
"none": Color( 0.247059, 0.54902, 0.4, 1 ),
"pink": Color( 0.870588, 0.34902, 0.705882, 1 ),
"purple": Color( 0.670588, 0.34902, 0.870588, 1 ),
"white": Color( 0.698039, 0.698039, 0.698039, 1 )
}
color = "pink"
[node name="CardLabel3" parent="Drafted" instance=ExtResource( 2 )]
anchor_right = 0.0
anchor_bottom = 0.0
margin_left = 204.0
margin_right = 404.0
margin_bottom = 23.0
barColors = {
"blue": Color( 0.286275, 0.635294, 0.72549, 1 ),
"none": Color( 0.247059, 0.54902, 0.4, 1 ),
"orange": Color( 0.74902, 0.321569, 0.133333, 1 ),
"pink": Color( 0.870588, 0.34902, 0.705882, 1 ),
"purple": Color( 0.670588, 0.34902, 0.870588, 1 ),
"white": Color( 0.698039, 0.698039, 0.698039, 1 ),
"yellow": Color( 0.788235, 0.792157, 0.431373, 1 )
}
[node name="CardLabel6" parent="Drafted" instance=ExtResource( 2 )]
anchor_right = 0.0
anchor_bottom = 0.0
margin_top = 27.0
margin_right = 200.0
margin_bottom = 50.0
barColors = {
"blue": Color( 0.286275, 0.635294, 0.72549, 1 ),
"none": Color( 0.247059, 0.54902, 0.4, 1 ),
"orange": Color( 0.74902, 0.321569, 0.133333, 1 ),
"pink": Color( 0.870588, 0.34902, 0.705882, 1 ),
"purple": Color( 0.670588, 0.34902, 0.870588, 1 ),
"white": Color( 0.698039, 0.698039, 0.698039, 1 ),
"yellow": Color( 0.788235, 0.792157, 0.431373, 1 )
}
color = "purple"
[node name="CardLabel2" parent="Drafted" instance=ExtResource( 2 )]
anchor_right = 0.0
anchor_bottom = 0.0
margin_left = 204.0
margin_top = 27.0
margin_right = 404.0
margin_bottom = 50.0
barColors = {
"blue": Color( 0.286275, 0.635294, 0.72549, 1 ),
"none": Color( 0.247059, 0.54902, 0.4, 1 ),
"orange": Color( 0.74902, 0.321569, 0.133333, 1 ),
"pink": Color( 0.870588, 0.34902, 0.705882, 1 ),
"purple": Color( 0.670588, 0.34902, 0.870588, 1 ),
"white": Color( 0.698039, 0.698039, 0.698039, 1 ),
"yellow": Color( 0.788235, 0.792157, 0.431373, 1 )
}
color = "yellow"
[node name="CardLabel7" parent="Drafted" instance=ExtResource( 2 )]
anchor_right = 0.0
anchor_bottom = 0.0
margin_top = 54.0
margin_right = 200.0
margin_bottom = 77.0
barColors = {
"blue": Color( 0.286275, 0.635294, 0.72549, 1 ),
"none": Color( 0.247059, 0.54902, 0.4, 1 ),
"orange": Color( 0.74902, 0.321569, 0.133333, 1 ),
"pink": Color( 0.870588, 0.34902, 0.705882, 1 ),
"purple": Color( 0.670588, 0.34902, 0.870588, 1 ),
"white": Color( 0.698039, 0.698039, 0.698039, 1 ),
"yellow": Color( 0.788235, 0.792157, 0.431373, 1 )
}
color = "blue"
[node name="CardLabel5" parent="Drafted" instance=ExtResource( 2 )]
anchor_right = 0.0
anchor_bottom = 0.0
margin_left = 204.0
margin_top = 54.0
margin_right = 404.0
margin_bottom = 77.0
barColors = {
"blue": Color( 0.286275, 0.635294, 0.72549, 1 ),
"none": Color( 0.247059, 0.54902, 0.4, 1 ),
"orange": Color( 0.74902, 0.321569, 0.133333, 1 ),
"pink": Color( 0.870588, 0.34902, 0.705882, 1 ),
"purple": Color( 0.670588, 0.34902, 0.870588, 1 ),
"white": Color( 0.698039, 0.698039, 0.698039, 1 ),
"yellow": Color( 0.788235, 0.792157, 0.431373, 1 )
}
color = "orange"
[node name="CardLabel8" parent="Drafted" instance=ExtResource( 2 )]
anchor_right = 0.0
anchor_bottom = 0.0
margin_top = 81.0
margin_right = 200.0
margin_bottom = 104.0
barColors = {
"blue": Color( 0.286275, 0.635294, 0.72549, 1 ),
"none": Color( 0.247059, 0.54902, 0.4, 1 ),
"orange": Color( 0.74902, 0.321569, 0.133333, 1 ),
"pink": Color( 0.870588, 0.34902, 0.705882, 1 ),
"purple": Color( 0.670588, 0.34902, 0.870588, 1 ),
"white": Color( 0.698039, 0.698039, 0.698039, 1 ),
"yellow": Color( 0.788235, 0.792157, 0.431373, 1 )
}
color = "white"
[node name="CardLabel4" parent="Drafted" instance=ExtResource( 2 )]
anchor_right = 0.0
anchor_bottom = 0.0
margin_left = 204.0
margin_top = 81.0
margin_right = 404.0
margin_bottom = 104.0
barColors = {
"blue": Color( 0.286275, 0.635294, 0.72549, 1 ),
"none": Color( 0.247059, 0.54902, 0.4, 1 ),
"orange": Color( 0.74902, 0.321569, 0.133333, 1 ),
"pink": Color( 0.870588, 0.34902, 0.705882, 1 ),
"purple": Color( 0.670588, 0.34902, 0.870588, 1 ),
"white": Color( 0.698039, 0.698039, 0.698039, 1 ),
"yellow": Color( 0.788235, 0.792157, 0.431373, 1 )
}
color = "multi|yellow+blue"
[node name="CardLabel9" parent="Drafted" instance=ExtResource( 2 )]
anchor_right = 0.0
anchor_bottom = 0.0
margin_top = 108.0
margin_right = 200.0
margin_bottom = 131.0
barColors = {
"blue": Color( 0.286275, 0.635294, 0.72549, 1 ),
"none": Color( 0.247059, 0.54902, 0.4, 1 ),
"orange": Color( 0.74902, 0.321569, 0.133333, 1 ),
"pink": Color( 0.870588, 0.34902, 0.705882, 1 ),
"purple": Color( 0.670588, 0.34902, 0.870588, 1 ),
"white": Color( 0.698039, 0.698039, 0.698039, 1 ),
"yellow": Color( 0.788235, 0.792157, 0.431373, 1 )
}
color = "multi|orange+blue"
[node name="CardLabel10" parent="Drafted" instance=ExtResource( 2 )]
anchor_right = 0.0
anchor_bottom = 0.0
margin_left = 204.0
margin_top = 108.0
margin_right = 404.0
margin_bottom = 131.0
barColors = {
"blue": Color( 0.286275, 0.635294, 0.72549, 1 ),
"none": Color( 0.247059, 0.54902, 0.4, 1 ),
"orange": Color( 0.74902, 0.321569, 0.133333, 1 ),
"pink": Color( 0.870588, 0.34902, 0.705882, 1 ),
"purple": Color( 0.670588, 0.34902, 0.870588, 1 ),
"white": Color( 0.698039, 0.698039, 0.698039, 1 ),
"yellow": Color( 0.788235, 0.792157, 0.431373, 1 )
}
color = "multi|orange+white+pink"
[node name="Cards" type="GridContainer" parent="."]
anchor_right = 1.0
anchor_bottom = 1.0
margin_left = 112.358
margin_top = 73.0827
margin_right = 916.358
margin_bottom = 237.083
grow_horizontal = 2
grow_vertical = 2
rect_scale = Vector2( 0.5, 0.5 )
columns = 6
[node name="unknowncard" type="TextureRect" parent="Cards"]
margin_right = 344.0
margin_bottom = 480.0
rect_min_size = Vector2( 344, 480 )
texture = ExtResource( 3 )
expand = true
stretch_mode = 6
[node name="unknowncard8" type="TextureRect" parent="Cards"]
margin_left = 348.0
margin_right = 692.0
margin_bottom = 480.0
rect_min_size = Vector2( 344, 480 )
texture = ExtResource( 3 )
expand = true
stretch_mode = 6
[node name="unknowncard4" type="TextureRect" parent="Cards"]
margin_left = 696.0
margin_right = 1040.0
margin_bottom = 480.0
rect_min_size = Vector2( 344, 480 )
texture = ExtResource( 3 )
expand = true
stretch_mode = 6
[node name="unknowncard10" type="TextureRect" parent="Cards"]
margin_left = 1044.0
margin_right = 1388.0
margin_bottom = 480.0
rect_min_size = Vector2( 344, 480 )
texture = ExtResource( 3 )
expand = true
stretch_mode = 6
[node name="unknowncard2" type="TextureRect" parent="Cards"]
margin_left = 1392.0
margin_right = 1736.0
margin_bottom = 480.0
rect_min_size = Vector2( 344, 480 )
texture = ExtResource( 3 )
expand = true
stretch_mode = 6
[node name="unknowncard7" type="TextureRect" parent="Cards"]
margin_left = 1740.0
margin_right = 2084.0
margin_bottom = 480.0
rect_min_size = Vector2( 344, 480 )
texture = ExtResource( 3 )
expand = true
stretch_mode = 6
[node name="unknowncard5" type="TextureRect" parent="Cards"]
margin_top = 484.0
margin_right = 344.0
margin_bottom = 964.0
rect_min_size = Vector2( 344, 480 )
texture = ExtResource( 3 )
expand = true
stretch_mode = 6
[node name="unknowncard12" type="TextureRect" parent="Cards"]
margin_left = 348.0
margin_top = 484.0
margin_right = 692.0
margin_bottom = 964.0
rect_min_size = Vector2( 344, 480 )
texture = ExtResource( 3 )
expand = true
stretch_mode = 6
[node name="unknowncard3" type="TextureRect" parent="Cards"]
margin_left = 696.0
margin_top = 484.0
margin_right = 1040.0
margin_bottom = 964.0
rect_min_size = Vector2( 344, 480 )
texture = ExtResource( 3 )
expand = true
stretch_mode = 6
[node name="unknowncard9" type="TextureRect" parent="Cards"]
margin_left = 1044.0
margin_top = 484.0
margin_right = 1388.0
margin_bottom = 964.0
rect_min_size = Vector2( 344, 480 )
texture = ExtResource( 3 )
expand = true
stretch_mode = 6
[node name="unknowncard6" type="TextureRect" parent="Cards"]
margin_left = 1392.0
margin_top = 484.0
margin_right = 1736.0
margin_bottom = 964.0
rect_min_size = Vector2( 344, 480 )
texture = ExtResource( 3 )
expand = true
stretch_mode = 6
[node name="unknowncard11" type="TextureRect" parent="Cards"]
margin_left = 1740.0
margin_top = 484.0
margin_right = 2084.0
margin_bottom = 964.0
rect_min_size = Vector2( 344, 480 )
texture = ExtResource( 3 )
expand = true
stretch_mode = 6

View File

@ -0,0 +1,27 @@
extends Panel
export var barColors: Dictionary = {}
export var color: String = "none"
func _ready():
if color.begins_with("multi|"):
make_gradient(color.trim_prefix("multi|").split("+"))
else:
if not barColors.has(color):
color = "none"
$ColorIndicator.color = barColors[color]
func make_gradient(colors: Array):
var gradient := Gradient.new()
var step = 1.0/(colors.size() - 1.0)
var i = 0
gradient.colors = PoolColorArray([])
gradient.offsets = PoolRealArray([])
for color in colors:
var offset: float = i*step
gradient.add_point(offset, barColors[color])
i += 1
var texture := GradientTexture.new()
texture.gradient = gradient
$ColorIndicator/TextureRect.texture = texture
$ColorIndicator/TextureRect.visible = true

View File

@ -0,0 +1,71 @@
[gd_scene load_steps=6 format=2]
[ext_resource path="res://Scenes/Draft/CardListItem.gd" type="Script" id=1]
[ext_resource path="res://UIAssets/Fonts/Catamaran-Bold.ttf" type="DynamicFontData" id=2]
[ext_resource path="res://UIAssets/Fonts/Catamaran-Light.ttf" type="DynamicFontData" id=3]
[sub_resource type="DynamicFont" id=1]
size = 12
use_mipmaps = true
use_filter = true
font_data = ExtResource( 2 )
[sub_resource type="DynamicFont" id=2]
size = 12
font_data = ExtResource( 3 )
[node name="CardLabel" type="Panel"]
anchor_right = 1.0
anchor_bottom = 1.0
margin_right = -1080.0
margin_bottom = -777.0
rect_min_size = Vector2( 200, 23 )
script = ExtResource( 1 )
barColors = {
"blue": Color( 0.286275, 0.635294, 0.72549, 1 ),
"none": Color( 0.247059, 0.54902, 0.4, 1 ),
"orange": Color( 0.74902, 0.321569, 0.133333, 1 ),
"pink": Color( 0.870588, 0.34902, 0.705882, 1 ),
"purple": Color( 0.670588, 0.34902, 0.870588, 1 ),
"white": Color( 0.698039, 0.698039, 0.698039, 1 ),
"yellow": Color( 0.788235, 0.792157, 0.431373, 1 )
}
[node name="ColorIndicator" type="ColorRect" parent="."]
anchor_bottom = 1.0
margin_right = 2.0
rect_min_size = Vector2( 3, 0 )
[node name="TextureRect" type="TextureRect" parent="ColorIndicator"]
visible = false
margin_left = 3.0
margin_right = 26.0
margin_bottom = 3.0
rect_rotation = 89.9999
expand = true
[node name="NameBlock" type="HBoxContainer" parent="."]
anchor_right = 1.0
margin_left = 8.0
margin_top = 2.0
margin_right = -4.0
margin_bottom = 2.0
size_flags_horizontal = 3
[node name="Name" type="Label" parent="NameBlock"]
margin_right = 85.0
margin_bottom = 21.0
custom_fonts/font = SubResource( 1 )
text = "Twilight Sparkle"
valign = 1
[node name="Subname" type="Label" parent="NameBlock"]
modulate = Color( 1, 1, 1, 0.666667 )
margin_left = 89.0
margin_right = 188.0
margin_bottom = 21.0
size_flags_horizontal = 3
custom_fonts/font = SubResource( 2 )
text = "Princess of friendship"
valign = 1
clip_text = true

View File

@ -4,7 +4,7 @@ class_name Board
signal loaded()
onready var CardTemplate := preload("res://Scenes/Components/Card.tscn")
onready var CardTemplate := preload("res://Scenes/Board/Card.tscn")
onready var camera := $Camera
onready var hand := $Camera/PlayerHand
@ -35,7 +35,7 @@ onready var zones: Dictionary = {
func _ready():
# Load bgm
BGM.load_music("ingame1")
BGM.load_music("ingame3")
# Sample deck
var deck = [
"pr10","pr11","pr12","pr13","pr14","pr15","pr16","pr12","pr13","pr14",

Binary file not shown.

View File

@ -11,7 +11,7 @@ bus/1/name = "BGM"
bus/1/solo = false
bus/1/mute = false
bus/1/bypass_fx = false
bus/1/volume_db = -9.4
bus/1/volume_db = -8.5
bus/1/send = "Master"
bus/1/effect/0/effect = SubResource( 1 )
bus/1/effect/0/enabled = true

View File

@ -17,7 +17,7 @@ _global_script_classes=[ {
"base": "Area",
"class": "Card",
"language": "GDScript",
"path": "res://Scenes/Components/Card.gd"
"path": "res://Scenes/Board/Card.gd"
}, {
"base": "Reference",
"class": "Resources",
@ -32,7 +32,7 @@ _global_script_classes=[ {
"base": "Area",
"class": "Stack",
"language": "GDScript",
"path": "res://Scenes/Components/Stack.gd"
"path": "res://Scenes/Board/Stack.gd"
} ]
_global_script_class_icons={
"Board": "",
@ -47,6 +47,7 @@ _global_script_class_icons={
config/name="MLP CARD GAME"
run/main_scene="res://Scenes/SplashScreen.tscn"
run/low_processor_mode=true
boot_splash/bg_color=Color( 0.156863, 0.156863, 0.156863, 1 )
config/icon="res://icon.png"
[autoload]
@ -54,7 +55,7 @@ config/icon="res://icon.png"
Remote="*res://Scenes/Global/Remote.tscn"
Mods="*res://Scenes/Global/Mods.tscn"
Loader="*res://Scenes/Global/Loader.tscn"
BGM="*res://Scenes/UI/BGMusic.tscn"
BGM="*res://Scenes/BGMusic.tscn"
[debug]
@ -101,5 +102,6 @@ vram_compression/import_etc=true
quality/shadows/filter_mode=0
quality/reflections/texture_array_reflections=false
quality/reflections/high_quality_ggx=false
environment/default_clear_color=Color( 0.156863, 0.156863, 0.156863, 1 )
quality/depth/hdr=false
environment/default_environment="res://default_env.tres"