Renaming gcdialog_showText function
This commit is contained in:
@@ -30,45 +30,49 @@ void ability_use(s32 arg0){
|
||||
break;
|
||||
case 0x3://L8029569C //
|
||||
if(map_get() == MAP_1_SM_SPIRAL_MOUNTAIN){
|
||||
sp2C = 0xDFC;
|
||||
sp2C = ASSET_DFC_TEXT_UNKNOWN;
|
||||
}
|
||||
break;
|
||||
case 0x4://L802956B8 //
|
||||
if(map_get() == MAP_1_SM_SPIRAL_MOUNTAIN){
|
||||
sp2C = 0xE02;
|
||||
sp2C = ASSET_E02_TEXT_UNKNOWN;
|
||||
}
|
||||
break;
|
||||
case 0x5://L802956D4 //barge
|
||||
if(map_get() == MAP_1_SM_SPIRAL_MOUNTAIN){
|
||||
sp2C = 0xE05;
|
||||
sp2C = ASSET_E05_TEXT_UNKNOWN;
|
||||
}
|
||||
break;
|
||||
case 0x6://L802956F0 //slide
|
||||
sp28 = 0;
|
||||
if(!ability_isUnlocked(ABILITY_10_TALON_TROT)){
|
||||
if(map_get() == MAP_2_MM_MUMBOS_MOUNTAIN){
|
||||
sp2C = 0xB4D;
|
||||
if (!ability_isUnlocked(ABILITY_10_TALON_TROT)) {
|
||||
if (map_get() == MAP_2_MM_MUMBOS_MOUNTAIN) {
|
||||
sp2C = ASSET_B4D_TEXT_UNKNOWN;
|
||||
}
|
||||
else
|
||||
else {
|
||||
return;
|
||||
}
|
||||
}
|
||||
else{
|
||||
else {
|
||||
abilityprogress_usedAbilities |= (1 << arg0);
|
||||
}
|
||||
break;
|
||||
case 0x8://L80295738 //fly
|
||||
sp2C = 0xA26;
|
||||
sp2C = ASSET_A26_DIALOG_NEED_RED_FEATHERS_TO_FLY;
|
||||
break;
|
||||
case 0x7://L80295740 //egg
|
||||
case 0x9://L80295740 //shock
|
||||
break;
|
||||
}//L80295744
|
||||
if(sp28)
|
||||
|
||||
if (sp28) {
|
||||
comusic_playTrack(COMUSIC_2B_DING_B);
|
||||
|
||||
if(sp2C)
|
||||
func_80311480(sp2C, 4, NULL, NULL, NULL, 0);
|
||||
|
||||
}
|
||||
|
||||
if (sp2C) {
|
||||
gcdialog_showText(sp2C, 4, NULL, NULL, NULL, 0);
|
||||
}
|
||||
|
||||
abilityprogress_usedAbilities |= (1 << arg0);
|
||||
}
|
||||
|
||||
@@ -77,7 +81,7 @@ int ability_hasUsed(enum ability_e move){
|
||||
}
|
||||
|
||||
void ability_setHasUsed(enum ability_e move){
|
||||
abilityprogress_usedAbilities |= (1 << move);
|
||||
abilityprogress_usedAbilities |= (1 << move);
|
||||
}
|
||||
|
||||
int ability_hasLearned(enum ability_e move){
|
||||
@@ -97,9 +101,9 @@ void ability_clearAll(void){
|
||||
|
||||
void ability_setLearned(s32 move, s32 val){
|
||||
if(val){
|
||||
abilityprogress_learnedAbilities |= (1 << move);
|
||||
abilityprogress_learnedAbilities |= (1 << move);
|
||||
}else{
|
||||
abilityprogress_learnedAbilities &= ~(1 << move);
|
||||
abilityprogress_learnedAbilities &= ~(1 << move);
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -123,7 +123,7 @@ void __baMarker_8028B848(void){
|
||||
if(player_getTransformation() == TRANSFORM_1_BANJO){
|
||||
__baMarker_8028B7F4();
|
||||
}
|
||||
func_80311480(s0, 0x2A, NULL, NULL, NULL, 0);
|
||||
gcdialog_showText(s0, 0x2A, NULL, NULL, NULL, 0);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -717,7 +717,7 @@ void __baMarker_resolveCollision(Prop *other_prop){
|
||||
miscFlag_set(MISC_FLAG_2_ON_SPRING_PAD);
|
||||
}else{
|
||||
if(!volatileFlag_getAndSet(VOLATILE_FLAG_C_HAS_SEEN_SPRING_PAD, 1)){
|
||||
func_80311480(ASSET_A24_DIALOG_JUMP_PAD_DISCOVERED, 4, 0, 0, 0, 0);
|
||||
gcdialog_showText(ASSET_A24_DIALOG_JUMP_PAD_DISCOVERED, 4, 0, 0, 0, 0);
|
||||
}
|
||||
}
|
||||
break;
|
||||
@@ -729,7 +729,7 @@ void __baMarker_resolveCollision(Prop *other_prop){
|
||||
miscFlag_set(MISC_FLAG_1_ON_FLIGHT_PAD);
|
||||
}
|
||||
else if(! volatileFlag_getAndSet(VOLATILE_FLAG_D_HAS_SEEN_FLIGHT_PAD, 1)){
|
||||
func_80311480(ASSET_A25_DIALOG_FLY_DISC_DISCOVERED, 4, 0, 0, 0, 0);
|
||||
gcdialog_showText(ASSET_A25_DIALOG_FLY_DISC_DISCOVERED, 4, 0, 0, 0, 0);
|
||||
}
|
||||
break;
|
||||
|
||||
|
@@ -134,7 +134,7 @@ void bsjig_jiggy_end(void){
|
||||
}
|
||||
}//L802B0E88
|
||||
if(sp2C != 0){
|
||||
func_80311480(sp2C, sp28, 0, 0, 0, 0);
|
||||
gcdialog_showText(sp2C, sp28, 0, 0, 0, 0);
|
||||
}
|
||||
}//L802B0EA4
|
||||
func_80298A64();
|
||||
|
@@ -62,7 +62,7 @@ void chBeehive_update(Actor *this){
|
||||
){
|
||||
if(func_8028ECAC() == 0 || func_8028ECAC() == BSGROUP_8_TROT){
|
||||
if( player_getTransformation() == TRANSFORM_1_BANJO
|
||||
&& func_80311480(ASSET_D96_DIALOG_BEEHIVE_MEET, 0, NULL, NULL, NULL, 0)
|
||||
&& gcdialog_showText(ASSET_D96_DIALOG_BEEHIVE_MEET, 0, NULL, NULL, NULL, 0)
|
||||
){
|
||||
fileProgressFlag_set(FILEPROG_D_BEEHIVE_TEXT, 1);
|
||||
}
|
||||
|
@@ -405,7 +405,7 @@ void chBottlesBonus_lose(u8 *arg0, enum asset_e text_id) {
|
||||
*arg0 = 1;
|
||||
timedFunc_set_0(2.0f, chBottlesBonusCursor_func_802DF99C);
|
||||
func_80311714(0);
|
||||
func_80311480(text_id, 0x86, actor->position, chBottlesBonusMarker, chBottlesBonus_func_802DE224, NULL);
|
||||
gcdialog_showText(text_id, 0x86, actor->position, chBottlesBonusMarker, chBottlesBonus_func_802DE224, NULL);
|
||||
func_80311714(1);
|
||||
}
|
||||
else{
|
||||
@@ -424,7 +424,7 @@ void chBottlesBonus_completedPuzzle(void) {
|
||||
actor = marker_getActor(chBottlesBonusMarker);
|
||||
D_8037DCC0[chBottleBonusPuzzleIndex] = TRUE;
|
||||
func_80311714(0);
|
||||
func_80311480(D_803681A0[chBottleBonusPuzzleIndex + 1].text_id, 0x86, actor->position, chBottlesBonusMarker, chBottlesBonus_IncrementPuzzle, NULL);
|
||||
gcdialog_showText(D_803681A0[chBottleBonusPuzzleIndex + 1].text_id, 0x86, actor->position, chBottlesBonusMarker, chBottlesBonus_IncrementPuzzle, NULL);
|
||||
func_80311714(1);
|
||||
}
|
||||
|
||||
@@ -521,7 +521,7 @@ void chBottlesBonus_update(Actor *this) {
|
||||
func_8025A7DC(COMUSIC_98_BBONUS_PIECES_SHUFFLE);
|
||||
if (D_8037DCC7 == 0) {
|
||||
func_80311714(0);
|
||||
func_80311480(0xE24, 0x87, this->position, chBottlesBonusMarker, chBottlesBonus_startTimer, NULL);
|
||||
gcdialog_showText(ASSET_E24_TEXT_UNKNOWN, 0x87, this->position, chBottlesBonusMarker, chBottlesBonus_startTimer, NULL);
|
||||
func_80311714(1);
|
||||
D_8037DCC7 = 1;
|
||||
}
|
||||
|
@@ -270,7 +270,7 @@ void chCrab_update(Actor *this) {
|
||||
&& !func_8028ECAC()
|
||||
) {
|
||||
if ((this->state != 6) && (this->state != 5)) {
|
||||
func_80311480(ASSET_D32_DIALOG_MUTANT_CRAB_MEET, 0xF, this->position, NULL, __chCrab_mutantTextCallback, NULL);
|
||||
gcdialog_showText(ASSET_D32_DIALOG_MUTANT_CRAB_MEET, 0xF, this->position, NULL, __chCrab_mutantTextCallback, NULL);
|
||||
mapSpecificFlags_set(0, TRUE);
|
||||
levelSpecificFlags_set(0xE, TRUE);
|
||||
this->is_first_encounter = TRUE;
|
||||
@@ -283,10 +283,10 @@ void chCrab_update(Actor *this) {
|
||||
&& !jiggyscore_isCollected(JIGGY_10_TTC_SANDCASTLE)
|
||||
&& func_80329530(this, 1600)
|
||||
) {
|
||||
func_80311480(0xA12, 4, this->position, NULL, NULL, NULL);
|
||||
gcdialog_showText(0xA12, 4, this->position, NULL, NULL, NULL);
|
||||
mapSpecificFlags_set(0, TRUE);
|
||||
} else if (mapSpecificFlags_get(1)) {
|
||||
func_80311480(0xA13, 4, this->position, NULL, NULL, NULL);
|
||||
gcdialog_showText(0xA13, 4, this->position, NULL, NULL, NULL);
|
||||
mapSpecificFlags_set(1, FALSE);
|
||||
}
|
||||
}
|
||||
|
@@ -60,7 +60,7 @@ void chgloop_update(Actor *this){
|
||||
|
||||
if( !mapSpecificFlags_get(2)
|
||||
&& func_80329530(this, 350)
|
||||
&& func_80311480(ASSET_D34_TEXT_GLOOP_MEET, 0, NULL, NULL, NULL, NULL)
|
||||
&& gcdialog_showText(ASSET_D34_TEXT_GLOOP_MEET, 0, NULL, NULL, NULL, NULL)
|
||||
){
|
||||
mapSpecificFlags_set(2, TRUE);
|
||||
}
|
||||
|
@@ -46,7 +46,7 @@ void __chJinjo_802CDBA8(ActorMarker *this, ActorMarker *other){
|
||||
|
||||
if(actorPtr->state < 5){
|
||||
if(!fileProgressFlag_get(FILEPROG_E_JINJO_TEXT)){
|
||||
func_80311480(__chJinjo_getMeetDialogId(actorPtr->marker->id), 4, 0, 0, 0, 0);
|
||||
gcdialog_showText(__chJinjo_getMeetDialogId(actorPtr->marker->id), 4, 0, 0, 0, 0);
|
||||
fileProgressFlag_set(FILEPROG_E_JINJO_TEXT, 1);
|
||||
}
|
||||
subaddie_set_state_with_direction(actorPtr, 6, 0.0f , -1);
|
||||
|
@@ -157,10 +157,10 @@ void chmole_healthRefill(ActorMarker *marker, enum asset_e arg1, s32 arg2){
|
||||
if( arg1 == moleTable[actor->unkF4_8-9].learn_text
|
||||
&& item_getCount(ITEM_14_HEALTH) < item_getCount(ITEM_15_HEALTH_TOTAL)
|
||||
){
|
||||
func_80311480(ASSET_D39_TEXT_BOTTLES_REFILL_HEALTH, 7, 0, actor->marker, chmole_healthRefill, chmole_additionalAbilityLearnActions);
|
||||
gcdialog_showText(ASSET_D39_TEXT_BOTTLES_REFILL_HEALTH, 7, 0, actor->marker, chmole_healthRefill, chmole_additionalAbilityLearnActions);
|
||||
}//L802D9738
|
||||
else if(arg1 == moleTable[actor->unkF4_8-9].learn_text || arg1 == ASSET_D39_TEXT_BOTTLES_REFILL_HEALTH){
|
||||
func_80311480(chmole_learnedAllGameAbilities()? 0xa87 : chmole_learnedAllLevelAbilitiesDialog(), 7, 0, actor->marker, chmole_healthRefill, NULL);
|
||||
gcdialog_showText(chmole_learnedAllGameAbilities()? 0xa87 : chmole_learnedAllLevelAbilitiesDialog(), 7, 0, actor->marker, chmole_healthRefill, NULL);
|
||||
}
|
||||
else{//L802D97BC
|
||||
if(actor->is_first_encounter){
|
||||
@@ -242,7 +242,7 @@ int chmole_learnAbility(Actor *this){
|
||||
break;
|
||||
}
|
||||
}//L802D9A9C
|
||||
func_80311480(sp2C, sp28, this->position, this->marker, chmole_healthRefill, chmole_additionalAbilityLearnActions);
|
||||
gcdialog_showText(sp2C, sp28, this->position, this->marker, chmole_healthRefill, chmole_additionalAbilityLearnActions);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
@@ -81,7 +81,7 @@ static void __chsnacker_start_dialog(Actor *this) {
|
||||
text_index = mapSpecificFlags_getN(8, 3);
|
||||
if( !this->is_first_encounter ) {
|
||||
if(text_index < 4) {
|
||||
if(func_80311480(0xA1B + text_index, 0, NULL, NULL, NULL, NULL)){
|
||||
if(gcdialog_showText(0xA1B + text_index, 0, NULL, NULL, NULL, NULL)){
|
||||
text_index++;
|
||||
mapSpecificFlags_setN(8, text_index, 3);
|
||||
this->is_first_encounter = TRUE;
|
||||
@@ -157,7 +157,7 @@ static void __chsnacker_ow(ActorMarker *marker, ActorMarker *other){
|
||||
|
||||
this = marker_getActor(marker);
|
||||
if(level_get() == LEVEL_2_TREASURE_TROVE_COVE && !player_isDead()){
|
||||
func_80311480(0xA29, 0, NULL, NULL, NULL, NULL);
|
||||
gcdialog_showText(0xA29, 0, NULL, NULL, NULL, NULL);
|
||||
}//L802E10A4
|
||||
|
||||
if(this->state == 4){
|
||||
|
@@ -170,7 +170,7 @@ void chTermite_update(Actor *this) {
|
||||
&& func_8028ECAC() == 0
|
||||
&& player_getTransformation() == TRANSFORM_1_BANJO
|
||||
) {
|
||||
func_80311480(ASSET_B43_DIALOG_TERMITE_MEET_AS_BEAR, 7, this->position, this->marker, __chTermite_testCallback, NULL);
|
||||
gcdialog_showText(ASSET_B43_DIALOG_TERMITE_MEET_AS_BEAR, 7, this->position, this->marker, __chTermite_testCallback, NULL);
|
||||
mapSpecificFlags_set(0, TRUE);
|
||||
levelSpecificFlags_set(0xD, TRUE);
|
||||
this->is_first_encounter = TRUE;
|
||||
@@ -182,11 +182,11 @@ void chTermite_update(Actor *this) {
|
||||
&& player_getTransformation() == TRANSFORM_2_TERMITE
|
||||
) {
|
||||
if (!levelSpecificFlags_get(0xB)) {
|
||||
if (func_80311480(ASSET_B41_DIALOG_TERMITE_COOL_SHORTS, 0, NULL, NULL, NULL, NULL)) {
|
||||
if (gcdialog_showText(ASSET_B41_DIALOG_TERMITE_COOL_SHORTS, 0, NULL, NULL, NULL, NULL)) {
|
||||
levelSpecificFlags_set(0xB, TRUE);
|
||||
this->unk138_23 = TRUE;
|
||||
}
|
||||
} else if (!levelSpecificFlags_get(0xC) && !this->unk138_23 && (func_80311480(ASSET_B42_DIALOG_TERMITE_COOL_BACKPACK, 0, NULL, NULL, NULL, NULL))) {
|
||||
} else if (!levelSpecificFlags_get(0xC) && !this->unk138_23 && (gcdialog_showText(ASSET_B42_DIALOG_TERMITE_COOL_BACKPACK, 0, NULL, NULL, NULL, NULL))) {
|
||||
levelSpecificFlags_set(0xC, TRUE);
|
||||
}
|
||||
}
|
||||
|
@@ -81,7 +81,7 @@ void chtrainers_update(Actor *this){
|
||||
&& !volatileFlag_get(VOLATILE_FLAG_F_HAS_MEET_TURBO_SHOES)
|
||||
&& player_getTransformation() == TRANSFORM_1_BANJO
|
||||
){
|
||||
if(func_80311480(0xda4, 0, NULL, NULL, NULL, NULL)){
|
||||
if(gcdialog_showText(0xda4, 0, NULL, NULL, NULL, NULL)){
|
||||
volatileFlag_set(VOLATILE_FLAG_F_HAS_MEET_TURBO_SHOES, TRUE);
|
||||
}
|
||||
}//L802CA620
|
||||
|
@@ -69,7 +69,7 @@ void chwadingboots_update(Actor *this){
|
||||
if(!func_80329530(this, 250)) break;
|
||||
if(player_getTransformation() != TRANSFORM_1_BANJO) break;
|
||||
|
||||
if(func_80311480(ASSET_DA5_DIALOG_WADINGBOOTS_MEET, 0, NULL, NULL, NULL, NULL)){
|
||||
if(gcdialog_showText(ASSET_DA5_DIALOG_WADINGBOOTS_MEET, 0, NULL, NULL, NULL, NULL)){
|
||||
volatileFlag_set(VOLATILE_FLAG_10_HAS_MEET_WADING_BOOTS, TRUE);
|
||||
}
|
||||
|
||||
|
@@ -342,7 +342,7 @@ void func_8029B890(void){
|
||||
func_8029B62C();
|
||||
return;
|
||||
}
|
||||
func_80311480(0xf81, 7, NULL, NULL, func_8029B85C, NULL);
|
||||
gcdialog_showText(0xf81, 7, NULL, NULL, func_8029B85C, NULL);
|
||||
fileProgressFlag_set(FILEPROG_A8_HAS_DIED, TRUE);
|
||||
}
|
||||
else{
|
||||
|
@@ -448,7 +448,7 @@ void chBeeSwarm_update(Actor *this) {
|
||||
if (!fileProgressFlag_get(FILEPROG_8F_MET_BEE_INFESTED_BEEHIVE) && subaddie_playerIsWithinCylinder(this, 250, 300)
|
||||
&& ((func_8028ECAC() == 0) || (func_8028ECAC() == BSGROUP_8_TROT))
|
||||
&& (player_getTransformation() == TRANSFORM_1_BANJO)
|
||||
&& (func_80311480(0xDA6, 0, NULL, NULL, NULL, NULL) != 0)
|
||||
&& (gcdialog_showText(0xDA6, 0, NULL, NULL, NULL, NULL) != 0)
|
||||
) {
|
||||
fileProgressFlag_set(FILEPROG_8F_MET_BEE_INFESTED_BEEHIVE, TRUE);
|
||||
}
|
||||
|
@@ -144,12 +144,12 @@ static void __chMumbo_textCallback(ActorMarker *caller, enum asset_e text_id, s3
|
||||
this = marker_getActor(caller);
|
||||
switch(text_id){
|
||||
case ASSET_D8F_DIALOG_MUMBO_MEET: //L802D1A04
|
||||
func_80311480((this->unk38_0) ? ASSET_DAA_DIALOG_MUMBO_HAS_ENOUGH_TOKENS : ASSET_DAB_DIALOG_MUMBO_NOT_ENOUGH_TOKENS, 0xe, this->position, this->marker, __chMumbo_textCallback, NULL);
|
||||
gcdialog_showText((this->unk38_0) ? ASSET_DAA_DIALOG_MUMBO_HAS_ENOUGH_TOKENS : ASSET_DAB_DIALOG_MUMBO_NOT_ENOUGH_TOKENS, 0xe, this->position, this->marker, __chMumbo_textCallback, NULL);
|
||||
return;
|
||||
|
||||
case ASSET_D90_DIALOG_MUMBO_MAGIC_PAID_FOR: //L802D1A40
|
||||
fileProgressFlag_set(FILEPROG_12_HAS_TRANSFORMED_BEFORE, TRUE);
|
||||
func_80311480(ASSET_D8F_DIALOG_MUMBO_MEET + D_8037DDF0, 4, NULL, NULL, NULL, NULL);
|
||||
gcdialog_showText(ASSET_D8F_DIALOG_MUMBO_MEET + D_8037DDF0, 4, NULL, NULL, NULL, NULL);
|
||||
gcpausemenu_80314AC8(1);
|
||||
break;
|
||||
|
||||
@@ -192,16 +192,16 @@ static void __chMumbo_textCallback(ActorMarker *caller, enum asset_e text_id, s3
|
||||
|
||||
void chMumbo_func_802D1B8C(Actor *this, enum transformation_e transform_id) {
|
||||
if (this->unk10_12 != 0) {
|
||||
func_80311480(fileProgressFlag_getN(FILEPROG_BB_MUMBO_MISTAKE_INDEX, 2) + ASSET_DAF_DIALOG_MUMBO_TREX_MISTAKE, 0xE, this->position, this->marker, __chMumbo_textCallback, NULL);
|
||||
gcdialog_showText(fileProgressFlag_getN(FILEPROG_BB_MUMBO_MISTAKE_INDEX, 2) + ASSET_DAF_DIALOG_MUMBO_TREX_MISTAKE, 0xE, this->position, this->marker, __chMumbo_textCallback, NULL);
|
||||
return;
|
||||
}
|
||||
if (fileProgressFlag_get(FILEPROG_12_HAS_TRANSFORMED_BEFORE)) {
|
||||
if (this->velocity[0] == 0.0f) {
|
||||
func_80311480(transform_id + ASSET_D8F_DIALOG_MUMBO_MEET, 6, this->position, this->marker, __chMumbo_textCallback, NULL);
|
||||
gcdialog_showText(transform_id + ASSET_D8F_DIALOG_MUMBO_MEET, 6, this->position, this->marker, __chMumbo_textCallback, NULL);
|
||||
return;
|
||||
}
|
||||
if (map_get() == MAP_7A_GL_CRYPT && transform_id == TRANSFORM_3_PUMPKIN && !fileProgressFlag_get(FILEPROG_F7_HAS_TRANSFORMED_IN_CRYPT)) {
|
||||
func_80311480(ASSET_DAD_DIALOG_MUMBO_XFORM_IN_CRYPT, 6, this->position, this->marker, __chMumbo_textCallback, NULL);
|
||||
gcdialog_showText(ASSET_DAD_DIALOG_MUMBO_XFORM_IN_CRYPT, 6, this->position, this->marker, __chMumbo_textCallback, NULL);
|
||||
fileProgressFlag_set(FILEPROG_F7_HAS_TRANSFORMED_IN_CRYPT, TRUE);
|
||||
return;
|
||||
}
|
||||
@@ -209,7 +209,7 @@ void chMumbo_func_802D1B8C(Actor *this, enum transformation_e transform_id) {
|
||||
subaddie_set_state(this, 4U);
|
||||
return;
|
||||
}
|
||||
func_80311480(ASSET_D90_DIALOG_MUMBO_MAGIC_PAID_FOR, 0xE, this->position, this->marker, __chMumbo_textCallback, NULL);
|
||||
gcdialog_showText(ASSET_D90_DIALOG_MUMBO_MAGIC_PAID_FOR, 0xE, this->position, this->marker, __chMumbo_textCallback, NULL);
|
||||
}
|
||||
|
||||
void chMumbo_update(Actor *this) {
|
||||
@@ -282,7 +282,7 @@ void chMumbo_update(Actor *this) {
|
||||
&& !volatileFlag_get(VOLATILE_FLAG_1F_IN_CHARACTER_PARADE)
|
||||
) {
|
||||
subaddie_set_state(this, 3);
|
||||
func_80311480(ASSET_D8F_DIALOG_MUMBO_MEET, 0xE, this->position, this->marker, __chMumbo_textCallback, NULL);
|
||||
gcdialog_showText(ASSET_D8F_DIALOG_MUMBO_MEET, 0xE, this->position, this->marker, __chMumbo_textCallback, NULL);
|
||||
fileProgressFlag_set(FILEPROG_11_HAS_MET_MUMBO, TRUE);
|
||||
break;
|
||||
}
|
||||
@@ -293,7 +293,7 @@ void chMumbo_update(Actor *this) {
|
||||
&& this->unk38_0
|
||||
){
|
||||
subaddie_set_state(this, 3);
|
||||
func_80311480(ASSET_DAA_DIALOG_MUMBO_HAS_ENOUGH_TOKENS, 0xE, this->position, this->marker, __chMumbo_textCallback, NULL);
|
||||
gcdialog_showText(ASSET_DAA_DIALOG_MUMBO_HAS_ENOUGH_TOKENS, 0xE, this->position, this->marker, __chMumbo_textCallback, NULL);
|
||||
fileProgressFlag_set(FILEPROG_DC_HAS_HAD_ENOUGH_TOKENS_BEFORE, TRUE);
|
||||
break;
|
||||
}
|
||||
@@ -331,7 +331,7 @@ void chMumbo_update(Actor *this) {
|
||||
&& randf() < 0.01
|
||||
&& sp48
|
||||
) {
|
||||
func_80311480(ASSET_DAE_DIALOG_MUMBO_TREX_START, 6, NULL, this->marker, __chMumbo_textCallback, NULL);
|
||||
gcdialog_showText(ASSET_DAE_DIALOG_MUMBO_TREX_START, 6, NULL, this->marker, __chMumbo_textCallback, NULL);
|
||||
fileProgressFlag_set(FILEPROG_BA_HAS_SEEN_TREX_TEXT, 1);
|
||||
this->is_first_encounter = TRUE;
|
||||
subaddie_set_state(this, 3);
|
||||
@@ -360,7 +360,7 @@ void chMumbo_update(Actor *this) {
|
||||
break;
|
||||
}
|
||||
func_8025A6EC(COMUSIC_2C_BUZZER, 22000);
|
||||
if ((levelSpecificFlags_get(0x3E) == 0) && (func_80311480(ASSET_DAC_DIALOG_MUMBO_FAIL_TO_BUY, 0, NULL, NULL, NULL, NULL) != 0)) {
|
||||
if ((levelSpecificFlags_get(0x3E) == 0) && (gcdialog_showText(ASSET_DAC_DIALOG_MUMBO_FAIL_TO_BUY, 0, NULL, NULL, NULL, NULL) != 0)) {
|
||||
levelSpecificFlags_set(0x3E, 1);
|
||||
}
|
||||
}
|
||||
@@ -418,7 +418,7 @@ void chMumbo_update(Actor *this) {
|
||||
}
|
||||
if (this->is_first_encounter) {
|
||||
subaddie_set_state(this, 3);
|
||||
func_80311480(ASSET_DAF_DIALOG_MUMBO_TREX_MISTAKE, 6, NULL, this->marker, __chMumbo_textCallback, NULL);
|
||||
gcdialog_showText(ASSET_DAF_DIALOG_MUMBO_TREX_MISTAKE, 6, NULL, this->marker, __chMumbo_textCallback, NULL);
|
||||
break;
|
||||
}
|
||||
gcpausemenu_80314AC8(1);
|
||||
@@ -435,7 +435,7 @@ void chMumbo_update(Actor *this) {
|
||||
sp48 = chMumbo_withinHorzDistToPlayer(0, -0x6B, 0xBC);
|
||||
}
|
||||
if (sp48 != 0) {
|
||||
func_80311480(ASSET_DA7_DIALOG_MUMBO_CCW_SUMMER, 7, NULL, NULL, NULL, NULL);
|
||||
gcdialog_showText(ASSET_DA7_DIALOG_MUMBO_CCW_SUMMER, 7, NULL, NULL, NULL, NULL);
|
||||
volatileFlag_set(FILEPROG_11_HAS_MET_MUMBO, TRUE);
|
||||
}
|
||||
}
|
||||
@@ -451,7 +451,7 @@ void chMumbo_update(Actor *this) {
|
||||
sp48 = chMumbo_withinHorzDistToPlayer(0, -0x6B, 0xBC);
|
||||
}
|
||||
if (sp48 != 0) {
|
||||
func_80311480(ASSET_DA8_DIALOG_MUMBO_CCW_AUTUMN, 7, NULL, NULL, NULL, NULL);
|
||||
gcdialog_showText(ASSET_DA8_DIALOG_MUMBO_CCW_AUTUMN, 7, NULL, NULL, NULL, NULL);
|
||||
volatileFlag_set(FILEPROG_12_HAS_TRANSFORMED_BEFORE, TRUE);
|
||||
}
|
||||
}
|
||||
@@ -512,7 +512,7 @@ void chMumbo_detransformWarn(s32 this, s32 arg1){
|
||||
if(D_8037DDF3)
|
||||
return;
|
||||
|
||||
func_80311480(fileProgressFlag_getAndSet(FILEPROG_83_MAGIC_GET_WEAK_TEXT, TRUE) ? ASSET_F5C_DIALOG_MUMBO_MAGIC_GET_WEAK_ABREV : ASSET_F5B_DIALOG_MUMBO_MAGIC_GET_WEAK_FULL, 0xe, NULL, NULL, NULL, NULL);
|
||||
gcdialog_showText(fileProgressFlag_getAndSet(FILEPROG_83_MAGIC_GET_WEAK_TEXT, TRUE) ? ASSET_F5C_DIALOG_MUMBO_MAGIC_GET_WEAK_ABREV : ASSET_F5B_DIALOG_MUMBO_MAGIC_GET_WEAK_FULL, 0xe, NULL, NULL, NULL, NULL);
|
||||
}
|
||||
|
||||
void chMumbo_detransformTrigger(s32 this, s32 arg1){
|
||||
@@ -520,7 +520,7 @@ void chMumbo_detransformTrigger(s32 this, s32 arg1){
|
||||
xform = player_getTransformation();
|
||||
if(xform == TRANSFORM_1_BANJO || xform == TRANSFORM_7_WISHWASHY || D_8037DDF1)
|
||||
return;
|
||||
func_80311480(fileProgressFlag_getAndSet(FILEPROG_84_MAGIC_ALL_GONE_TEXT, TRUE) ? ASSET_F5E_DIALOG_MUMBO_MAGIC_RUN_OUT_ABREV: ASSET_F5D_DIALOG_MUMBO_MAGIC_RUN_OUT_FULL, 0xe, NULL, NULL, NULL, NULL);
|
||||
gcdialog_showText(fileProgressFlag_getAndSet(FILEPROG_84_MAGIC_ALL_GONE_TEXT, TRUE) ? ASSET_F5E_DIALOG_MUMBO_MAGIC_RUN_OUT_ABREV: ASSET_F5D_DIALOG_MUMBO_MAGIC_RUN_OUT_FULL, 0xe, NULL, NULL, NULL, NULL);
|
||||
D_8037DDF1++;
|
||||
func_8028FB88(TRANSFORM_1_BANJO);
|
||||
}
|
||||
|
@@ -1057,7 +1057,7 @@ void func_802D5628(void){
|
||||
}//L802D5F1C
|
||||
|
||||
if(volatileFlag_get(VOLATILE_FLAG_22)){
|
||||
if(func_80311480(0xF82, 4, NULL, NULL, NULL, NULL)){
|
||||
if(gcdialog_showText(0xF82, 4, NULL, NULL, NULL, NULL)){
|
||||
fileProgressFlag_set(FILEPROG_C1_BADDIES_ESCAPE_TEXT, TRUE);
|
||||
volatileFlag_set(VOLATILE_FLAG_22, 0);
|
||||
D_8037DE04 = 0.0f;
|
||||
@@ -1067,7 +1067,7 @@ void func_802D5628(void){
|
||||
}
|
||||
}
|
||||
else{//L802D5FCC
|
||||
if(func_80311480(D_8037DE00, 0, NULL, NULL, NULL, NULL)){
|
||||
if(gcdialog_showText(D_8037DE00, 0, NULL, NULL, NULL, NULL)){
|
||||
D_8037DE00++;
|
||||
if(!(D_8037DE00 < sp4C)){
|
||||
D_8037DE00 = 0xF86;
|
||||
|
@@ -78,7 +78,7 @@ void func_802DAA14(Actor *this){
|
||||
tmp = 0xf67;
|
||||
text_id = tmp;
|
||||
}
|
||||
func_80311480(text_id, 4, NULL, this->marker, func_802DA9A0, NULL);
|
||||
gcdialog_showText(text_id, 4, NULL, this->marker, func_802DA9A0, NULL);
|
||||
this->is_first_encounter = TRUE;
|
||||
}
|
||||
}
|
||||
|
@@ -392,15 +392,15 @@ void func_80346DB4(s32 note_count) {
|
||||
if (D_80385FF0[level_id] < note_count) {
|
||||
D_80385FF0[level_id] = note_count;
|
||||
if ((level_get() == LEVEL_1_MUMBOS_MOUNTAIN) && (note_count == 50)) {
|
||||
func_80311480(0xF74, 4, NULL, NULL, NULL, NULL);
|
||||
gcdialog_showText(0xF74, 4, NULL, NULL, NULL, NULL);
|
||||
}
|
||||
if (note_count == 100) {
|
||||
func_80311480(0xF78, 4, NULL, NULL, NULL, NULL);
|
||||
gcdialog_showText(0xF78, 4, NULL, NULL, NULL, NULL);
|
||||
}
|
||||
if (note_count == 1) {
|
||||
levelSpecificFlags_set(0x34, TRUE);
|
||||
}
|
||||
if (!levelSpecificFlags_get(0x34) && (func_80311480(0xF76, 0, NULL, NULL, NULL, NULL))) {
|
||||
if (!levelSpecificFlags_get(0x34) && (gcdialog_showText(0xF76, 0, NULL, NULL, NULL, NULL))) {
|
||||
levelSpecificFlags_set(0x34, TRUE);
|
||||
}
|
||||
if (volatileFlag_get(VOLATILE_FLAG_17) == 0) {
|
||||
|
@@ -83,7 +83,7 @@ s32 func_803563B8(enum file_progress_e progress_flag, s32 arg1) {
|
||||
} else {
|
||||
index = __findIndex(fileProgressDialogMap, progress_flag);
|
||||
if (index != -1) {
|
||||
if (func_80311480(fileProgressDialogMap[index].value, arg1, 0, 0, 0, 0) != 0) {
|
||||
if (gcdialog_showText(fileProgressDialogMap[index].value, arg1, 0, 0, 0, 0) != 0) {
|
||||
fileProgressFlag_set(progress_flag, 1);
|
||||
}
|
||||
return fileProgressFlag_get(progress_flag);
|
||||
@@ -109,7 +109,7 @@ s32 volatileFlag_setAndTriggerDialog(enum volatile_flags_e id, s32 arg1) {
|
||||
} else {
|
||||
index = __findIndex(gVolatileFlagDialogMap, id);
|
||||
if (index != -1) {
|
||||
if (func_80311480(gVolatileFlagDialogMap[index].value, arg1, 0, 0, 0, 0) != 0) {
|
||||
if (gcdialog_showText(gVolatileFlagDialogMap[index].value, arg1, 0, 0, 0, 0) != 0) {
|
||||
volatileFlag_set(id, 1);
|
||||
}
|
||||
return volatileFlag_get(id);
|
||||
|
@@ -49,7 +49,7 @@ void func_80361870(Actor *this){
|
||||
if(!this->is_first_encounter && func_80329530(this, 400) && !func_80329530(this, 50)){
|
||||
if(this->unkF4_8 == 1 && !fileProgressFlag_get(FILEPROG_31_MM_OPEN) && level_get() == LEVEL_6_LAIR){
|
||||
text_id = fileProgressFlag_get(FILEPROG_A7_NEAR_PUZZLE_PODIUM_TEXT)? 0xF80 : 0xF7F;
|
||||
if(func_80311480(text_id, 0, 0, 0, 0, 0)){
|
||||
if(gcdialog_showText(text_id, 0, 0, 0, 0, 0)){
|
||||
this->is_first_encounter = TRUE;
|
||||
}
|
||||
}
|
||||
@@ -59,7 +59,7 @@ void func_80361870(Actor *this){
|
||||
this->is_first_encounter = TRUE;
|
||||
}
|
||||
else{
|
||||
if(func_80311480(sp28, 0, 0, 0, 0, 0)){
|
||||
if(gcdialog_showText(sp28, 0, 0, 0, 0, 0)){
|
||||
this->is_first_encounter = TRUE;
|
||||
volatileFlag_set(VOLATILE_FLAG_16, 0);
|
||||
}
|
||||
|
@@ -942,7 +942,7 @@ int func_80311174(s32 text_id, s32 arg1, f32 *pos, ActorMarker *marker, void(*ca
|
||||
return 0;
|
||||
}
|
||||
|
||||
bool func_80311480(s32 text_id, s32 arg1, f32 *pos, ActorMarker *marker, void(*callback)(ActorMarker *, enum asset_e, s32), void(*arg5)(ActorMarker *, enum asset_e, s32)){
|
||||
bool gcdialog_showText(s32 text_id, s32 arg1, f32 *pos, ActorMarker *marker, void(*callback)(ActorMarker *, enum asset_e, s32), void(*arg5)(ActorMarker *, enum asset_e, s32)){
|
||||
return func_80311174(text_id, arg1, pos, marker, callback, arg5, 0);
|
||||
}
|
||||
|
||||
|
@@ -83,7 +83,7 @@ static SnackerCtlState _snackerctl_update_bottles_bonus(void){
|
||||
return 0;
|
||||
|
||||
if(func_8034BB48() && chBottlesBonus_getPuzzleIndex() != 7){
|
||||
func_80311480(SNACKER_BB_DIALOG_0 + (chBottlesBonus_getPuzzleIndex() << 1), 6, D_80363610, NULL, NULL, NULL);
|
||||
gcdialog_showText(SNACKER_BB_DIALOG_0 + (chBottlesBonus_getPuzzleIndex() << 1), 6, D_80363610, NULL, NULL, NULL);
|
||||
}
|
||||
if(!func_8028F25C() && func_80321960() == 3)
|
||||
func_803219F4(1);
|
||||
@@ -93,12 +93,12 @@ static SnackerCtlState _snackerctl_update_bottles_bonus(void){
|
||||
if(chBottlesBonus_getPuzzleIndex() == 6){
|
||||
if(!D_8037DCCC){
|
||||
func_8028F94C(4, &D_80363610);
|
||||
func_80311480(SNACKER_BB_DIALOG_1, 0x6, D_80363610, NULL, func_8028A584, NULL);
|
||||
gcdialog_showText(SNACKER_BB_DIALOG_1, 0x6, D_80363610, NULL, func_8028A584, NULL);
|
||||
}
|
||||
}//L8028A70C
|
||||
else if(chBottlesBonus_getPuzzleIndex() == 7){
|
||||
func_8028F94C(4, &D_80363610);
|
||||
func_80311480(ASSET_E35_DIALOG_BOTTLES_BONUS_REMINDER, 0x6, D_80363610, NULL, func_8028A558, NULL);
|
||||
gcdialog_showText(ASSET_E35_DIALOG_BOTTLES_BONUS_REMINDER, 0x6, D_80363610, NULL, func_8028A558, NULL);
|
||||
D_8037DCCC = 1;
|
||||
}//L8028A764
|
||||
else if(jiggyscore_isCollected(0x10)){
|
||||
@@ -108,7 +108,7 @@ static SnackerCtlState _snackerctl_update_bottles_bonus(void){
|
||||
){
|
||||
if(!D_8037DCCA){
|
||||
func_8028F94C(4, &D_80363610);
|
||||
func_80311480(ASSET_E21_DIALOG_BOTTLES_BONUS_DISCOVERED, 6, D_80363610, 0, func_8028A584, NULL);
|
||||
gcdialog_showText(ASSET_E21_DIALOG_BOTTLES_BONUS_DISCOVERED, 6, D_80363610, 0, func_8028A584, NULL);
|
||||
D_8037DCCA = 1;
|
||||
}else{
|
||||
func_8028A584(0,0,0);
|
||||
@@ -118,7 +118,7 @@ static SnackerCtlState _snackerctl_update_bottles_bonus(void){
|
||||
else{
|
||||
if(!D_8037DCCB){
|
||||
func_8028F94C(4, &D_80363610);
|
||||
func_80311480(ASSET_E20_DIALOG_BOTTLES_BONUS_NOT_READY, 6, D_80363610, 0, func_8028A558, NULL);
|
||||
gcdialog_showText(ASSET_E20_DIALOG_BOTTLES_BONUS_NOT_READY, 6, D_80363610, 0, func_8028A558, NULL);
|
||||
D_8037DCCB = 1;
|
||||
}
|
||||
}
|
||||
|
@@ -127,10 +127,10 @@ void func_80324AA4(timefuncqueue_Struct2 *arg0){
|
||||
|
||||
void func_80324AEC(DelayedTextCallback *arg0) {
|
||||
if ((arg0->position[0] == 0.0f) && (arg0->position[1] == 0.0f) && (arg0->position[2] == 0.0f)) {
|
||||
func_80311480(arg0->text_id, arg0->unk4, NULL, arg0->caller, arg0->callback_method_1, arg0->callback_method_2);
|
||||
gcdialog_showText(arg0->text_id, arg0->unk4, NULL, arg0->caller, arg0->callback_method_1, arg0->callback_method_2);
|
||||
}
|
||||
else{
|
||||
func_80311480(arg0->text_id, arg0->unk4, arg0->position, arg0->caller, arg0->callback_method_1, arg0->callback_method_2);
|
||||
gcdialog_showText(arg0->text_id, arg0->unk4, arg0->position, arg0->caller, arg0->callback_method_1, arg0->callback_method_2);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user