mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-22 06:13:45 -07:00
isBossCard to true now that I can confirm it work
imagine in TitleCard_InitBossName setting isBossCard to false...
This commit is contained in:
parent
bb294129f7
commit
fe705cfcf5
1 changed files with 3 additions and 3 deletions
|
@ -758,13 +758,13 @@ void func_8002CDE4(GlobalContext* globalCtx, TitleCardContext* titleCtx) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void TitleCard_InitBossName(GlobalContext* globalCtx, TitleCardContext* titleCtx, void* texture, s16 x, s16 y, u8 width,
|
void TitleCard_InitBossName(GlobalContext* globalCtx, TitleCardContext* titleCtx, void* texture, s16 x, s16 y, u8 width,
|
||||||
u8 height, bool hasTranslation) {
|
u8 height, s16 hasTranslation) {
|
||||||
|
|
||||||
if (ResourceMgr_OTRSigCheck(texture))
|
if (ResourceMgr_OTRSigCheck(texture))
|
||||||
texture = ResourceMgr_LoadTexByName(texture);
|
texture = ResourceMgr_LoadTexByName(texture);
|
||||||
|
|
||||||
titleCtx->texture = texture;
|
titleCtx->texture = texture;
|
||||||
titleCtx->isBossCard = false;
|
titleCtx->isBossCard = true;
|
||||||
titleCtx->hasTranslation = hasTranslation;
|
titleCtx->hasTranslation = hasTranslation;
|
||||||
titleCtx->x = x;
|
titleCtx->x = x;
|
||||||
titleCtx->y = y;
|
titleCtx->y = y;
|
||||||
|
@ -1034,7 +1034,7 @@ void TitleCard_Draw(GlobalContext* globalCtx, TitleCardContext* titleCtx) {
|
||||||
shiftBottomY = 0x1000;
|
shiftBottomY = 0x1000;
|
||||||
|
|
||||||
//if this card is bosses cards, has translation and that is not using English language.
|
//if this card is bosses cards, has translation and that is not using English language.
|
||||||
if (titleCtx->isBossCard && titleCtx->hasTranslation && gSaveContext.language != LANGUAGE_ENG) {
|
if (titleCtx->isBossCard == 1 && titleCtx->hasTranslation == 1 && gSaveContext.language != LANGUAGE_ENG) {
|
||||||
if (gSaveContext.language == LANGUAGE_GER) {
|
if (gSaveContext.language == LANGUAGE_GER) {
|
||||||
textureLanguageOffset = (width * height * gSaveContext.language);
|
textureLanguageOffset = (width * height * gSaveContext.language);
|
||||||
shiftTopY = 0x400;
|
shiftTopY = 0x400;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue