Add Bougainville (Night) as Studio BG

This commit is contained in:
RocketRobz 2020-05-22 00:06:13 -06:00
parent 5a77cda71c
commit ef1b1df2f3
4 changed files with 28 additions and 3 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 343 KiB

View File

@ -0,0 +1 @@
-f rgba -z auto "bgNight_bougainville.png"

View File

@ -51,6 +51,9 @@ void GFX::loadBgSprite(void) {
case 1:
bgPath = "romfs:/gfx/bgNight_loversBell.t3x";
break;
case 2:
bgPath = "romfs:/gfx/bgNight_bougainville.t3x";
break;
}
bgSprite = C2D_SpriteSheetLoad(bgPath);
doBgSpriteFree = true;

View File

@ -17,7 +17,9 @@ static const char* studioBgName(void) {
default:
return "Blue";
case 1:
return "Lovers Bell";
return "Lover's Bell";
case 2:
return "Bougainville";
}
return "null";
@ -188,12 +190,31 @@ void settingsMenu(void) {
}
}
}
if ((hDown & KEY_A) && (cursorPosition <= numberOfSettings)) {
if ((hDown & KEY_LEFT) && (cursorPosition <= numberOfSettings)) {
sndSelect();
switch (cursorPosition) {
case 0:
studioBg--;
if (studioBg < 0) studioBg = 2;
displayStudioBg = false;
gspWaitForVBlank();
GFX::loadBgSprite();
displayStudioBg = true;
break;
case 1:
if (iFps==30) iFps = 24;
else if (iFps==24) iFps = 60;
else if (iFps==60) iFps = 30;
C3D_FrameRate(iFps);
break;
}
}
if (((hDown & KEY_RIGHT) || (hDown & KEY_A)) && (cursorPosition <= numberOfSettings)) {
sndSelect();
switch (cursorPosition) {
case 0:
studioBg++;
if (studioBg > 1) studioBg = 0;
if (studioBg > 2) studioBg = 0;
displayStudioBg = false;
gspWaitForVBlank();
GFX::loadBgSprite();