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
+28
-23
@@ -2,8 +2,20 @@
|
||||
|
||||
#include "anm2.h"
|
||||
#include "kage_graphics.h"
|
||||
#include "menu_bestiary.h"
|
||||
#include "menu_challenge.h"
|
||||
#include "menu_character.h"
|
||||
#include "menu_collection.h"
|
||||
#include "menu_controller_select.h"
|
||||
#include "menu_custom_challenge.h"
|
||||
#include "menu_cutscenes.h"
|
||||
#include "menu_daily_challenge.h"
|
||||
#include "menu_game.h"
|
||||
#include "menu_key_config.h"
|
||||
#include "menu_options.h"
|
||||
#include "menu_save.h"
|
||||
#include "menu_special_seeds.h"
|
||||
#include "menu_stats.h"
|
||||
#include "menu_title.h"
|
||||
#include "seeds.h"
|
||||
#include <array>
|
||||
@@ -105,9 +117,10 @@ constexpr int SOUND_MENU_NOTE_APPEAR = 283;
|
||||
constexpr int SOUND_MENU_NOTE_HIDE = 284;
|
||||
constexpr ColorModState COLOR_MOD_NONE = {1, 1, 1, 0, 0, 1};
|
||||
|
||||
// Copies are never made. Destruction (00986f30) is the default.
|
||||
// The main menu (g_menuManager): every menu laid out on one sheet the view scrolls across, the history of menus
|
||||
// opened, the fades, the fly, the shadow and overlay over everything, and the color modifier it all renders through.
|
||||
// The menus not taken over yet keep their generated types. Copies are never made.
|
||||
// The online menus are offline: they are never built, entered or drawn. Menu_Mods keeps its generated type.
|
||||
class MenuManager
|
||||
{
|
||||
public:
|
||||
@@ -124,31 +137,24 @@ public:
|
||||
KAGE::Graphics::ImagePtr menuOverlayImage;
|
||||
ANM2 flySprite;
|
||||
ANM2 menuShadowSprite;
|
||||
ANM2 onlineStatsMenuSprite;
|
||||
|
||||
Menu_Title menuTitle;
|
||||
Menu_Save menuSave;
|
||||
Menu_Game menuGame;
|
||||
Menu_Bestiary menuBestiary{};
|
||||
Menu_Challenge menuChallenge{};
|
||||
Menu_Character menuCharacter{};
|
||||
Menu_Collection menuCollection{};
|
||||
Menu_ControllerSelect menuControllerSelect{};
|
||||
Menu_CreateLobby menuCreateLobby{};
|
||||
Menu_CustomChallenge menuCustomChallenge{};
|
||||
Menu_Cutscenes menuCutscenes{};
|
||||
Menu_DailyChallenge menuDailyChallenge{};
|
||||
Menu_KeyConfig menuKeyConfig{};
|
||||
Menu_Bestiary menuBestiary;
|
||||
Menu_Challenge menuChallenge;
|
||||
Menu_Character menuCharacter;
|
||||
Menu_Collection menuCollection;
|
||||
Menu_ControllerSelect menuControllerSelect;
|
||||
Menu_CustomChallenge menuCustomChallenge;
|
||||
Menu_Cutscenes menuCutscenes;
|
||||
Menu_DailyChallenge menuDailyChallenge;
|
||||
Menu_KeyConfig menuKeyConfig;
|
||||
Menu_Mods menuMods{};
|
||||
Menu_Online menuOnline{};
|
||||
Menu_OnlineLobby menuOnlineLobby{};
|
||||
Menu_OnlineLobbyList menuOnlineLobbyList{};
|
||||
Menu_Options menuOptions{};
|
||||
Menu_Options onlineOptions{};
|
||||
Menu_SpecialSeeds menuSpecialSeeds{};
|
||||
Menu_Stats menuStats{};
|
||||
Menu_Options menuOptions;
|
||||
Menu_SpecialSeeds menuSpecialSeeds;
|
||||
Menu_Stats menuStats;
|
||||
|
||||
Vector onlineAwardsPosition{};
|
||||
float backWidgetOffsetY = 0;
|
||||
float fadeInProgress = 0;
|
||||
float fadeOutProgress = 0;
|
||||
@@ -156,7 +162,6 @@ public:
|
||||
float scrollInterpolationY = 0;
|
||||
float selectWidgetOffsetY = 0;
|
||||
float vignetteIntensity = 0;
|
||||
int onlineAwardsCursor = 0;
|
||||
MenuState selectedMenuId = MENU_NONE;
|
||||
bool isColorModLerping = false;
|
||||
bool isFadeInActive = false;
|
||||
@@ -165,7 +170,6 @@ public:
|
||||
bool isViewMoving = false;
|
||||
|
||||
MenuManager();
|
||||
~MenuManager();
|
||||
MenuManager(const MenuManager&) = delete;
|
||||
|
||||
void Init();
|
||||
@@ -183,6 +187,7 @@ public:
|
||||
|
||||
private:
|
||||
Vector view_target_get(MenuState menu);
|
||||
void menus_init();
|
||||
void view_update();
|
||||
void fly_update();
|
||||
void controller_update();
|
||||
@@ -203,7 +208,7 @@ extern KAGE::Graphics::ImagePtr menuColorModSurface;
|
||||
KColor kcolor_make(float red, float green, float blue, float alpha);
|
||||
KColor kcolor_argb(uint32_t argb);
|
||||
Vector vector_add(Vector a, Vector b);
|
||||
bool is_action(ButtonAction action, ActionTest test, int* deviceIndex = nullptr);
|
||||
bool is_action(ButtonAction action, ActionTest test, int* deviceId = nullptr);
|
||||
bool is_key_repeat(int heldFrames);
|
||||
void menu_sound_play(int sound, int frameDelay);
|
||||
void shader_select(std::string_view shaderName);
|
||||
|
||||
Reference in new issue
Block a user