From bf544e84cfdff75c48ef168096f6d3832c2da853 Mon Sep 17 00:00:00 2001 From: GriffinR Date: Tue, 9 Aug 2022 11:02:04 -0400 Subject: [PATCH] Clean up graphics --- graphics/naming_screen/back_button.png | Bin 297 -> 284 bytes graphics/naming_screen/cursor.png | Bin 175 -> 159 bytes graphics/naming_screen/cursor_filled.png | Bin 187 -> 166 bytes graphics/naming_screen/cursor_squished.png | Bin 178 -> 164 bytes graphics/naming_screen/input_arrow.png | Bin 166 -> 153 bytes .../naming_screen/{pc_icon.pal => menu.pal} | 0 graphics/naming_screen/menu.png | Bin 438 -> 438 bytes graphics/naming_screen/ok_button.png | Bin 277 -> 264 bytes graphics/naming_screen/page_swap_button.png | Bin 158 -> 145 bytes graphics/naming_screen/page_swap_frame.png | Bin 266 -> 253 bytes graphics/naming_screen/page_swap_lower.png | Bin 199 -> 186 bytes graphics/naming_screen/page_swap_others.png | Bin 206 -> 193 bytes graphics/naming_screen/page_swap_upper.png | Bin 203 -> 190 bytes graphics/naming_screen/pc_icon_off.png | Bin 205 -> 192 bytes graphics/naming_screen/pc_icon_on.png | Bin 216 -> 203 bytes graphics/naming_screen/underscore.png | Bin 150 -> 137 bytes graphics_file_rules.mk | 10 +++++++ include/graphics.h | 2 +- src/graphics.c | 4 +-- src/naming_screen.c | 26 +++++++++--------- 20 files changed, 26 insertions(+), 16 deletions(-) rename graphics/naming_screen/{pc_icon.pal => menu.pal} (100%) diff --git a/graphics/naming_screen/back_button.png b/graphics/naming_screen/back_button.png index 57c4341942ac69be31c26c751113185c62c8445c..52f76b6fa7372fafd24f0bb60c2320a687e25588 100644 GIT binary patch delta 56 zcmZ32(|zMiF}Wp{V;(Y;%q-Mi{l++Drq=$c}$t8zopr0FF2#=>Px# literal 175 zcmeAS@N?(olHy`uVBq!ia0vp^8bHj!!VDxUYZhbxDT4r?5ZA0ZSO5S2Z)s`S-Q9e2 z@0Mrxu6h-BSFbs`rr7K1oZ_T8mQ(g-?Omeq>|PX54G^elJy`(M%UBZR7tG-B>_!@p zqwDG77{W0#IUzxSg^A7N0EdtW!>L9KgUAUCixqY$Oi^$Y$l~czIO7!3P$0$dP diff --git a/graphics/naming_screen/cursor_filled.png b/graphics/naming_screen/cursor_filled.png index bf1049e892e658ea122762a57d2ccb0b9a0f5201..efb5e110159713efb2d257357b94d01e747be24b 100644 GIT binary patch literal 166 zcmeAS@N?(olHy`uVBq!ia0vp^0zfRm!VDxC`x5MdltF+`h-=oItN%GT?pb%6DBM$6c9*|Xl68O kmWVCTelYFOTt`_32FV(p`8#g9t_0cO>FVdQ&MBb@0K$ML1^@s6 literal 187 zcmeAS@N?(olHy`uVBq!ia0vp^8bHj!!VDxUYZhbxDT4r?5ZA0ZSO5S2Z)s`S-Q9e2 z@0Mrxu6h-BSFbs`rr7K1oZ_T8mQ(g-?Omeq>|PX54G^elJy`(M%UBZR7tG-B>_!@p zW9jMQ7{W0#IUzxSg^7)gE!iNUfx&IU0)_xS6*Ue~5fL*pGZ7c@mLd;<7O7?>j?Dr* f5BwUfcsUqsgL&qs*Cg`+4Po$f^>bP0l+XkK&wn|8 diff --git a/graphics/naming_screen/cursor_squished.png b/graphics/naming_screen/cursor_squished.png index 45197320ded14c7de637c1609878055c29250e80..5126fcccaebd6dca631ef6d85ed28ded7c2207b0 100644 GIT binary patch literal 164 zcmeAS@N?(olHy`uVBq!ia0vp^0zfRm!VDxC`x5MdltF+`h-=oItN%GT?pb(Rvq2Ww} i_d(IaTMzRtv1DNQ#=y>|PX54G^elJy`(M%UBZR7tG-B>_!^M zAWs*^5RRG22@QYOG%?Et0IG}>qW}N^ delta 66 zcmbQqxQuavkwtfR^U=Lqp543ZRoq>@=IEMYud8#4ljc}X*_*X@iNdpcQI=q!ruAe2 U0|NtNNswPKgTu2MX%k~@06gv;)&Kwi diff --git a/graphics/naming_screen/pc_icon.pal b/graphics/naming_screen/menu.pal similarity index 100% rename from graphics/naming_screen/pc_icon.pal rename to graphics/naming_screen/menu.pal diff --git a/graphics/naming_screen/menu.png b/graphics/naming_screen/menu.png index e7c4374c7ef7dd0410bf01228e1dd117bce2aa15..5bdf0a3eee85cc000376bdd6736c9570a623f7cd 100644 GIT binary patch delta 57 zcmdnSyp4H+zFu*0ad&s~nl(#~?%ne2-qoYe=3ITZ_u0353}A5eY|yiNQSY90e|vYd M=hN#28)G9G0i8J^DF6Tf delta 57 zcmdnSyp4H+zMiF}WpQya0|NYKV1Od8;_jsGCDm(=&N=&R%e`;zx3-mRjE!Uj0Q2w_ AuK)l5 diff --git a/graphics/naming_screen/ok_button.png b/graphics/naming_screen/ok_button.png index 51acd15d1933f4c26581165324359fa51a6ab440..f8dafbf97b4dc70f1dc346359950776f2bd38f25 100644 GIT binary patch delta 53 zcmbQr)WI~tNV~hc`RLv)&+c9ID(I)jT delta 66 zcmey%*u^x#$fCHom;nL)GcZ8WnqsfL%~4n96n{Ir*Mw0hKY91o;IsI6S+N IHZgVq0OX_@LjV8( diff --git a/graphics/naming_screen/page_swap_lower.png b/graphics/naming_screen/page_swap_lower.png index 741c5e5894bf6737e5b483daa9dabb86f355f6f5..5747c6265d651fb00fbb1255c26f9cb74534770d 100644 GIT binary patch delta 58 zcmX@kxQlUuuEGERmX?;?-OWe$Zh3a^s#kG$^_rt=ioLGRDNdSWIc0Cw-X#jp?nMFB N0D+p;lLZsAVgY%^9Torp delta 71 zcmdnRc${&9t}O@0Jxi}GjzJ7Kz_WW-fie)%(XRY5ki%FK9&r&! diff --git a/graphics/naming_screen/page_swap_others.png b/graphics/naming_screen/page_swap_others.png index 32afa52821f461a3579be4861d55b0861acf8140..8b5f55ce3b791307f1eb9292e1d00c0a566c0e62 100644 GIT binary patch delta 9 QcmX@dc#v^I!o=J}02A5+;Q#;t delta 20 bcmX@ec#d&G0vBURkY6x^!?PP{6Jt{VOS1>6 diff --git a/graphics/naming_screen/page_swap_upper.png b/graphics/naming_screen/page_swap_upper.png index 68f0637b4e3cf8e3964605d951c63afa1bdafa53..35ff51d2003fb3a0614c1149c89069d60b7e63e0 100644 GIT binary patch delta 9 QcmX@jxQ}r{!o=J-028MJ*Z=?k delta 20 bcmdnTc$#rS0vBURkY6x^!?PP{6JrwrOFjpo diff --git a/graphics/naming_screen/pc_icon_off.png b/graphics/naming_screen/pc_icon_off.png index a24d40836350181d28495c818f999ae729b7a15d..1f4c65a4e7d3f9035f2f1b4cb428208d0a77cdb0 100644 GIT binary patch delta 9 QcmX@hcz|(2!o=JJ029dr-T(jq delta 20 bcmX@Wc$RTO0vBURkY6x^!?PP{6JwJBONstate = STATE_HANDLE_INPUT; sNamingScreen->currentPage++; - sNamingScreen->currentPage %= 3; + sNamingScreen->currentPage %= KBPAGE_COUNT; if (onLastColumn) { @@ -1872,7 +1872,7 @@ static void CreateHelperTasks(void) static void LoadPalettes(void) { - LoadPalette(gNamingScreenInterface_Pal, 0, sizeof(gNamingScreenInterface_Pal)); + LoadPalette(gNamingScreenMenu_Pal, 0, sizeof(gNamingScreenMenu_Pal)); LoadPalette(gNamingScreenKeyboard_Pal, 0xA0, 0x20); LoadPalette(stdpal_get(2), 0xB0, 0x20); } @@ -2442,7 +2442,7 @@ static const struct SpriteTemplate sSpriteTemplate_Underscore = { static const struct SpriteTemplate sSpriteTemplate_PCIcon = { .tileTag = TAG_NONE, - .paletteTag = PALTAG_PC_ICON, + .paletteTag = PALTAG_MENU, .oam = &sOam_8x8, .anims = sAnims_PCIcon, .images = sImageTable_PCIcon, @@ -2488,13 +2488,13 @@ static const struct SpriteSheet sSpriteSheets[] = { }; static const struct SpritePalette sSpritePalettes[] = { - {gNamingScreenInterface_Pal[0], PALTAG_PC_ICON}, - {gNamingScreenInterface_Pal[1], PALTAG_PAGE_SWAP_UPPER}, - {gNamingScreenInterface_Pal[2], PALTAG_PAGE_SWAP_LOWER}, - {gNamingScreenInterface_Pal[3], PALTAG_PAGE_SWAP_OTHERS}, - {gNamingScreenInterface_Pal[4], PALTAG_PAGE_SWAP}, - {gNamingScreenInterface_Pal[5], PALTAG_CURSOR}, - {gNamingScreenInterface_Pal[4], PALTAG_BACK_BUTTON}, - {gNamingScreenInterface_Pal[4], PALTAG_OK_BUTTON}, + {gNamingScreenMenu_Pal[0], PALTAG_MENU}, + {gNamingScreenMenu_Pal[1], PALTAG_PAGE_SWAP_UPPER}, + {gNamingScreenMenu_Pal[2], PALTAG_PAGE_SWAP_LOWER}, + {gNamingScreenMenu_Pal[3], PALTAG_PAGE_SWAP_OTHERS}, + {gNamingScreenMenu_Pal[4], PALTAG_PAGE_SWAP}, + {gNamingScreenMenu_Pal[5], PALTAG_CURSOR}, + {gNamingScreenMenu_Pal[4], PALTAG_BACK_BUTTON}, + {gNamingScreenMenu_Pal[4], PALTAG_OK_BUTTON}, {} // terminator };