Curation round 5: Game construction, FXLayers, PlayerManager, the menus; the main menu renders
Eight agents took over ScoreSheet, DeathmatchManager, giantbook and boss overlays, FXLayers, PlayerManager, the menu manager with the save and prompt flow, twelve menus (character wheel, options, challenges, daily (offline), special seeds, leaderboard (local), collection, bestiary, stats, controller select, key config, cutscenes), console text input and gamepad hot-plug through platform listeners. Integration moved input to device ids. KAGE's projection matrix now reaches the 'ProjectionMatrix' uniform the basic shaders from afterbirthp.a declare, as well as the exe's 'Transform', which takes the color-mod and HQ4X passes from black to correct output. Under gdb with stubs skipped, the intro, title, file select, main menu and character wheel render as in the game. 1330 functions taken over, boot path 261/615. build/isaac stops at OnlineEmotes::init in Game::LoadConfigXmls. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
fd8b965350
commit
233d5123e8
128 files changed
+10194
-36967
No files matched your search
+108
-96
@@ -1,4 +1,5 @@
|
||||
#include "menu_manager.h"
|
||||
#include "game.h"
|
||||
#include "kage_input.h"
|
||||
#include "log.h"
|
||||
#include "manager.h"
|
||||
@@ -10,11 +11,9 @@ constexpr const char* EMPTY_SCREEN_PNG = "gfx/ui/main menu/EmptyScreen.png";
|
||||
constexpr const char* MENU_OVERLAY_PNG = "gfx/ui/main menu/MenuOverlay.png";
|
||||
constexpr const char* MENU_SHADOW_ANM2 = "gfx/ui/main menu/MenuShadow.anm2";
|
||||
constexpr const char* FLY_ANM2 = "gfx/ui/main menu/fly.anm2";
|
||||
constexpr const char* ONLINE_STATS_ANM2 = "gfx/ui/main menu/OnlineStatsMenu.anm2";
|
||||
constexpr const char* COLOR_MOD_SURFACE = "Menu Colormod Surface";
|
||||
constexpr const char* COLOR_OFFSET_SHADER = "ColorOffset";
|
||||
constexpr const char* COLOR_MOD_SHADER = "ColorMod";
|
||||
constexpr const char* CURSOR_LAYER = "Cursor";
|
||||
|
||||
// Where each menu sits on the menu sheet, by MenuState. The special seeds' place moves and is kept apart.
|
||||
constexpr float VIEW_POSITIONS[MENU_COUNT][2] = {
|
||||
@@ -50,8 +49,6 @@ constexpr float WIDGET_OFFSET_Y = 90;
|
||||
constexpr float BUTTON_SHOWN = 0;
|
||||
constexpr float BUTTON_RAISED = 25;
|
||||
constexpr float BUTTON_HIDDEN = 96;
|
||||
constexpr int DIFFICULTY_HARD = 1;
|
||||
constexpr int DIFFICULTY_GREEDIER = 3;
|
||||
constexpr float VIGNETTE_HARD = 0.5f;
|
||||
constexpr float SHADOW_HEIGHT = 148;
|
||||
constexpr float OVERLAY_BLEED = 0.5f;
|
||||
@@ -65,7 +62,8 @@ constexpr int KEY_REPEAT_DELAY = 49;
|
||||
constexpr int KEY_REPEAT_INTERVAL = 10;
|
||||
constexpr int CHARACTER_MENU_SHOWN = 1;
|
||||
constexpr int MUSIC_LAYER_CHARACTER = 0;
|
||||
constexpr int OPTIONS_NOT_PAUSED = 0;
|
||||
constexpr int EVENT_DAILYS_STREAK = 192;
|
||||
constexpr int EVENT_DAILYS_BEST_STREAK = 521;
|
||||
|
||||
KAGE::Graphics::ImagePtr menuColorModSurface;
|
||||
|
||||
@@ -110,9 +108,9 @@ static bool is_device_action(const KAGE::Input::InputDevice& device, ButtonActio
|
||||
return false;
|
||||
}
|
||||
|
||||
// Whether any device has the action held or pressed this frame, giving the first such device's index, as KAGE's
|
||||
// Whether any device has the action held or pressed this frame, giving the first such device's id, as KAGE's
|
||||
// input manager asks every device in turn (its query slot with the pressed or triggered test).
|
||||
bool is_action(ButtonAction action, ActionTest test, int* deviceIndex)
|
||||
bool is_action(ButtonAction action, ActionTest test, int* deviceId)
|
||||
{
|
||||
KAGE::Input::Manager& input = KAGE::Input::manager;
|
||||
|
||||
@@ -121,7 +119,7 @@ bool is_action(ButtonAction action, ActionTest test, int* deviceIndex)
|
||||
std::shared_ptr<KAGE::Input::InputDevice> device = input.get_device(i);
|
||||
if (!device || !is_device_action(*device, action, test)) continue;
|
||||
|
||||
if (deviceIndex) *deviceIndex = i;
|
||||
if (deviceId) *deviceId = device->id;
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
@@ -166,38 +164,15 @@ void color_mod_surface_create()
|
||||
menuColorModSurface->wrap_set(CLAMP_TO_EDGE, CLAMP_TO_EDGE);
|
||||
}
|
||||
|
||||
// A fresh run's seeds, as Seeds' constructor builds them. Seeds is not taken over yet, and classes.h gives its
|
||||
// constructor no object to build.
|
||||
// 00986450 Builds the menus with the view at the sheet's origin and the color modifier off, then the surface it renders
|
||||
// through. The other menus' construction, inlined here, is theirs: the ones classes.h declares run here.
|
||||
// through. The online menus it builds are offline.
|
||||
MenuManager::MenuManager()
|
||||
{
|
||||
fadeInColor = kcolor_argb(BLACK_ARGB);
|
||||
specialSeedsViewPosition = vector_make(0, SPECIAL_SEEDS_VIEW_Y);
|
||||
Leaderboard::constructor();
|
||||
menuCharacter.constructor();
|
||||
menuOptions.constructor();
|
||||
reconstruction_missing("MenuManager::MenuManager 00986450: the online menus' construction, inlined");
|
||||
onlineOptions.constructor();
|
||||
color_mod_surface_create();
|
||||
}
|
||||
|
||||
// 00986f30 Frees the menus. Own members free themselves, and so do the other menus classes.h gives a destructor.
|
||||
// The ones it gives a plain destructor method free here, in the original order.
|
||||
MenuManager::~MenuManager()
|
||||
{
|
||||
FUN_008dc3c0();
|
||||
FUN_008e7630();
|
||||
FUN_008e4a20();
|
||||
FUN_008c5d70();
|
||||
FUN_008c9e10();
|
||||
Menu_Collection::destructor();
|
||||
Menu_Challenge::destructor();
|
||||
FUN_008f0120();
|
||||
menuCharacter.destructor();
|
||||
FUN_008cf510();
|
||||
}
|
||||
|
||||
// Where a menu's view lands: its place on the sheet, the menu area centered in the screen.
|
||||
Vector MenuManager::view_target_get(MenuState menu)
|
||||
{
|
||||
@@ -219,8 +194,8 @@ SpriteDraw MenuManager::menu_draw_get(Vector position)
|
||||
return draw;
|
||||
}
|
||||
|
||||
// 00987450 Opens the menus on nothing selected with the title music, lays the menus out on the sheet, loads the overlay,
|
||||
// the shadow and the fly, then each menu in turn. The menus after the game menu are not taken over yet.
|
||||
// 00987450 Opens the menus on nothing selected with the title music and fresh seeds, lays the menus out on the sheet,
|
||||
// loads the overlay, the shadow and the fly, then each menu in turn.
|
||||
void MenuManager::Init()
|
||||
{
|
||||
Manager& manager = *g_manager;
|
||||
@@ -232,6 +207,7 @@ void MenuManager::Init()
|
||||
manager.musicManager.EnableLayer(MUSIC_LAYER_CHARACTER, LAYER_INSTANT);
|
||||
log_printf(LOG_INFO, "Menu Manager Init\n");
|
||||
manager.popupButtons.reset();
|
||||
seedsObject = Seeds();
|
||||
|
||||
for (int i = 0; i < MENU_COUNT; i++) viewPositionSet[i] = vector_make(VIEW_POSITIONS[i][0], VIEW_POSITIONS[i][1]);
|
||||
viewPositionSet[MENU_SPECIAL_SEEDS] = specialSeedsViewPosition;
|
||||
@@ -247,15 +223,7 @@ void MenuManager::Init()
|
||||
flySprite.Load(FLY_ANM2, GRAPHICS_LOAD);
|
||||
flySprite.Play(ANIMATION_IDLE);
|
||||
|
||||
log_printf(LOG_INFO, "Menu Title Init\n");
|
||||
menuTitle.Init(menu_position_get(MENU_TITLE));
|
||||
log_printf(LOG_INFO, "Menu Save Init\n");
|
||||
menuSave.Init(menu_position_get(MENU_SAVE));
|
||||
log_printf(LOG_INFO, "Menu Game Init\n");
|
||||
menuGame.Init(menu_position_get(MENU_GAME));
|
||||
log_printf(LOG_INFO, "Menu Daily Init\n");
|
||||
reconstruction_missing("MenuManager::Init 00987450: the Init of the menus from Menu_DailyChallenge on, inlined");
|
||||
|
||||
menus_init();
|
||||
isViewMoving = false;
|
||||
isFadeOutActive = false;
|
||||
fadeOutProgress = 0;
|
||||
@@ -267,18 +235,72 @@ void MenuManager::Init()
|
||||
isPopupButtonsShown = true;
|
||||
}
|
||||
|
||||
// 00988ba0 Drops every menu's sprites, as a run starts.
|
||||
// Inits each menu at its place on the sheet, in the original order. The daily menu's record streak catches up with
|
||||
// the current one. Menu_Mods is not taken over yet and starts unloaded. The key config menu's own reset of its view
|
||||
// place and the view movement is left out, as Init sets both again.
|
||||
void MenuManager::menus_init()
|
||||
{
|
||||
std::array<int, EVENT_COUNTER_COUNT>& counters = g_manager->persistentGameData.eventCounters;
|
||||
|
||||
log_printf(LOG_INFO, "Menu Title Init\n");
|
||||
menuTitle.Init(menu_position_get(MENU_TITLE));
|
||||
log_printf(LOG_INFO, "Menu Save Init\n");
|
||||
menuSave.Init(menu_position_get(MENU_SAVE));
|
||||
log_printf(LOG_INFO, "Menu Game Init\n");
|
||||
menuGame.Init(menu_position_get(MENU_GAME));
|
||||
log_printf(LOG_INFO, "Menu Daily Init\n");
|
||||
menuDailyChallenge.Init(menu_position_get(MENU_DAILY_RUN));
|
||||
if ((uint32_t)counters[EVENT_DAILYS_BEST_STREAK] < (uint32_t)counters[EVENT_DAILYS_STREAK])
|
||||
counters[EVENT_DAILYS_BEST_STREAK] = counters[EVENT_DAILYS_STREAK];
|
||||
log_printf(LOG_INFO, "Menu Character Init\n");
|
||||
menuCharacter.Init(menu_position_get(MENU_CHARACTER));
|
||||
log_printf(LOG_INFO, "Menu SpecialSeed Init\n");
|
||||
menuSpecialSeeds.Init(menu_position_get(MENU_SPECIAL_SEEDS));
|
||||
log_printf(LOG_INFO, "Menu Challenge Init\n");
|
||||
menuChallenge.Init(menu_position_get(MENU_CHALLENGE));
|
||||
log_printf(LOG_INFO, "Menu Collection Init\n");
|
||||
menuCollection.Init(menu_position_get(MENU_COLLECTION));
|
||||
log_printf(LOG_INFO, "Menu Stats Init\n");
|
||||
menuStats.Init(menu_position_get(MENU_STATS));
|
||||
log_printf(LOG_INFO, "Menu Mods Init\n");
|
||||
log_printf(LOG_INFO, "Menu Options Init\n");
|
||||
menuOptions.Init(menu_position_get(MENU_OPTIONS), OPTIONS_MAIN_MENU);
|
||||
log_printf(LOG_INFO, "Menu Controller Init\n");
|
||||
menuControllerSelect.Init(menu_position_get(MENU_CONTROLLER_SELECT));
|
||||
log_printf(LOG_INFO, "Menu Key Config Init\n");
|
||||
menuKeyConfig.Init(menu_position_get(MENU_KEY_CONFIG));
|
||||
log_printf(LOG_INFO, "Menu Cutscene Init\n");
|
||||
menuCutscenes.Init(menu_position_get(MENU_CUTSCENES));
|
||||
log_printf(LOG_INFO, "Menu Bestiary Init\n");
|
||||
menuBestiary.Init(menu_position_get(MENU_BESTIARY));
|
||||
log_printf(LOG_INFO, "Menu Custom Challenge Init\n");
|
||||
menuCustomChallenge.Init(menu_position_get(MENU_CUSTOM_CHALLENGE));
|
||||
}
|
||||
|
||||
// 00988ba0 Drops every menu's sprites, as a run starts. Menu_Mods is not taken over yet and holds none.
|
||||
void MenuManager::unload_graphics()
|
||||
{
|
||||
menuTitle.titleScreenSprite.Reset();
|
||||
menuSave.unload_graphics();
|
||||
menuGame.gameMenuSprite.Reset();
|
||||
menuGame.continueWidgetSprite.Reset();
|
||||
reconstruction_missing("MenuManager::unload_graphics 00988ba0: the other menus' sprites, inlined");
|
||||
onlineStatsMenuSprite.Reset();
|
||||
menuCharacter.unload_graphics();
|
||||
menuSpecialSeeds.specialSeedsSprite.Reset();
|
||||
menuChallenge.challengeMenuSprite.Reset();
|
||||
menuCollection.collectionMenuSprite.Reset();
|
||||
menuCollection.deathScreenSprite.Reset();
|
||||
menuStats.unload_graphics();
|
||||
menuOptions.optionsSprite.Reset();
|
||||
menuControllerSelect.controllerSelectSprite.Reset();
|
||||
menuKeyConfig.keyConfigSprite.Reset();
|
||||
menuCutscenes.cutscenesMenuSprite.Reset();
|
||||
menuDailyChallenge.unload_graphics();
|
||||
menuBestiary.unload_graphics();
|
||||
menuCustomChallenge.customChallengeSprite.Reset();
|
||||
}
|
||||
|
||||
// 00988d80 Loads every menu's sprites again, as the menus come back.
|
||||
// 00988d80 Loads every menu's sprites again, as the menus come back. Menu_Mods is not taken over yet and stays
|
||||
// unloaded.
|
||||
void MenuManager::LoadGraphics()
|
||||
{
|
||||
menuTitle.sprite_load();
|
||||
@@ -286,9 +308,17 @@ void MenuManager::LoadGraphics()
|
||||
menuSave.LoadGraphics();
|
||||
menuGame.LoadGraphics();
|
||||
menuCharacter.LoadGraphics();
|
||||
reconstruction_missing("MenuManager::LoadGraphics 00988d80: the other menus' sprites, inlined");
|
||||
onlineStatsMenuSprite.Load(ONLINE_STATS_ANM2, GRAPHICS_LOAD);
|
||||
onlineStatsMenuSprite.Play(ANIMATION_IDLE);
|
||||
menuSpecialSeeds.LoadGraphics();
|
||||
menuChallenge.LoadGraphics();
|
||||
menuCollection.LoadGraphics();
|
||||
menuStats.LoadGraphics();
|
||||
menuOptions.load_menu_anm2();
|
||||
menuControllerSelect.LoadGraphics();
|
||||
menuKeyConfig.LoadGraphics();
|
||||
menuCutscenes.LoadGraphics();
|
||||
menuDailyChallenge.load_graphics();
|
||||
menuBestiary.load_graphics();
|
||||
menuCustomChallenge.LoadGraphics();
|
||||
}
|
||||
|
||||
// 00989750 Fades the menus out into the run to the start jingle, loading the loading screen for the start seed.
|
||||
@@ -359,7 +389,7 @@ void MenuManager::controller_update()
|
||||
if (isPopupButtonsShown && selectedMenuId > MENU_TITLE && input.is_device_connected(g_menuControllerIndex) &&
|
||||
(!isViewMoving || selectedMenuId > MENU_SAVE))
|
||||
{
|
||||
std::shared_ptr<KAGE::Input::InputDevice> device = input.get_device(g_menuControllerIndex);
|
||||
std::shared_ptr<KAGE::Input::InputDevice> device = input.device_find(g_menuControllerIndex);
|
||||
if (device && device->is_any_pressed()) isPopupButtonsShown = false;
|
||||
}
|
||||
if (selectedMenuId == MENU_KEY_CONFIG) return;
|
||||
@@ -367,7 +397,7 @@ void MenuManager::controller_update()
|
||||
for (int i = 0; i < input.get_device_count(); i++)
|
||||
{
|
||||
std::shared_ptr<KAGE::Input::InputDevice> device = input.get_device(i);
|
||||
if (device && device->button_triggered_get() != KAGE::Input::BUTTON_NONE) g_menuControllerIndex = i;
|
||||
if (device && device->button_triggered_get() != KAGE::Input::BUTTON_NONE) g_menuControllerIndex = device->id;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -387,7 +417,7 @@ void MenuManager::Update()
|
||||
color_mod_update();
|
||||
}
|
||||
|
||||
// Steps the selected menu.
|
||||
// Steps the selected menu. The online menus are never selected offline.
|
||||
void MenuManager::menu_update()
|
||||
{
|
||||
switch (selectedMenuId)
|
||||
@@ -398,26 +428,16 @@ void MenuManager::menu_update()
|
||||
case MENU_DAILY_RUN: menuDailyChallenge.Update(); break;
|
||||
case MENU_CHARACTER: menuCharacter.Update(); break;
|
||||
case MENU_SPECIAL_SEEDS: menuSpecialSeeds.Update(); break;
|
||||
case MENU_CHALLENGE: Menu_Challenge::Update(); break;
|
||||
case MENU_COLLECTION: Menu_Collection::Update(); break;
|
||||
case MENU_CHALLENGE: menuChallenge.Update(); break;
|
||||
case MENU_COLLECTION: menuCollection.Update(); break;
|
||||
case MENU_STATS: menuStats.Update(); break;
|
||||
case MENU_OPTIONS: menuOptions.Update(); break;
|
||||
case MENU_CONTROLLER_SELECT: Menu_ControllerSelect::Update(); break;
|
||||
case MENU_CONTROLLER_SELECT: menuControllerSelect.Update(); break;
|
||||
case MENU_KEY_CONFIG: menuKeyConfig.Update(); break;
|
||||
case MENU_CUTSCENES: Menu_Cutscenes::Update(); break;
|
||||
case MENU_CUTSCENES: menuCutscenes.Update(); break;
|
||||
case MENU_BESTIARY: menuBestiary.Update(); break;
|
||||
case MENU_CUSTOM_CHALLENGE: menuCustomChallenge.Update(); break;
|
||||
case MENU_MODS: menuMods.Update(); break;
|
||||
case MENU_ONLINE_LOBBY: Menu_OnlineLobby::Update(); break;
|
||||
case MENU_ONLINE_LOBBY_LIST: menuOnlineLobbyList.Update(); break;
|
||||
case MENU_ONLINE: menuOnline.Update(); break;
|
||||
case MENU_ONLINE_OPTIONS: onlineOptions.Update(); break;
|
||||
case MENU_CREATE_LOBBY: reconstruction_missing("Menu_OnlineMode::Update 008cbfe0 on MenuManager::menuCreateLobby");
|
||||
case MENU_ONLINE_AWARDS:
|
||||
if ((g_manager->framecount & 1) == 0) onlineStatsMenuSprite.Update();
|
||||
Menu_OnlineAwards::Update();
|
||||
onlineStatsMenuSprite.SetLayerFrame(CURSOR_LAYER, onlineAwardsCursor);
|
||||
break;
|
||||
default: break;
|
||||
}
|
||||
}
|
||||
@@ -438,6 +458,7 @@ void MenuManager::color_mod_update()
|
||||
|
||||
// 0098a040 Draws the menu sheet over its paper color: every menu at its place, the fly, then the overlay, the shadow
|
||||
// and the vignette, all through the color modifier when it is on, then the fades.
|
||||
// Menu_Mods' page waits for its takeover, and the offline online menus draw nothing.
|
||||
void MenuManager::Render()
|
||||
{
|
||||
KAGE::Graphics::Manager& graphics = KAGE::Graphics::manager;
|
||||
@@ -464,16 +485,10 @@ void MenuManager::Render()
|
||||
menuControllerSelect.Render();
|
||||
menuKeyConfig.Render();
|
||||
menuOptions.Render();
|
||||
Menu_Cutscenes::Render();
|
||||
menuCutscenes.Render();
|
||||
menuCustomChallenge.Render();
|
||||
reconstruction_missing("Menu_Mods::Render 008e3db0 (AnimationLayer::RenderFrame in classes.h) and the lobby menus' "
|
||||
"Render 008ddae0 and 008e8af0");
|
||||
menuOnline.Render();
|
||||
onlineOptions.Render();
|
||||
Menu_Online::render_mode_select();
|
||||
Menu_Online::render_descriptions();
|
||||
menuSave.Render();
|
||||
reconstruction_missing("Leaderboard::Render 00858050 on Menu_DailyChallenge's leaderboard");
|
||||
menuDailyChallenge.leaderboard.Render();
|
||||
flySprite.Render(menu_draw_get(vector_make(scrollInterpolationX, scrollInterpolationY)));
|
||||
|
||||
popup_buttons_place();
|
||||
@@ -517,7 +532,7 @@ void MenuManager::popup_buttons_place()
|
||||
break;
|
||||
case MENU_STATS:
|
||||
buttons[0].targetSlideOffset = BUTTON_SHOWN;
|
||||
buttons[1].targetSlideOffset = menuStats._isAchievementScreenVisible ? BUTTON_HIDDEN : BUTTON_SHOWN;
|
||||
buttons[1].targetSlideOffset = menuStats.isAchievementScreenVisible ? BUTTON_HIDDEN : BUTTON_SHOWN;
|
||||
break;
|
||||
default: break;
|
||||
}
|
||||
@@ -526,8 +541,8 @@ void MenuManager::popup_buttons_place()
|
||||
// Darkens the edges toward half on the hard difficulties, a fortieth a frame.
|
||||
void MenuManager::vignette_update()
|
||||
{
|
||||
int difficulty = menuCharacter.Difficulty;
|
||||
float target = difficulty == DIFFICULTY_HARD || difficulty == DIFFICULTY_GREEDIER ? VIGNETTE_HARD : 0;
|
||||
bool isHard = menuCharacter.difficulty == DIFFICULTY_HARD || menuCharacter.difficulty == DIFFICULTY_GREEDIER;
|
||||
float target = isHard ? VIGNETTE_HARD : 0;
|
||||
|
||||
if (std::abs(vignetteIntensity - target) > FADE_STEP)
|
||||
target = target <= vignetteIntensity ? vignetteIntensity - FADE_STEP : vignetteIntensity + FADE_STEP;
|
||||
@@ -625,7 +640,7 @@ void MenuManager::fades_render()
|
||||
// online menu before the lobby.
|
||||
void MenuManager::history_rebuild(MenuState state)
|
||||
{
|
||||
if (!menuStateHistory.empty() && menuStateHistory.back() == MENU_DAILY_RUN) FUN_008d0730();
|
||||
if (!menuStateHistory.empty() && menuStateHistory.back() == MENU_DAILY_RUN) menuDailyChallenge.reset();
|
||||
|
||||
menuStateHistory.clear();
|
||||
for (int menu = MENU_TITLE; menu <= state && menu <= MENU_GAME; menu++) menuStateHistory.push_back((MenuState)menu);
|
||||
@@ -679,9 +694,7 @@ SeedsEntry MenuManager::transition_apply(MenuState previous, MenuState state)
|
||||
}
|
||||
else if (previous == MENU_CHARACTER)
|
||||
{
|
||||
menuCharacter._seedUnlockPageState = 0;
|
||||
menuCharacter._seedUnlockPageTimer = 0;
|
||||
reconstruction_missing("MenuManager::SetState 0098aa30: clearing Menu_Character's seed entry texts, inlined");
|
||||
menuCharacter.seed_unlock_page_reset();
|
||||
return SEEDS_ENTRY_RESET;
|
||||
}
|
||||
return transition_other_apply(previous, state);
|
||||
@@ -697,9 +710,9 @@ SeedsEntry MenuManager::transition_other_apply(MenuState previous, MenuState sta
|
||||
}
|
||||
if (previous == MENU_KEY_CONFIG)
|
||||
{
|
||||
menuKeyConfig.SelectedElement = 0;
|
||||
menuKeyConfig.SelectedColumn = 0;
|
||||
menuKeyConfig.State = 0;
|
||||
menuKeyConfig.selectedElement = {};
|
||||
menuKeyConfig.selectedColumn = {};
|
||||
menuKeyConfig.state = {};
|
||||
viewPositionSet[MENU_KEY_CONFIG].y = KEY_CONFIG_VIEW_Y;
|
||||
isViewMoving = true;
|
||||
return SEEDS_ENTRY_RESET;
|
||||
@@ -710,22 +723,22 @@ SeedsEntry MenuManager::transition_other_apply(MenuState previous, MenuState sta
|
||||
menuSave.slot_read(index);
|
||||
menuSave.update_save_drawings();
|
||||
menuSave.drawingSprites[index].LoadGraphics();
|
||||
menuCharacter.set_character_menu_shown(0);
|
||||
menuCharacter.set_character_menu_shown(CHARACTER_MENU_NORMAL);
|
||||
return SEEDS_ENTRY_KEEP;
|
||||
}
|
||||
|
||||
switch (state)
|
||||
{
|
||||
case MENU_DAILY_RUN: FUN_008d0730(); return SEEDS_ENTRY_KEEP;
|
||||
case MENU_BESTIARY: FUN_008c8760(); return SEEDS_ENTRY_KEEP;
|
||||
case MENU_CUSTOM_CHALLENGE: reconstruction_missing("Menu_ModChallenges::reset 008ceb90 on menuCustomChallenge");
|
||||
case MENU_DAILY_RUN: menuDailyChallenge.reset(); return SEEDS_ENTRY_KEEP;
|
||||
case MENU_BESTIARY: menuBestiary.reset(); return SEEDS_ENTRY_KEEP;
|
||||
case MENU_CUSTOM_CHALLENGE: menuCustomChallenge.reset(); return SEEDS_ENTRY_KEEP;
|
||||
case MENU_MODS: menuMods.reset(); return SEEDS_ENTRY_KEEP;
|
||||
case MENU_ONLINE_LOBBY_LIST: menuOnlineLobbyList.reset(); return SEEDS_ENTRY_KEEP;
|
||||
case MENU_ONLINE: menuOnline.enter(); return SEEDS_ENTRY_KEEP;
|
||||
case MENU_OPTIONS: menuOptions.reload(); return SEEDS_ENTRY_KEEP;
|
||||
case MENU_ONLINE_OPTIONS: onlineOptions.reload(); return SEEDS_ENTRY_KEEP;
|
||||
case MENU_CREATE_LOBBY: FUN_008cc530(); return SEEDS_ENTRY_KEEP;
|
||||
case MENU_ONLINE_AWARDS: FUN_008e71c0(); return SEEDS_ENTRY_KEEP;
|
||||
case MENU_ONLINE_LOBBY_LIST:
|
||||
case MENU_ONLINE:
|
||||
case MENU_ONLINE_OPTIONS:
|
||||
case MENU_CREATE_LOBBY:
|
||||
case MENU_ONLINE_AWARDS: return SEEDS_ENTRY_KEEP;
|
||||
default: return SEEDS_ENTRY_RESET;
|
||||
}
|
||||
}
|
||||
@@ -737,8 +750,7 @@ void MenuManager::push_menu(MenuState menu)
|
||||
|
||||
if (selectedMenuId == MENU_SAVE)
|
||||
{
|
||||
Vector optionsPosition = menu_position_get(MENU_OPTIONS);
|
||||
menuOptions.Init(&optionsPosition, OPTIONS_NOT_PAUSED);
|
||||
menuOptions.Init(menu_position_get(MENU_OPTIONS), OPTIONS_MAIN_MENU);
|
||||
}
|
||||
menuStateHistory.push_back(menu);
|
||||
SetState(menu, HISTORY_KEEP);
|
||||
|
||||
Reference in new issue
Block a user