|
| | ~CreditsScreen () override=default |
| | Destroy the object.
|
| | CreditsScreen (DataArray *pData) |
| | Construct the screen from its script description.
|
| bool | DispatchPriv (Message *pMsg) override |
| | Route a controller button, and pass every other message to UIScreen.
|
| void | Poll (float fTime) override |
| | Advance the screen, and move on once the hold has run out.
|
| void | Enter (UIScreen *pPrevScreen, float fTime) override |
| | Start the entry and the hold, and show the next page.
|
| bool | HandleJoypad (JoypadInputMsg *pMsg) |
| | Exit the credits on the triangle button and move on on any other button.
|
| void | Advance () |
| | Stop the hold and go to the screen between two pages, or after the last page to the screen after the credits.
|
| void | ShowPage () |
| | Fill each text object with the next line of the text, or blank it after the last line.
|
| | UIScreen (DataArray *pData) |
| | Construct a screen from its script description.
|
| | ~UIScreen () override |
| | Destroy the screen.
|
| bool | Dispatch (Message *pMsg) override |
| | Offer a message to the manager, then handle it here, then pass a navigation message on.
|
| bool | DispatchPriv (Message *pMsg) override |
| | Follow the transition of a pressed button or a chosen component.
|
| virtual void | Draw () |
| | Draw the panels.
|
| virtual void | Exit (UIScreen *pNextScreen, float fTime) |
| | Start the exit to another screen.
|
| virtual void | Print (PrnStream &stream) |
| | Write a description of the screen, its panels, and its transitions.
|
| void | ClearTransitions () |
| | Empty the transition table.
|
| void | AddTransition (const char *pszComponent, int nButton, const char *pszScreen) |
| | Append an entry to the transition table.
|
| void | AddPanel (UIPanel *pPanel) |
| | Add a panel to the screen.
|
| bool | HandleJoypad (JoypadInputMsg *pMsg) |
| | Follow the transition of a pressed controller button.
|
| bool | HandleSelect (UIComponentSelectMsg *pMsg) |
| | Follow the transition of a component chosen with the cross button.
|
| void | SetFocus (UIPanel *pPanel) |
| | Move the focus to a panel.
|
| UIComponent * | FindComponent (const char *pszName) |
| | Find a component on any of the screen's panels.
|
| Transition * | FindTransition (UIComponent *pComponent, bool bFail) |
| | Find the transition of a component.
|
| Transition * | FindTransition (int nButton, bool bFail) |
| | Find the transition of a controller button.
|
| void | Load () |
| | Load the panels.
|
| void | Unload () |
| | Unload the panels.
|
| bool | IsLoaded () |
| | Report whether every panel has loaded.
|
| const char * | GetName () const |
| const char * | GetGroup () const |
| UIPanel * | GetFocusPanel () const |
| UIScreen * | GetNextScreen () const |
| UIScreen * | GetPrevScreen () const |
| const std::map< const char *, UIPanel *, StrLess > & | GetPanels () const |
| void * | operator new (size_t nSize) |
| | Allocate a sink from the pool heaps under the tag "MsgSink".
|
| void | operator delete (void *pBlock) |
| | Return a sink to the pool heaps.
|
| virtual | ~MsgSink () |
| void * | operator new (size_t size) |
| | Allocate from the main heap under the name MsgSink.
|
| void | operator delete (void *mem) |
| | Return memory to its heap.
|
| virtual | ~MsgSink () |
| | Destroy the sink.
|
A page of the credits.
The screen fills its text objects with the next lines of a localised text and moves on after a hold, either to a screen between two pages or to the screen after the credits. The screen between two pages comes back to this one.
The RTTI records the class as deriving from UIScreen. The object is 0x58 bytes and its vtable is at 0x003cefc8. The metagame registers the class for the screen type credits_screen. The description provides these:
- text_tag, the token of the text and the prefix of the text objects <text_tag>_01.txt, <text_tag>_02.txt, and so on;
- next_screen, the screen after the last page;
- between_screen, the screen shown between two pages;
- hold_time, how long a page shows, by default one second.
Each line of the text ends with a carriage return and a line feed.