2020-08-04 08:49:11 +02:00
|
|
|
#include "common.h"
|
|
|
|
|
2020-09-24 05:16:13 +02:00
|
|
|
void intro_logos_set_fade_alpha(s16 new_alpha) {
|
2020-08-16 05:19:00 +02:00
|
|
|
GameStatus* gameStatus = *gGameStatusPtr;
|
2020-08-13 03:17:03 +02:00
|
|
|
|
2020-08-14 22:10:34 +02:00
|
|
|
gameStatus->bootAlpha = new_alpha;
|
2020-08-12 20:48:51 +02:00
|
|
|
}
|
2020-08-04 08:49:11 +02:00
|
|
|
|
2020-09-24 05:16:13 +02:00
|
|
|
void intro_logos_set_fade_color(s16 arg0) {
|
2020-08-16 05:19:00 +02:00
|
|
|
GameStatus* gameStatus = *gGameStatusPtr;
|
2020-08-13 03:17:03 +02:00
|
|
|
|
2020-08-14 22:10:34 +02:00
|
|
|
gameStatus->bootRed = arg0;
|
|
|
|
gameStatus->bootGreen = arg0;
|
|
|
|
gameStatus->bootBlue = arg0;
|
2020-08-12 20:48:51 +02:00
|
|
|
}
|
2020-08-04 08:49:11 +02:00
|
|
|
|
2020-09-24 05:16:13 +02:00
|
|
|
s16 intro_logos_fade_in(subtract_val) {
|
2020-08-16 05:19:00 +02:00
|
|
|
GameStatus* gameStatus = *gGameStatusPtr;
|
2020-08-13 03:17:03 +02:00
|
|
|
|
2020-08-14 22:10:34 +02:00
|
|
|
if (gameStatus->bootAlpha != 0) {
|
|
|
|
gameStatus->bootAlpha -= subtract_val;
|
|
|
|
if (gameStatus->bootAlpha << 16 < 0) {
|
|
|
|
gameStatus->bootAlpha = 0;
|
2020-08-12 20:48:51 +02:00
|
|
|
}
|
2020-08-12 23:13:09 +02:00
|
|
|
} else {
|
2020-08-12 20:48:51 +02:00
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
return 0;
|
|
|
|
}
|
2020-08-04 08:49:11 +02:00
|
|
|
|
2020-09-24 05:16:13 +02:00
|
|
|
s16 intro_logos_fade_out(add_val) {
|
2020-08-16 05:19:00 +02:00
|
|
|
GameStatus* gameStatus = *gGameStatusPtr;
|
2020-08-13 03:17:03 +02:00
|
|
|
|
2020-08-14 22:10:34 +02:00
|
|
|
if (gameStatus->bootAlpha != 0xFF) {
|
|
|
|
gameStatus->bootAlpha += add_val;
|
|
|
|
if ((gameStatus->bootAlpha > 0xFF)) {
|
|
|
|
gameStatus->bootAlpha = 0xFF;
|
2020-08-12 20:48:51 +02:00
|
|
|
}
|
2020-08-12 23:13:09 +02:00
|
|
|
} else {
|
2020-08-12 20:48:51 +02:00
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
return 0;
|
|
|
|
}
|
2020-08-04 08:49:11 +02:00
|
|
|
|
2020-09-24 05:16:13 +02:00
|
|
|
void intro_logos_update_fade(void) {
|
2020-09-14 01:03:22 +02:00
|
|
|
func_80137D88(0, GAME_STATUS->bootAlpha);
|
|
|
|
func_80137E10(0, GAME_STATUS->bootBlue, GAME_STATUS->bootGreen, GAME_STATUS->bootRed);
|
2020-08-12 20:48:51 +02:00
|
|
|
}
|
|
|
|
|
2020-09-24 05:16:13 +02:00
|
|
|
void begin_state_battle(void) {
|
2020-08-12 20:48:51 +02:00
|
|
|
D_800A0900 = 5;
|
|
|
|
}
|
2020-08-04 08:49:11 +02:00
|
|
|
|
2020-08-17 19:44:41 +02:00
|
|
|
INCLUDE_ASM("code_ebd0_len_6a0", step_battle);
|
2020-08-15 09:01:33 +02:00
|
|
|
|
|
|
|
void func_80033B54(void) {
|
|
|
|
func_8003E5B0();
|
|
|
|
if (D_800A0900 < 0) {
|
|
|
|
draw_main_battle_ui();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
void func_80033B88(void) {
|
|
|
|
D_8009A650[0] |= 0x08;
|
|
|
|
nuContRmbForceStop();
|
|
|
|
D_800A0900 = 5;
|
|
|
|
}
|
|
|
|
|
2020-08-17 19:44:41 +02:00
|
|
|
INCLUDE_ASM("code_ebd0_len_6a0", func_80033BC0);
|
2020-08-15 09:01:33 +02:00
|
|
|
|
|
|
|
void func_80033E64(void) {
|
2020-08-18 18:43:55 +02:00
|
|
|
}
|