mirror of
https://github.com/RocketRobz/SuperAllStarPhotoStudio.git
synced 2025-06-18 17:15:35 -04:00
Add Sonic
This commit is contained in:
parent
59577c814e
commit
d163583cda
Binary file not shown.
After Width: | Height: | Size: 54 KiB |
Binary file not shown.
After Width: | Height: | Size: 111 KiB |
Binary file not shown.
After Width: | Height: | Size: 170 KiB |
4
assets/gfx_chars/sth_Sonic.t3s
Normal file
4
assets/gfx_chars/sth_Sonic.t3s
Normal file
@ -0,0 +1,4 @@
|
||||
--atlas -f rgba -z auto
|
||||
"characters/Sonic the Hedgehog/All Seasons/zoom0/Sonic.png"
|
||||
"characters/Sonic the Hedgehog/All Seasons/zoom1/Sonic.png"
|
||||
"characters/Sonic the Hedgehog/All Seasons/zoom2/Sonic.png"
|
13
include/sthCharNames.h
Normal file
13
include/sthCharNames.h
Normal file
@ -0,0 +1,13 @@
|
||||
#ifndef _ROCKET_PHOTO_SHOOT_SONIC_CHAR_NAMES_HPP
|
||||
#define _ROCKET_PHOTO_SHOOT_SONIC_CHAR_NAMES_HPP
|
||||
|
||||
extern const char* sthCharacterNames[];
|
||||
|
||||
extern bool sthCharacterGenders[];
|
||||
|
||||
extern const char* sthCharacterFileNamesSpring[];
|
||||
extern const char* sthCharacterFileNamesSummer[];
|
||||
extern const char* sthCharacterFileNamesFall[];
|
||||
extern const char* sthCharacterFileNamesWinter[];
|
||||
|
||||
#endif
|
@ -10,6 +10,7 @@
|
||||
#include "import_ss4charnames.h"
|
||||
#include "rocketcharnames.h"
|
||||
#include "smCharNames.h"
|
||||
#include "sthCharNames.h"
|
||||
|
||||
#include "import_ss1bgnames.h"
|
||||
#include "import_ss2bgnames.h"
|
||||
@ -47,7 +48,9 @@ void PhotoStudio::getMaxChars() {
|
||||
}
|
||||
} else {
|
||||
// Characters
|
||||
if (char_highlightedGame[currentCharNum] == 5) {
|
||||
if (char_highlightedGame[currentCharNum] == 6) {
|
||||
import_totalCharacters = 0;
|
||||
} else if (char_highlightedGame[currentCharNum] == 5) {
|
||||
import_totalCharacters = 0;
|
||||
} else if (char_highlightedGame[currentCharNum] == 4) {
|
||||
import_totalCharacters = 3;
|
||||
@ -92,6 +95,8 @@ const char* PhotoStudio::import_characterName(void) const {
|
||||
return rocketCharacterNames[importCharacterList_cursorPosition[currentCharNum]];
|
||||
case 5:
|
||||
return smCharacterNames[importCharacterList_cursorPosition[currentCharNum]];
|
||||
case 6:
|
||||
return sthCharacterNames[importCharacterList_cursorPosition[currentCharNum]];
|
||||
}
|
||||
return "null";
|
||||
}
|
||||
@ -120,6 +125,17 @@ const char* PhotoStudio::import_characterFileName(void) const {
|
||||
case 3:
|
||||
return smCharacterFileNamesWinter[importCharacterList_cursorPosition[currentCharNum]];
|
||||
}
|
||||
case 6:
|
||||
switch (seasonNo[currentCharNum]) {
|
||||
case 0:
|
||||
return sthCharacterFileNamesSpring[importCharacterList_cursorPosition[currentCharNum]];
|
||||
case 1:
|
||||
return sthCharacterFileNamesSummer[importCharacterList_cursorPosition[currentCharNum]];
|
||||
case 2:
|
||||
return sthCharacterFileNamesFall[importCharacterList_cursorPosition[currentCharNum]];
|
||||
case 3:
|
||||
return sthCharacterFileNamesWinter[importCharacterList_cursorPosition[currentCharNum]];
|
||||
}
|
||||
}
|
||||
return "null";
|
||||
}
|
||||
@ -148,6 +164,8 @@ const char* PhotoStudio::import_characterNameDisplay(void) const {
|
||||
return rocketCharacterNames[importCharacterList_cursorPosition[currentCharNum]];
|
||||
case 5:
|
||||
return smCharacterNames[importCharacterList_cursorPosition[currentCharNum]];
|
||||
case 6:
|
||||
return sthCharacterNames[importCharacterList_cursorPosition[currentCharNum]];
|
||||
}
|
||||
return "null";
|
||||
}
|
||||
@ -313,6 +331,9 @@ void PhotoStudio::Draw(void) const {
|
||||
|
||||
// Game name
|
||||
switch (char_highlightedGame[currentCharNum]) {
|
||||
case 6:
|
||||
Gui::DrawStringCentered(0, 8, 0.50, WHITE, "Sonic the Hedgehog series");
|
||||
break;
|
||||
case 5:
|
||||
Gui::DrawStringCentered(0, 8, 0.50, WHITE, "Super Mario series");
|
||||
break;
|
||||
@ -351,12 +372,17 @@ void PhotoStudio::Draw(void) const {
|
||||
if (!displayNothing) {
|
||||
int i2 = 48;
|
||||
for (int i = import_characterShownFirst[currentCharNum]; i < import_characterShownFirst[currentCharNum]+3; i++) {
|
||||
if (char_highlightedGame[currentCharNum] == 5) {
|
||||
if (char_highlightedGame[currentCharNum] == 6) {
|
||||
if (i >= 1) break;
|
||||
GFX::DrawSprite(sprites_item_button_idx, 16, i2-20);
|
||||
GFX::DrawSprite((sthCharacterGenders[i] ? sprites_icon_male_idx : sprites_icon_female_idx), 12, i2-8);
|
||||
Gui::DrawString(64, i2, 0.65, WHITE, sthCharacterNames[i]);
|
||||
} else if (char_highlightedGame[currentCharNum] == 5) {
|
||||
if (i >= 1) break;
|
||||
GFX::DrawSprite(sprites_item_button_idx, 16, i2-20);
|
||||
GFX::DrawSprite((smCharacterGenders[i] ? sprites_icon_male_idx : sprites_icon_female_idx), 12, i2-8);
|
||||
Gui::DrawString(64, i2, 0.65, WHITE, smCharacterNames[i]);
|
||||
} else if (char_highlightedGame[currentCharNum] == 4) {
|
||||
//if (i >= numberOfExportedCharacters) break;
|
||||
GFX::DrawSprite(sprites_item_button_idx, 16, i2-20);
|
||||
GFX::DrawSprite((rocketCharacterGenders[i] ? sprites_icon_male_idx : sprites_icon_female_idx), 12, i2-8);
|
||||
Gui::DrawString(64, i2, 0.65, WHITE, rocketCharacterNames[i]);
|
||||
@ -593,7 +619,7 @@ void PhotoStudio::Logic(u32 hDown, u32 hHeld, touchPosition touch) {
|
||||
if (hDown & KEY_DLEFT) {
|
||||
sndHighlight();
|
||||
char_highlightedGame[currentCharNum]--;
|
||||
if (char_highlightedGame[currentCharNum] < 0) char_highlightedGame[currentCharNum] = 5;
|
||||
if (char_highlightedGame[currentCharNum] < 0) char_highlightedGame[currentCharNum] = 6;
|
||||
getMaxChars();
|
||||
renderTop = true;
|
||||
}
|
||||
@ -601,7 +627,7 @@ void PhotoStudio::Logic(u32 hDown, u32 hHeld, touchPosition touch) {
|
||||
if (hDown & KEY_DRIGHT) {
|
||||
sndHighlight();
|
||||
char_highlightedGame[currentCharNum]++;
|
||||
if (char_highlightedGame[currentCharNum] > 5) char_highlightedGame[currentCharNum] = 0;
|
||||
if (char_highlightedGame[currentCharNum] > 6) char_highlightedGame[currentCharNum] = 0;
|
||||
getMaxChars();
|
||||
renderTop = true;
|
||||
}
|
||||
|
@ -2,8 +2,8 @@
|
||||
|
||||
const char* smCharacterNames[] = {
|
||||
"Mario",
|
||||
"",
|
||||
"",
|
||||
"", // TODO: Luigi
|
||||
"", // TODO: Peach
|
||||
};
|
||||
|
||||
bool smCharacterGenders[] = {
|
||||
|
26
source/sthCharNames.c
Normal file
26
source/sthCharNames.c
Normal file
@ -0,0 +1,26 @@
|
||||
#include <stdbool.h>
|
||||
|
||||
const char* sthCharacterNames[] = {
|
||||
"Sonic",
|
||||
"", // TODO: Tails
|
||||
"", // TODO: Knuckles
|
||||
};
|
||||
|
||||
bool sthCharacterGenders[] = {
|
||||
true, // Male
|
||||
true, // Male
|
||||
true, // Male
|
||||
};
|
||||
|
||||
const char* sthCharacterFileNamesSpring[] = {
|
||||
"sth_Sonic",
|
||||
};
|
||||
const char* sthCharacterFileNamesSummer[] = {
|
||||
"sth_Sonic",
|
||||
};
|
||||
const char* sthCharacterFileNamesFall[] = {
|
||||
"sth_Sonic",
|
||||
};
|
||||
const char* sthCharacterFileNamesWinter[] = {
|
||||
"sth_Sonic",
|
||||
};
|
Loading…
Reference in New Issue
Block a user