|
resonance 1.0.1
|
Screen that picks a memory card to load from. More...
#include <metmemcardloadscreen.h>


Public Member Functions | |
| MetMemCardLoadScreen (MetRenderer *pRenderer, int nPriority) | |
| Construct the screen. | |
| virtual | ~MetMemCardLoadScreen () |
| void | Present (MetMemCardPickerUser *pUser, bool bShowNow) |
| Record the requester, then either bring the screen up at once or hide it and probe. | |
| virtual void | EnterAndShow () |
| Hide the screen, then probe again after MetConfigOptionsButtonsScreen or list the cards. | |
| virtual void | HandleCommand (const MetScreenCommand *pCommand) |
| Start an arrow's alternation, choose the card, back out, or probe again. | |
| virtual void | OnRepeatingSoundFinished (Rnd::Button *pButton) |
| Step the selection once an arrow's alternation has finished, and show it. | |
| virtual void | OnEnterFinished () |
| Show the help text and select the mc_opt preset once the enter animation has finished. | |
| virtual void | OnExitFinished () |
| Bring up the next screen once this one has exited. | |
| virtual void | ResolveContainerViews () |
| Resolve the base views, the two arrows, the two card texts, and the information view, and set the panel title. | |
| virtual void | PlaySlideSound (int nSelector) |
| Play the slide sound while at least one card is listed. | |
| virtual void | PlayHighSound (int) |
| Play nothing. | |
| virtual void | PlayCycleLeftSound (int nSelector) |
| Play the cycle-left sound while at least two cards are listed. | |
| virtual void | PlayCycleRightSound (int nSelector) |
| Play the cycle-right sound under the same condition as PlayCycleLeftSound(). | |
| virtual void | StartDetect () |
| Show the detection notice, register the screen with the renderer, and run the base probe. | |
| virtual void | OnNoCard () |
| Report that the card in port 1 is missing. | |
| virtual void | OnDetectFinished () |
| Refresh the card list and bring the screen up. | |
| Public Member Functions inherited from MetMemDetectScreen | |
| MetMemDetectScreen (MetRenderer *pRenderer, int nPriority, const HxStr &name, const HxStr &directory, const HxStr &file) | |
| Construct the detector. | |
| virtual | ~MetMemDetectScreen () |
| virtual void | OnMsgScreenDismissed (const HxStr &name, int nChoice) |
| Act on the player's response to one of the probe's dialogues. | |
| virtual void | UpdateIdle (float flTime) |
| Close the autosave notice once it has been up for 480 units of renderer time. | |
| virtual void | OnAllConnectStates () |
| Load the global settings from the card in port 1, or offer to format it. | |
| virtual void | OnMinimumSaveSpace (int nPortSlot, int nSpace) |
| Warn when the card in port 1 has less free space than a save needs, or show the autosave notice. | |
| virtual void | OnCardFormatted (int nPortSlot, int nStatus) |
| Report the result of formatting the card in port 1. | |
| virtual void | OnPersonasLoaded (int nPortSlot, int nStatus) |
| Run StartSaveSpaceCheck(). | |
| virtual void | OnGlobalSettingsLoaded (int nPortSlot, int nStatus) |
| Run StartLoadPersonas(). | |
| virtual void | StartLoadPersonas () |
| Show the loading notice and load the personas from the card in port 1. | |
| virtual void | StartSaveSpaceCheck () |
| Check the free space on the card in port 1. | |
| Public Member Functions inherited from MetScreen | |
| MetScreen (MetRenderer *pRenderer, int nPriority, const HxStr &name, const HxStr &directory, const HxStr &file) | |
| Construct a screen and start its container load. | |
| virtual | ~MetScreen () |
| Unregister from the renderer and release the container. | |
| void | DeliverCommand (const MetScreenCommand *pCommand) |
| Play the sound one navigation command calls for and then act on the command. | |
| void | UpdateAnimationFrame (float flTime) |
| Drive the frame of whichever animation is running and run the idle hook when none is. | |
| void | UpdateFrame (float flTime) |
| Advance one screen by one frame. | |
| virtual void | PushNamedScreen (const HxStr &name) |
| Bring one named screen onto the renderer's screen stack. | |
| virtual void | ActivateNamedPanel (const HxStr &name) |
| Make one named screen the renderer's active panel. | |
| virtual void | OnPanelActivated () |
| Act on this screen having become the renderer's active panel. | |
| virtual void | ExitScreenByName (const HxStr &name) |
| Start one named screen's exit animation. | |
| virtual void | BeginExit () |
| Start this screen's exit animation at the renderer's current time. | |
| virtual void | OnUnusedHook () |
| Do nothing. | |
| virtual void | OnKeyboardDismissed () |
| Take control back after the keyboard screen has finished. | |
| virtual void | OnDrawPass () |
| Contribute to the renderer's draw pass. | |
| virtual void | OnDestroying () |
| Release what the screen acquired, ahead of the rest of destruction. | |
| virtual int | PollContainerLoad () |
| Advance this screen's container load and resolve its views once the load finishes. | |
| virtual void | OnMsgScreenShown (const HxStr &name) |
| Act on a message dialogue becoming visible. | |
| virtual void | SetShowing (int nShowing) |
| Show or hide the view and every drawable the container loaded. | |
| virtual void | BeginContainerLoad (const HxStr &directory, const HxStr &file) |
| Intern a container load under this screen's container name and enqueue it. | |
| virtual void | PlayLeaveSound (int nSelector) |
| Play the sound that accompanies departing a screen. | |
| virtual void | PlayErrorSound (int nSelector) |
| Play the sound that accompanies a rejected input. | |
| virtual void | UpdateIdleAnimation (float flTime) |
| Advance whatever the screen animates while it is neither entering nor exiting. | |
| virtual void | StartRepeatingSound (float flStartTime, float flInterval, Rnd::Button *pButton, int nCycles) |
| Start alternating one button between its states 2 and 1. | |
| virtual void | UpdateRepeatingSound (float flTime) |
| Advance the alternation that StartRepeatingSound() started. | |
| virtual void | StartEnterAnimation (float flTime) |
| Rewind the enter animation and record the time it starts at. | |
| virtual void | UpdateEnterAnimation (float flTime) |
| Drive the enter animation and finish it once it passes its end. | |
| virtual void | StartExitAnimation (float flTime) |
| Record the time the exit animation starts at. | |
| virtual void | UpdateExitAnimation (float flTime) |
| Drive the exit animation and hide the screen once it passes its end. | |
| virtual void | Draw () |
| Draw the view. | |
| Public Member Functions inherited from MsgSink | |
| void * | operator new (size_t nSize) |
| Allocate a sink from the tagged heap under the tag "MsgSink". | |
| void | operator delete (void *pBlock) |
| Release a sink to the tagged heap. | |
| virtual | ~MsgSink () |
| virtual void | Dispatch (Message *pMsg) |
| Accept a message. | |
| Public Member Functions inherited from MemcardUser | |
| virtual | ~MemcardUser () |
| Release the receiver. | |
| virtual void | OnConnectState (MemcardConnectState state, int nStatus) |
| Report the state of one slot. | |
| virtual void | OnCardUnformatted (int nPortSlot, int nStatus) |
| Report a finished unformat. | |
| virtual void | OnPersonasSaved (int nPortSlot, int nStatus) |
| Report a finished save of the FreQ roster. | |
| virtual void | OnRemixSaved (int nPortSlot, int nStatus) |
| Report a finished save of one remix. | |
| virtual void | OnGlobalSettingsSaved (int nPortSlot, int nStatus) |
| Report a finished save of the global settings. | |
| virtual void | OnJukeboxPlayListSaved (int nPortSlot, int nStatus) |
| Report a finished save of a jukebox playlist. | |
| virtual void | OnRemixesListed (int nPortSlot, int nStatus) |
| Report a finished listing of the saved remixes. | |
| virtual void | OnRemixLoaded (int nPortSlot, int nStatus) |
| Report a finished load of one remix. | |
| virtual void | OnJukeboxPlayListLoaded (int nPortSlot, int nStatus) |
| Report a finished load of a jukebox playlist. | |
| virtual void | OnRemixDeleted (int nPortSlot, int nStatus) |
| Report a finished deletion of one remix. | |
| virtual void | UnusedFirstReport (int nPortSlot, int nStatus) |
| Do nothing. | |
| virtual void | UnusedSecondReport (int nPortSlot, int nStatus) |
| Do nothing. | |
| virtual void | OnFileLoaded (int nStatus) |
| Report a finished load of one file. | |
| virtual void | OnFileSaved (int nStatus) |
| Report a finished save of one file. | |
Static Public Member Functions | |
| static MetMemCardLoadScreen * | New (MetRenderer *pRenderer, int nPriority) |
| Build the screen on the heap. | |
| static void | OpenPicker (MetMemCardPickerUser *pUser) |
| Bring up the registered card picker on behalf of a requester. | |
| Static Public Member Functions inherited from MetMemDetectScreen | |
| static MetMemDetectScreen * | New (MetRenderer *pRenderer, int nPriority) |
| Build a detector on the heap with an empty screen name, directory, and container name. | |
| Static Public Member Functions inherited from MetScreen | |
| static std::map< HxStr, MetContainerLoad * > & | ContainerLoaderMap () |
| Shared table of container loads, interned under the container name. | |
| static std::map< HxStr, MetScreenEntry > & | ScreenRegistry () |
| Shared table of live screens, interned under the screen registry key. | |
| static MetScreen * | FindScreenByName (const HxStr &name) |
| Resolve one screen by its registry key. | |
| static MetScreen * | FindEndScreen (MetRenderer *pRenderer, const HxStr &name) |
| Resolve one end-of-game screen by its registry key, failing fatally when it is absent. | |
| static void | CreateMainMenuScreens (MetRenderer *pRenderer) |
| Create the main-menu screens. | |
| static void | DestroyAllScreens () |
| Delete every registered screen and release every container loader. | |
| static void | CreateStartupScreens (MetRenderer *pRenderer) |
| Create the four screens the front end needs before its containers have loaded. | |
| static void | CreateFrontEndScreens (MetRenderer *pRenderer) |
| Create every remaining front-end screen, once. | |
| static void | DestroyCategory2Screens () |
| Delete and unregister every screen in category 2. | |
| static void | DestroyCategory1Screens () |
| Delete and unregister every screen in category 1. | |
| static void | DestroyNonDefaultScreens () |
| Delete and unregister every screen outside category 0, then rewind the rndMetLocAndNet zone. | |
| static void | PollContainerLoads () |
| Poll every container load that has not finished, and hide the drawables of each that does. | |
Additional Inherited Members | |
| Public Attributes inherited from MetScreen | |
| Rnd::View * | mView |
| The container's root view. | |
| int | mEnterPending |
| Set when the screen was pushed before its container load finished. | |
| int | mActivatePending |
| Set when the screen was activated as a panel before its container load finished. | |
| float | mRepeatScale |
| Scale on the input auto-repeat interval. | |
| Protected Member Functions inherited from MetScreen | |
| virtual void | DispatchPriv (Message *pMsg) |
| Act on a message. | |
| void | ResolveAnimationViews () |
| Resolves the two animation views from the screen name and records the enter animation's end frame. | |
| Protected Attributes inherited from MetMemDetectScreen | |
| int | mPersonaLoadRequested |
| Protected Attributes inherited from MetScreen | |
| float | mAnimEndFrame |
| float | mEnterStartTime |
| MetRenderer * | mRenderer |
| int | mExitChoice |
| int | mAcceptsCommands |
| Rnd::View * | mEnterAnim |
| std::vector< HxStr > | mHelpKeys |
| int | mViewsUnresolved |
| int | mPlaysCommandSounds |
| int | mShowsLoadedDrawables |
Screen that picks a memory card to load from.
Its RTTI descriptor is at 0x00901f20. It has two public non-virtual bases at fixed offsets, MetMemDetectScreen at +0x00 and MetMemCardPickerUser at +160. New() allocates 0xe8 bytes, and 0xec in the European release.
The class emits two vtables, the 44-entry primary at 0x007fbde8 and the 21-entry MemcardUser table at 0x007fbd38 that adjusts this by -140. It emits none for MetMemCardPickerUser, and its constructor writes vptrs at +0x00 and +0x8c and nothing at +0xa0. That is a further confirmation that MetMemCardPickerUser declares no virtual function.
The primary table is the same length as the MetMemDetectScreen table, and the class declares no new virtual. Fifteen inherited slots differ, the most of any class in the subsystem.
The screen lists up to two cards from GlobalSettings::mCardSlots, the card in port 1 and the card in port 2 or in multitap slot 1-B. The left and right commands step through them, the select command hands the chosen card to MetMemCardTypeScreen, and command 7 probes again.
The translation unit spans 0x002cb8c8 to 0x002d23b8. Besides the members below, it has the type function at 0x002d1d20, per-unit copies of MsgSink and MetMemCardPickerUser routines, and template library emissions.
| MetMemCardLoadScreen::MetMemCardLoadScreen | ( | MetRenderer * | pRenderer, |
| int | nPriority ) |
Construct the screen.
Supplies mcl for the screen name, metagame/Shared for the directory, and memcard_load for the container, and records the help text mcl_card.
| pRenderer | The front-end renderer this screen registers on. |
| nPriority | The load priority. |
|
virtual |
|
static |
Build the screen on the heap.
| pRenderer | The front-end renderer the screen registers on. |
| nPriority | The load priority. |
|
inlinestatic |
Bring up the registered card picker on behalf of a requester.
Inline. 0x002d1d88 is its uncalled out-of-line copy. The title is inferred.
| pUser | The requester. |
| void MetMemCardLoadScreen::Present | ( | MetMemCardPickerUser * | pUser, |
| bool | bShowNow ) |
Record the requester, then either bring the screen up at once or hide it and probe.
The title is inferred.
| pUser | The requester, recorded in mPickerUser. |
| bShowNow | True to push and activate the screen, false to hide it while it has a container view and run StartDetect(). |
|
virtual |
Hide the screen, then probe again after MetConfigOptionsButtonsScreen or list the cards.
Slot 5. The European release first records MetFrontEndState::mUsingMemcard in mUsingMemcardOnEnter, and after MetConfigOptionsButtonsScreen it raises new_card_warning with CANCEL and OK instead of probing.
Reimplemented from MetScreen.
|
virtual |
Start an arrow's alternation, choose the card, back out, or probe again.
Slot 19. The two arrows respond only while at least two cards are listed, and the select command only while at least one is.
| pCommand | The command. |
Reimplemented from MetScreen.
|
virtual |
Step the selection once an arrow's alternation has finished, and show it.
Slot 30. The selection wraps at both ends.
| pButton | The arrow that finished alternating. |
Reimplemented from MetScreen.
|
virtual |
Show the help text and select the mc_opt preset once the enter animation has finished.
Slot 33.
Reimplemented from MetScreen.
|
virtual |
Bring up the next screen once this one has exited.
Slot 36. A back command returns to MetConfigOptionsButtonsScreen, command 7 probes again through Present(), and a chosen card goes to MetMemCardTypeScreen.
Reimplemented from MetScreen.
|
virtual |
Resolve the base views, the two arrows, the two card texts, and the information view, and set the panel title.
Slot 38.
Reimplemented from MetScreen.
|
virtual |
|
inlinevirtual |
Play nothing.
Slot 22. The body is empty.
Reimplemented from MetScreen.
|
virtual |
|
virtual |
Play the cycle-right sound under the same condition as PlayCycleLeftSound().
Slot 24.
| nSelector | Passed through to MetScreen unchanged. |
Reimplemented from MetScreen.
|
virtual |
Show the detection notice, register the screen with the renderer, and run the base probe.
Slot 39.
Reimplemented from MetMemDetectScreen.
|
virtual |
Report that the card in port 1 is missing.
Slot 41. When the first card listed is in port 2 or slot 1-B, the mem_detect_special text names it together with NextCardSlot(). Otherwise the mem_check12 text appears.
Reimplemented from MetMemDetectScreen.
|
virtual |
Refresh the card list and bring the screen up.
Slot 42. The European release first restores MetFrontEndState::mUsingMemcard when mUsingMemcardOnEnter is 1.
Reimplemented from MetMemDetectScreen.