Decompile menuOpenDialog and discover data argument for menu handlers

This commit is contained in:
Ryan Dwyer
2020-09-11 19:26:48 +10:00
parent 1b999547d8
commit 365541acfe
12 changed files with 256 additions and 392 deletions
+4 -4
View File
@@ -60,7 +60,7 @@ s32 menudialogRetryMission(u32 operation, struct menudialog *dialog, union handl
if (dialog == g_Menus[g_MpPlayerNum].curframe->dialog
|| (dialog->nextsibling && dialog->nextsibling == g_Menus[g_MpPlayerNum].curframe->dialog)) {
#endif
struct menuthing *thing = data->ptrs[0];
struct menuthing *thing = data->dialog2.ptr;
bool pass = false;
if (thing->unk03) {
@@ -883,14 +883,14 @@ s32 menuhandlerEndscreenCheats(u32 operation, struct menuitem *item, union handl
return 0;
}
data->words[1] = colourBlend(data->words[1], g_CheatColour, weight);
data->label.colour2 = colourBlend(data->label.colour2, g_CheatColour, weight);
if (item->param == 3) { // completion cheat name
data->words[0] = colourBlend(data->words[0], g_CheatColour, weight);
data->label.colour1 = colourBlend(data->label.colour1, g_CheatColour, weight);
}
if (item->param == 5) { // timed cheat name
data->words[0] = colourBlend(data->words[0], g_CheatColour, weight);
data->label.colour1 = colourBlend(data->label.colour1, g_CheatColour, weight);
}
}