95 const std::vector<HxStr> &buttons,
117 const std::vector<HxStr> &buttons,
331 void ForwardToOwner(
Message *pMsg) {
332 mOwner->Dispatch(pMsg);
343 std::vector<HxStr> mButtons;
Heap-allocated NUL-terminated string.
Definition hxstr.h:41
Base of every event the game passes between a MsgSource and a MsgSink.
Definition message.h:41
void SetName(const HxStr &name)
Assign the dialogue name.
Definition metmsgscreen.h:166
void Refresh()
Rebuild the dialogue for the current name, title, text, and button count.
static void Show(const HxStr &name, const HxStr &title, const HxStr &text, int nButtons, const std::vector< HxStr > &buttons, MetScreen *pOwner)
Fill the registered message screen and bring it up.
virtual void OnExitFinished()
Mark the dialogue as gone and report the choice to the owner.
virtual ~MetMsgScreen()
Delete the two-button list and then the one-button list.
virtual void PlayHighSound(int)
Silence the high sound.
Definition metmsgscreen.h:265
virtual void PlayCycleRightSound(int nSelector)
Play the cycle-right sound when the dialogue has two buttons and accepts nSelector.
virtual void ResolveContainerViews()
Build the button lists and resolve the dialogue's text objects and button view.
void SetText(const HxStr &text)
Assign the message text.
Definition metmsgscreen.h:192
virtual void UpdateIdle(float flTime)
Exit once a scheduled exit time has passed.
virtual void PlayCycleLeftSound(int nSelector)
Play the cycle-left sound when the dialogue has two buttons and accepts nSelector.
static void ShowActive(const HxStr &name, const HxStr &title, const HxStr &text, int nButtons, const std::vector< HxStr > &buttons, MetScreen *pOwner)
Fill the registered message screen and make it the active panel.
virtual void PlaySlideSound(int nSelector)
Play the slide sound when the dialogue has buttons and accepts nSelector.
static void SetOwnerPad(int nPad)
Limit the registered message screen to one controller.
MetMsgScreen(MetRenderer *pRenderer, int nPriority)
Construct the screen.
virtual void BeginExit()
Start the exit, or schedule it for a dialogue with no buttons.
virtual void DispatchPriv(Message *pMsg)
Discard the message's type and forward the message to the owner.
static MetMsgScreen * New(MetRenderer *pRenderer, int nPriority)
Build the screen on the heap.
virtual void PlayLeaveSound(int)
Silence the leave sound.
Definition metmsgscreen.h:256
virtual void HandleCommand(const MetScreenCommand *pCommand)
Act on one navigation command.
virtual void OnEnterFinished()
Mark the dialogue as showing and tell the owner.
void SetButtons(const std::vector< HxStr > &buttons)
Replace the button labels.
void SetTitle(const HxStr &title)
Assign the title line.
Definition metmsgscreen.h:179
virtual void EnterAndShow()
Clear the showing flag, refresh the dialogue, and show the screen.
Front-end renderer that owns the screen stack and drives every MetScreen.
Definition metrenderer.h:68
MetScreenMultiSoundBank(MetRenderer *pRenderer, int nPriority, const HxStr &name, const HxStr &directory, const HxStr &file)
Construct a screen that uses the multiplayer sound bank.
Base of every front-end screen.
Definition metscreen.h:212
MetScreen(MetRenderer *pRenderer, int nPriority, const HxStr &name, const HxStr &directory, const HxStr &file)
Construct a screen and start its container load.
Run of text drawn as a quad per glyph.
Definition text.h:57
Root of a loadable scene.
Definition view.h:47
The rendering engine.
Definition animhelper.h:3
One navigation command delivered to a screen.
Definition metscreen.h:46