|
resonance 1.0.1
|
End-of-remix screen for a solo session. More...
#include <metsoloendremixscreen.h>


Public Member Functions | |
| MetSoloEndRemixScreen (MetRenderer *pRenderer, int nPriority) | |
| Construct the screen. | |
| virtual | ~MetSoloEndRemixScreen () |
| virtual void | EnterAndShow () |
| Show the screen, or first save the global settings when the front end asks for it. | |
| virtual void | OnPanelActivated () |
| Make the save screen the active panel. | |
| virtual void | UpdateIdle (float flTime) |
| Advance both texture pairs and show each one's current texture. | |
| virtual void | OnExitFinished () |
| Run the departure sequence once, unless a save is still pending. | |
| virtual void | ResolveContainerViews () |
| Resolve the container objects this screen drives. | |
| virtual void | OnSaveFinished (int bCompleted) |
| Depart the screen, or run the departure sequence when one is already pending. | |
| virtual void | OnHelpRequested () |
| Record that the departure sequence has been requested and start the exit animation. | |
| virtual void | SetOwnerScreenShowing (int bShowing) |
| Show or exit this screen and record which of the two happened. | |
| 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 | 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 | OnMsgScreenDismissed (const HxStr &name, int nChoice) |
| Act on the choice the user made in a message dialogue. | |
| 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 | HandleCommand (const MetScreenCommand *pCommand) |
| Act on a navigation command. | |
| virtual void | PlaySlideSound (int nSelector) |
| Play the sound that accompanies sliding between screens. | |
| virtual void | PlayLeaveSound (int nSelector) |
| Play the sound that accompanies departing a screen. | |
| virtual void | PlayHighSound (int nSelector) |
| Play the sound that accompanies the emphasised selection. | |
| virtual void | PlayCycleLeftSound (int nSelector) |
| Play the sound that accompanies cycling a value to the left. | |
| virtual void | PlayCycleRightSound (int nSelector) |
| Play the sound that accompanies cycling a value to the right. | |
| 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 | OnRepeatingSoundFinished (Rnd::Button *pButton) |
| Act on the alternation that StartRepeatingSound() started having finished. | |
| 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 | OnEnterFinished () |
| Act on the enter animation having finished. | |
| 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 MetRemixSaver | |
| virtual | ~MetRemixSaver () |
Static Public Member Functions | |
| static MetSoloEndRemixScreen * | New (MetRenderer *pRenderer, int nPriority) |
| Allocate and construct the screen. | |
| 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 MetScreen | |
| float | mAnimEndFrame |
| float | mEnterStartTime |
| MetRenderer * | mRenderer |
| int | mExitChoice |
| int | mAcceptsCommands |
| Rnd::View * | mEnterAnim |
| std::vector< HxStr > | mHelpKeys |
| int | mViewsUnresolved |
| int | mPlaysCommandSounds |
| int | mShowsLoadedDrawables |
End-of-remix screen for a solo session.
Its RTTI descriptor is at 0x008f07f0. It has two public non-virtual bases at fixed offsets, MetScreen at +0x00 and MetRemixSaver at +140. The factory at 0x00399630 confirms the object size of 0x11c bytes by requesting exactly that many with the tag MsgSink. The 39-entry primary vtable is at 0x0080c4f0, the same length as the MetScreen table, and the class declares no new virtual. The five-entry MetRemixSaver table at 0x0080c4c0 adjusts this by -140 in every entry. That table is where this screen supplies the three MetRemixSaver pure virtuals.
The constructor at 0x003943f8 takes only the renderer and the load priority, and supplies erss for the screen name, metagame/_Solo for the directory, and end_remix for the container. It builds the two TexturePairRecord members from the texture pairs gSongLogo1.tex with gSongLogo2.tex and gSongLabel1.tex with gSongLabel2.tex.
The destructor at 0x003996b8 restores both vptrs, runs the TexturePairRecord destructor at 0x001fc568 on each of the two records, restores the MetRemixSaver vptr to 0x007ffcd0, runs the MetScreen destructor, and releases the object with the tag MsgSink. Every step is compiler-generated member destruction or a vptr restore, so the definition is empty.
Seven entries of the primary table differ from the MetScreen table, which a diff of the two tables settles. They are 0 0x003995b0, the compiler-generated GetTypeInfo, 1 0x003996b8 the destructor, 5 0x00394e10, 7 0x003997d0, 26 0x00399748, 36 0x00399870, and 38 0x00394728. All five behaviour slots are declared below.
The three MetRemixSaver pure virtuals are supplied at 0x003998c8, 0x00399898, and 0x00395918, and all three are declared below with the spelling the base gives them.
Slots 2, 3, 4, 7, and 36 all route through one private helper or one of the two navigation virtuals, and mScreenExited is the flag that selects between them. Slot 3 sets it, slot 4 stores the negation of its argument in it, and slots 2 and 36 branch on it.
| MetSoloEndRemixScreen::MetSoloEndRemixScreen | ( | MetRenderer * | pRenderer, |
| int | nPriority ) |
Construct the screen.
| pRenderer | The front-end renderer this screen registers on. |
| nPriority | The load priority. |
|
virtual |
|
static |
Allocate and construct the screen.
The 0x11c-byte allocation is billed to the tag MsgSink.
| pRenderer | The front-end renderer this screen registers on. |
| nPriority | The load priority. |
|
virtual |
Show the screen, or first save the global settings when the front end asks for it.
Slot 5.
When MetFrontEndState's +0x0c and +0x10 flags are both 1, +0x10 is cleared, MetGlobalSettingsSaverScreen::StartSave() runs with this screen as the one to return to, and mActivatePending is cleared. Otherwise ShowResults() fills and shows the screen.
Reimplemented from MetScreen.
|
virtual |
Make the save screen the active panel.
Slot 7.
Activates the panel registered under MetSaveRemixScreen and does nothing else. MetScreen slot 6 is its one caller.
Reimplemented from MetScreen.
|
virtual |
Advance both texture pairs and show each one's current texture.
Slot 26.
The song logo pair feeds the first stage of mLogoMat and the song label pair the first stage of mPhotoMat. The float argument the slot receives is not read.
| flTime | The current renderer time, which the body does not read. |
Reimplemented from MetScreen.
|
virtual |
Run the departure sequence once, unless a save is still pending.
Slot 36.
MetScreen slot 35 runs this slot once the exit animation has finished. A set mScreenExited records that slot 3 or slot 4 has already requested the departure, and the sequence then does not run a second time.
Reimplemented from MetScreen.
|
virtual |
Resolve the container objects this screen drives.
Slot 38.
Runs the MetScreen slot 38 body first. It then labels the remix panel text from configuration code 0x258 without storing it, and resolves the six text fields, the three materials, and the first persona burn texture into the members at +0x90 through +0xb4. Only the panel text is used without a null test.
Reimplemented from MetScreen.
|
virtual |
Depart the screen, or run the departure sequence when one is already pending.
MetRemixSaver slot 2. A clear mScreenExited starts the exit animation and lets slot 36 run the sequence once the animation has finished. A set mScreenExited runs the sequence at once.
| bCompleted | Not read. |
Implements MetRemixSaver.
|
virtual |
Record that the departure sequence has been requested and start the exit animation.
MetRemixSaver slot 3.
Implements MetRemixSaver.
|
virtual |
Show or exit this screen and record which of the two happened.
MetRemixSaver slot 4. The member takes the negation of the argument, which is faithful only for an argument of 0 or 1, because the binary computes it with xori against 1 rather than with a comparison.
| bShowing | Non-zero to bring the screen back onto the stack, zero to exit it. |
Implements MetRemixSaver.