resonance 1.0.1
Loading...
Searching...
No Matches
metscreentitlescreen.h
Go to the documentation of this file.
1#pragma once
2
3#include "met/metscreen.h"
4#include "os/hxstr.h"
5
6namespace Rnd {
7class Text;
8} // namespace Rnd
9
27public:
36 MetScreenTitleScreen(MetRenderer *pRenderer, int nPriority);
37
43
55 static MetScreenTitleScreen *New(MetRenderer *pRenderer, int nPriority);
56
63 virtual void EnterAndShow();
64
73 virtual void BeginExit();
74
81 virtual void OnEnterFinished();
82
89 virtual void OnExitFinished();
90
99 virtual void ResolveContainerViews();
100
113 static void SetTitle(const HxStr &title);
114
125 void ApplyTitle(const HxStr &title);
126
138 static void ReplaceTitle(const HxStr &title);
139
150 void ReplaceTitleText(const HxStr &title);
151
152private:
153 Rnd::Text *mTitleText; // +0x8c "fst_title.txt", resolved by ResolveContainerViews()
154 HxStr mTitle; // +0x90 The title shown, empty until one is set.
155};
Heap-allocated NUL-terminated string.
Definition hxstr.h:41
Front-end renderer that owns the screen stack and drives every MetScreen.
Definition metrenderer.h:68
static void SetTitle(const HxStr &title)
Replace the shared screen title.
static MetScreenTitleScreen * New(MetRenderer *pRenderer, int nPriority)
Allocate and construct the screen.
MetScreenTitleScreen(MetRenderer *pRenderer, int nPriority)
Construct the screen.
static void ReplaceTitle(const HxStr &title)
Replace the shared screen title without showing the panel again.
void ApplyTitle(const HxStr &title)
Record one title and push this screen.
virtual void OnExitFinished()
Do nothing.
virtual ~MetScreenTitleScreen()
virtual void BeginExit()
Start the exit.
void ReplaceTitleText(const HxStr &title)
Record one title and set it on the title text.
virtual void ResolveContainerViews()
Resolve the title text fst_title.txt into mTitleText.
virtual void EnterAndShow()
Show the recorded title and then the screen.
virtual void OnEnterFinished()
Do nothing.
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
The rendering engine.
Definition animhelper.h:3