From e7c0c1abd4fc6c23dab967be1c2c2de8a3a6d743 Mon Sep 17 00:00:00 2001 From: Flashfyre Date: Sun, 23 Apr 2023 19:41:32 -0400 Subject: [PATCH] Add some minor details to summary screen --- public/images/types.json | 135 ++++++++++++--------- public/images/types.png | Bin 1657 -> 1646 bytes public/images/types/fairy.png | Bin 0 -> 271 bytes public/images/ui/shiny.png | Bin 0 -> 138 bytes public/images/ui/summary_overlay_shiny.png | Bin 288 -> 288 bytes src/ui/summary-ui-handler.ts | 11 +- src/ui/text.ts | 93 +++++++------- 7 files changed, 129 insertions(+), 110 deletions(-) create mode 100644 public/images/types/fairy.png create mode 100644 public/images/ui/shiny.png diff --git a/public/images/types.json b/public/images/types.json index c348d426f..d8ca3cc41 100644 --- a/public/images/types.json +++ b/public/images/types.json @@ -4,11 +4,32 @@ "image": "types.png", "format": "RGBA8888", "size": { - "w": 612, - "h": 16 + "w": 32, + "h": 266 }, "scale": 1, "frames": [ + { + "filename": "unknown", + "rotated": false, + "trimmed": false, + "sourceSize": { + "w": 32, + "h": 14 + }, + "spriteSourceSize": { + "x": 0, + "y": 0, + "w": 32, + "h": 14 + }, + "frame": { + "x": 0, + "y": 0, + "w": 32, + "h": 14 + } + }, { "filename": "bug", "rotated": false, @@ -24,8 +45,8 @@ "h": 14 }, "frame": { - "x": 1, - "y": 1, + "x": 0, + "y": 14, "w": 32, "h": 14 } @@ -45,8 +66,8 @@ "h": 14 }, "frame": { - "x": 35, - "y": 1, + "x": 0, + "y": 28, "w": 32, "h": 14 } @@ -66,8 +87,8 @@ "h": 14 }, "frame": { - "x": 69, - "y": 1, + "x": 0, + "y": 42, "w": 32, "h": 14 } @@ -87,8 +108,29 @@ "h": 14 }, "frame": { - "x": 103, - "y": 1, + "x": 0, + "y": 56, + "w": 32, + "h": 14 + } + }, + { + "filename": "fairy", + "rotated": false, + "trimmed": false, + "sourceSize": { + "w": 32, + "h": 14 + }, + "spriteSourceSize": { + "x": 0, + "y": 0, + "w": 32, + "h": 14 + }, + "frame": { + "x": 0, + "y": 70, "w": 32, "h": 14 } @@ -108,8 +150,8 @@ "h": 14 }, "frame": { - "x": 137, - "y": 1, + "x": 0, + "y": 84, "w": 32, "h": 14 } @@ -129,8 +171,8 @@ "h": 14 }, "frame": { - "x": 171, - "y": 1, + "x": 0, + "y": 98, "w": 32, "h": 14 } @@ -150,8 +192,8 @@ "h": 14 }, "frame": { - "x": 205, - "y": 1, + "x": 0, + "y": 112, "w": 32, "h": 14 } @@ -171,8 +213,8 @@ "h": 14 }, "frame": { - "x": 239, - "y": 1, + "x": 0, + "y": 126, "w": 32, "h": 14 } @@ -192,8 +234,8 @@ "h": 14 }, "frame": { - "x": 273, - "y": 1, + "x": 0, + "y": 140, "w": 32, "h": 14 } @@ -213,8 +255,8 @@ "h": 14 }, "frame": { - "x": 307, - "y": 1, + "x": 0, + "y": 154, "w": 32, "h": 14 } @@ -234,8 +276,8 @@ "h": 14 }, "frame": { - "x": 341, - "y": 1, + "x": 0, + "y": 168, "w": 32, "h": 14 } @@ -255,8 +297,8 @@ "h": 14 }, "frame": { - "x": 375, - "y": 1, + "x": 0, + "y": 182, "w": 32, "h": 14 } @@ -276,8 +318,8 @@ "h": 14 }, "frame": { - "x": 409, - "y": 1, + "x": 0, + "y": 196, "w": 32, "h": 14 } @@ -297,8 +339,8 @@ "h": 14 }, "frame": { - "x": 443, - "y": 1, + "x": 0, + "y": 210, "w": 32, "h": 14 } @@ -318,8 +360,8 @@ "h": 14 }, "frame": { - "x": 477, - "y": 1, + "x": 0, + "y": 224, "w": 32, "h": 14 } @@ -339,8 +381,8 @@ "h": 14 }, "frame": { - "x": 511, - "y": 1, + "x": 0, + "y": 238, "w": 32, "h": 14 } @@ -360,29 +402,8 @@ "h": 14 }, "frame": { - "x": 545, - "y": 1, - "w": 32, - "h": 14 - } - }, - { - "filename": "unknown", - "rotated": false, - "trimmed": false, - "sourceSize": { - "w": 32, - "h": 14 - }, - "spriteSourceSize": { "x": 0, - "y": 0, - "w": 32, - "h": 14 - }, - "frame": { - "x": 579, - "y": 1, + "y": 252, "w": 32, "h": 14 } @@ -393,6 +414,6 @@ "meta": { "app": "https://www.codeandweb.com/texturepacker", "version": "3.0", - "smartupdate": "$TexturePacker:SmartUpdate:487be8bed12f0ec062283a698524f491:d47bd2a8523f360e898c134601ed66bd:5961efbfbf4c56b8745347e7a663a32f$" + "smartupdate": "$TexturePacker:SmartUpdate:194223c9662d1ecd87e27433f731e65a:63fb5df5cbaa3edbf6f88332a579bdac:5961efbfbf4c56b8745347e7a663a32f$" } } diff --git a/public/images/types.png b/public/images/types.png index fa705e341954b111acdbdffb3ebe08153c438641..0e07620b7185bc76a196ad284ecb717e26ee2829 100644 GIT binary patch literal 1646 zcmV-!29f!RP)Z;JxS;q*IFPA}XJr5Y00DGTPE!Ct=GbNc000SaNLh0L01m_e01m_f zl`9S#000GvNklvc$WEK4`~QEiTDOgksY5`lqwxG<${0?+8}5*YZS5={$` z1I3zYfQyCt;`_eG{tCBWe|Mf6t@ zQi|yanZf!R2A#{P0^nZWiY8M4PN80W{|ms2E7Z+Du8{xi${#p)1kPLnHRsZ(5>PiX z8r}1g96ho6D z-TKzf0>D!Em?us9ggI1($baw3Z@BM>0#bl`-L#GO+~5po+gJl?GOYlM zZr_Yzr8w?u9VoofO8d^UhYBNIBR;|%Z$_2m1X0G?c-Zr->;{+TN`Fzbi{@#kzN z8><{80P}VVz{4CcOKK5pE~UU(2(9-|1t10>eA(7ON@3S90mK_~0+0*lh0Js_O@LRZ z7vF!)?`G%jhrQqKedpsq9|+sWe)6VA6;Sn)qz252hSSRwsK5|Ro5CVkiktsUftE*s zb`=s*Z%o@&z~w^CeE$qO9|-E^4_C;)apebWIzoW`Zqk81b;tp$%rT&SGywIpZ$kq% z(Zq9Qh%p6L0EWk*m_h*#n*nVKu>xQSmVl5bu0n280Z^i|Y(%q>USy|GE8o8YSh+&o z>|}tAA7RtUKsm(Hl2@j*>7k4au*$9SXHM1(SXqQ%P>wSoKBVAEi@d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(mr}ouNlhbUOTsAz@JvI- zEi7P0gRrC^+Xz}d31&HDTL8?2R!S|%hB1cmHiPULt3tBvl3vCY$U>(i-z*^$&vdba z$tc(*oP%A;=q#40?GkpuCi&UgkdZ&KQ%cJ05(>y5oKS)+xx$2d-K2y}Ugng_a5jZx zmvK8I&0U8~d^5L87pRJMDd(i^GC>B>De11!F6rz}0vRpID7VW1nfRuL3?G2FaxSJW z$jBkZGKU>@35Zro|7Vxuyy1+vmEp|Hz!mt8IsWNx{PkSV+L>2yjT_#vfkyOg_UcDdcUid}Mh ztk|XRWqInhOKQEGISj*Aik z8C^)?_KpvU3^KAueh|4)kP%9>wxUp@^c9AmOhUjUB>g>^Uz$?HTV9i|F#NCy0cr{~ z)mNA3l5*r%mjE2$MkTyO$N(W*qGy7nFrzKxi#~gaXYwF~`U(Sp12&X6a=Qdf+u|)s zka>H=g<%K?v$B&xmfDcrzl^-0$0n_4{vcHezpYvzd+9 zYzAN>Mjgu(z{7)$*uz7w=P|Q{e*hhr!iq;zSYf~1+n&Y75G!niu%d4YE1pbY#mp2| z%uQj1{fm3snZB92?M%VcZ50ou=)W-Tkli8sTgd(aVs{(AAFTDO00000NkvXXu0mjf Dh|3|1 diff --git a/public/images/types/fairy.png b/public/images/types/fairy.png new file mode 100644 index 0000000000000000000000000000000000000000..f8ca169d3aae52499101daa1db82f3c12b24d185 GIT binary patch literal 271 zcmeAS@N?(olHy`uVBq!ia0vp^3P8-q!3HG#?#OKdQrA3P978NlC#NJNB>brV^tQf@ zk)h|=p&p(8{`>y^FZ%zsal`zF|4(lJFBxAlM?&EKVFqC{$3`Y*5u3+{xkL&}?0k5p z%gvDS;gQ_%peWManYC?kLXs%2tU%deE*5EDd7nK^2O07?HawVoMxf(>wj0lEfdela zy4v`5^e3<#I`V-r=hulMhANQ-?D~qeKNfXn1v>QDIRzee@e~u%FlhKK7R{x;%HU8K z-vJ)yGQ&+0il--BU9h>ch#{7Hk*IkZ&y1(qd1n$5K+c~rVS<6e!hj74jLHmuw^Zbu TQg1c|`jElX)z4*}Q$iB}z-(rq literal 0 HcmV?d00001 diff --git a/public/images/ui/shiny.png b/public/images/ui/shiny.png new file mode 100644 index 0000000000000000000000000000000000000000..04dad2a279e47704a315c91a1a535e9a20f20bd2 GIT binary patch literal 138 zcmeAS@N?(olHy`uVBq!ia0vp^>_E)H!VDyjYyB_Sj3_wv|lmQqcqcFye zb|oWtl#D>h2Be816p<263h#A@&ek^~=6PCMt82V{KXa^GM8r6bVd#C_f4!LJ>9df` zj9ObUu7e85%-sqy(}d1gz;+3AT7VPNc>#MTM-eA{gttSlwHuYzVs-zymSuVR2k12O zV)$H|0#JYgPyi?Z6p^e=BKR*B(0BI568ag2M|lB)-|us)qIP-!0000lwD delta 197 zcmV;$06PDm0-yqr7k_F91^@s6LjzP^0002zNkleCAk}h=_Tf!_ddLetXgT@?J=0 zMy;(F*Fgnj=57U