mirror of
https://github.com/RocketRobz/SuperAllStarPhotoStudio.git
synced 2025-06-18 17:15:35 -04:00
Add Conker from the Conker series
This commit is contained in:
parent
3ac78f6d05
commit
8255298b70
Binary file not shown.
After Width: | Height: | Size: 30 KiB |
Binary file not shown.
After Width: | Height: | Size: 121 KiB |
Binary file not shown.
After Width: | Height: | Size: 189 KiB |
4
assets/gfx_chars/conker_Conker.t3s
Normal file
4
assets/gfx_chars/conker_Conker.t3s
Normal file
@ -0,0 +1,4 @@
|
||||
--atlas -f rgba -z auto
|
||||
"characters/Conker series/All Seasons/zoom0/Conker.png"
|
||||
"characters/Conker series/All Seasons/zoom1/Conker.png"
|
||||
"characters/Conker series/All Seasons/zoom2/Conker.png"
|
13
include/conkerCharNames.h
Normal file
13
include/conkerCharNames.h
Normal file
@ -0,0 +1,13 @@
|
||||
#ifndef _ROCKET_PHOTO_SHOOT_CONKER_CHAR_NAMES_HPP
|
||||
#define _ROCKET_PHOTO_SHOOT_CONKER_CHAR_NAMES_HPP
|
||||
|
||||
extern const char* conkerCharacterNames[];
|
||||
|
||||
extern bool conkerCharacterGenders[];
|
||||
|
||||
extern const char* conkerCharacterFileNamesSpring[];
|
||||
extern const char* conkerCharacterFileNamesSummer[];
|
||||
extern const char* conkerCharacterFileNamesFall[];
|
||||
extern const char* conkerCharacterFileNamesWinter[];
|
||||
|
||||
#endif
|
26
source/conkerCharNames.c
Normal file
26
source/conkerCharNames.c
Normal file
@ -0,0 +1,26 @@
|
||||
#include <stdbool.h>
|
||||
|
||||
const char* conkerCharacterNames[] = {
|
||||
"Conker",
|
||||
"",
|
||||
"",
|
||||
};
|
||||
|
||||
bool conkerCharacterGenders[] = {
|
||||
true, // Male
|
||||
true, // Male
|
||||
true, // Male
|
||||
};
|
||||
|
||||
const char* conkerCharacterFileNamesSpring[] = {
|
||||
"conker_Conker",
|
||||
};
|
||||
const char* conkerCharacterFileNamesSummer[] = {
|
||||
"conker_Conker",
|
||||
};
|
||||
const char* conkerCharacterFileNamesFall[] = {
|
||||
"conker_Conker",
|
||||
};
|
||||
const char* conkerCharacterFileNamesWinter[] = {
|
||||
"conker_Conker",
|
||||
};
|
@ -11,6 +11,7 @@
|
||||
#include "smCharNames.h"
|
||||
#include "sthCharNames.h"
|
||||
#include "jfgCharNames.h"
|
||||
#include "conkerCharNames.h"
|
||||
|
||||
#include "import_ss1bgnames.h"
|
||||
#include "import_ss2bgnames.h"
|
||||
@ -20,7 +21,7 @@
|
||||
|
||||
#include <unistd.h>
|
||||
|
||||
static int charPageOrder[] = {4, 7, 5, 6, 0, 1, 2, 3};
|
||||
static int charPageOrder[] = {4, 8, 7, 5, 6, 0, 1, 2, 3};
|
||||
|
||||
static int metalXpos = 0;
|
||||
static int currentCharacterRendered = 0;
|
||||
@ -57,7 +58,9 @@ void PhotoStudio::getMaxChars() {
|
||||
} else {
|
||||
// Characters
|
||||
const int highlightedGame = char_highlightedGame[currentCharNum];
|
||||
if (charPageOrder[highlightedGame] == 7) {
|
||||
if (charPageOrder[highlightedGame] == 8) {
|
||||
import_totalCharacters = 0;
|
||||
} else if (charPageOrder[highlightedGame] == 7) {
|
||||
import_totalCharacters = 1;
|
||||
} else if (charPageOrder[highlightedGame] == 6) {
|
||||
import_totalCharacters = 0;
|
||||
@ -110,6 +113,8 @@ const char* PhotoStudio::import_characterName(void) const {
|
||||
return sthCharacterNames[importCharacterList_cursorPosition[currentCharNum]];
|
||||
case 7:
|
||||
return jfgCharacterNames[importCharacterList_cursorPosition[currentCharNum]];
|
||||
case 8:
|
||||
return conkerCharacterNames[importCharacterList_cursorPosition[currentCharNum]];
|
||||
}
|
||||
return "null";
|
||||
}
|
||||
@ -160,6 +165,17 @@ const char* PhotoStudio::import_characterFileName(void) const {
|
||||
case 3:
|
||||
return jfgCharacterFileNamesWinter[importCharacterList_cursorPosition[currentCharNum]];
|
||||
}
|
||||
case 8:
|
||||
switch (seasonNo[currentCharNum]) {
|
||||
case 0:
|
||||
return conkerCharacterFileNamesSpring[importCharacterList_cursorPosition[currentCharNum]];
|
||||
case 1:
|
||||
return conkerCharacterFileNamesSummer[importCharacterList_cursorPosition[currentCharNum]];
|
||||
case 2:
|
||||
return conkerCharacterFileNamesFall[importCharacterList_cursorPosition[currentCharNum]];
|
||||
case 3:
|
||||
return conkerCharacterFileNamesWinter[importCharacterList_cursorPosition[currentCharNum]];
|
||||
}
|
||||
}
|
||||
return "null";
|
||||
}
|
||||
@ -192,6 +208,8 @@ const char* PhotoStudio::import_characterNameDisplay(void) const {
|
||||
return sthCharacterNames[importCharacterList_cursorPosition[currentCharNum]];
|
||||
case 7:
|
||||
return jfgCharacterNames[importCharacterList_cursorPosition[currentCharNum]];
|
||||
case 8:
|
||||
return conkerCharacterNames[importCharacterList_cursorPosition[currentCharNum]];
|
||||
}
|
||||
return "null";
|
||||
}
|
||||
@ -364,6 +382,9 @@ void PhotoStudio::Draw(void) const {
|
||||
|
||||
// Game name
|
||||
switch (charPageOrder[char_highlightedGame[currentCharNum]]) {
|
||||
case 8:
|
||||
Gui::DrawStringCentered(0, 8, 0.50, WHITE, "Conker series");
|
||||
break;
|
||||
case 7:
|
||||
Gui::DrawStringCentered(0, 8, 0.50, WHITE, "Jet Force Gemini");
|
||||
break;
|
||||
@ -408,7 +429,12 @@ void PhotoStudio::Draw(void) const {
|
||||
if (!displayNothing) {
|
||||
int i2 = 48;
|
||||
for (int i = import_characterShownFirst[currentCharNum]; i < import_characterShownFirst[currentCharNum]+3; i++) {
|
||||
if (charPageOrder[char_highlightedGame[currentCharNum]] == 7) {
|
||||
if (charPageOrder[char_highlightedGame[currentCharNum]] == 8) {
|
||||
if (i >= 1) break;
|
||||
GFX::DrawSprite(sprites_item_button_idx, 16, i2-20);
|
||||
GFX::DrawSprite((conkerCharacterGenders[i] ? sprites_icon_male_idx : sprites_icon_female_idx), 12, i2-8);
|
||||
Gui::DrawString(64, i2, 0.65, WHITE, conkerCharacterNames[i]);
|
||||
} else if (charPageOrder[char_highlightedGame[currentCharNum]] == 7) {
|
||||
if (i >= 2) break;
|
||||
GFX::DrawSprite(sprites_item_button_idx, 16, i2-20);
|
||||
GFX::DrawSprite((jfgCharacterGenders[i] ? sprites_icon_male_idx : sprites_icon_female_idx), 12, i2-8);
|
||||
@ -669,7 +695,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] = 7;
|
||||
if (char_highlightedGame[currentCharNum] < 0) char_highlightedGame[currentCharNum] = 8;
|
||||
getMaxChars();
|
||||
renderTop = true;
|
||||
}
|
||||
@ -677,7 +703,7 @@ void PhotoStudio::Logic(u32 hDown, u32 hHeld, touchPosition touch) {
|
||||
if (hDown & KEY_DRIGHT) {
|
||||
sndHighlight();
|
||||
char_highlightedGame[currentCharNum]++;
|
||||
if (char_highlightedGame[currentCharNum] > 7) char_highlightedGame[currentCharNum] = 0;
|
||||
if (char_highlightedGame[currentCharNum] > 8) char_highlightedGame[currentCharNum] = 0;
|
||||
getMaxChars();
|
||||
renderTop = true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user