|
persona-3-dual
A DS demake of Persona 3
|
#include <PauseMenuScreen.hpp>


Public Member Functions | |
| void | load () |
| Loads graphics data into memory & pushes to VRAM. | |
| void | unload () |
| Unloads graphics data from memory. | |
| void | renderSprites () override |
| Applys sprite colour palette & draws sprites to screen. | |
| int | onTouch (touchPosition *touch) override |
| Hook to allow touch response. | |
| void | animateSelection () |
| Starts the jiggle animation on the selected option sprite. | |
| void | updateAnimation () |
| Updates active UI animations. | |
| void | updateAnimation (ae::q20_12_t dt) |
| Updates active UI animations with a given delta time. | |
| bool | isAnimating () const |
| Checks if the selection sprite is currently animating. | |
| void | cancelAnimation () |
| Cancels all animations. | |
| void | setTextComponent (TextComponent *text) |
| Set the Text Component object. | |
| void | setOptionsTextComponent (TextComponent *optionsText) |
| Set the Text Component used to draw the menu options. | |
| void | setYenText (const std::string ¥, TextColor color) |
| Set the Yen Text object (info panel). | |
| void | setPersonaText (const std::string &persona, TextColor color) |
| Set the Persona Text object (info panel). | |
| void | setArcanaText (const std::string &arcana, TextColor color) |
| Set the Arcana Text object (info panel). | |
| void | setLevelText (const std::string &level, TextColor color) |
| Set the Level Text object (info panel). | |
| void | setDescriptionText (const std::string &description, TextColor color) |
| Set the Description Text object (top bar). | |
| void | renderText () override |
| Draws the text. | |
| void | setMenu (const UIMenu *menu) |
| Set the menu whose options are drawn on this screen. | |
| int | getVisibleOptions () |
| Gets how many option rows the screen shows. | |
| Public Member Functions inherited from UIScreen | |
| virtual void | triggerAction (UIAction action) |
| Trigger an action to be handled. | |
| void | removeSprites () |
| Clears the displayed sprites from the screen. | |
| virtual | ~UIScreen ()=default |
| UIScreen (bool iIsMain) | |
Static Public Member Functions | |
| static void | create () |
| static void | destroy () |
| static PauseMenuScreen * | getInstance () |
Private Member Functions | |
| PauseMenuScreen () | |
| ~PauseMenuScreen () | |
| void | loadBackground () |
| void | renderBackground () |
| void | unloadBackground () |
| void | renderOptions () |
| Draws the visible options of the active menu and moves the selection bar to the selected one. | |
| void | updateSelectionSpritePosition () |
| Updates the positions of the selected option bar sprites (including jiggle offset). | |
Static Private Attributes | |
| static PauseMenuScreen * | instance = nullptr |
Additional Inherited Members | |
| Public Attributes inherited from UIScreen | |
| int | bgId = -1 |
| bool | isMain = false |
| OamState * | oam = nullptr |
| bool | isLoaded = false |
| Protected Member Functions inherited from UIScreen | |
| void | moveSprite (int spriteId, int x, int y) |
| Moves the specified sprite to the specified position on the screen. | |
| void | showSprite (int spriteId) |
| Shows the specified sprite on the screen. | |
| void | hideSprite (int spriteId) |
| Hides the specified sprite on the screen. | |
Definition at line 17 of file PauseMenuScreen.hpp.
|
inlineprivate |
Definition at line 132 of file PauseMenuScreen.hpp.


|
inlineprivate |
Definition at line 133 of file PauseMenuScreen.hpp.
| void PauseMenuScreen::animateSelection | ( | ) |
Starts the jiggle animation on the selected option sprite.
Definition at line 153 of file PauseMenuScreen.cpp.


| void PauseMenuScreen::cancelAnimation | ( | ) |
Cancels all animations.
Definition at line 187 of file PauseMenuScreen.cpp.

|
static |
|
static |
Definition at line 16 of file PauseMenuScreen.cpp.
|
static |
Definition at line 25 of file PauseMenuScreen.cpp.


| int PauseMenuScreen::getVisibleOptions | ( | ) |
Gets how many option rows the screen shows.
Definition at line 259 of file PauseMenuScreen.cpp.
| bool PauseMenuScreen::isAnimating | ( | ) | const |
Checks if the selection sprite is currently animating.
Definition at line 182 of file PauseMenuScreen.cpp.
|
virtual |
Loads graphics data into memory & pushes to VRAM.
Implements UIScreen.
Definition at line 264 of file PauseMenuScreen.cpp.

|
private |
|
overridevirtual |
Hook to allow touch response.
| touch | touch input |
Reimplemented from UIScreen.
Definition at line 239 of file PauseMenuScreen.cpp.
|
private |
|
private |
Draws the visible options of the active menu and moves the selection bar to the selected one.
Definition at line 110 of file PauseMenuScreen.cpp.


|
overridevirtual |
Applys sprite colour palette & draws sprites to screen.
index -1 is reserved for vflip/hflip, 0 is reserved for no transform
Reimplemented from UIScreen.
Definition at line 193 of file PauseMenuScreen.cpp.

|
overridevirtual |
Draws the text.
Reimplemented from UIScreen.
Definition at line 87 of file PauseMenuScreen.cpp.

| void PauseMenuScreen::setArcanaText | ( | const std::string & | arcana, |
| TextColor | color ) |
Set the Arcana Text object (info panel).
| arcana | The active persona arcana string |
| color | The text colour to render the arcana in |
Definition at line 46 of file PauseMenuScreen.cpp.
| void PauseMenuScreen::setDescriptionText | ( | const std::string & | description, |
| TextColor | color ) |
Set the Description Text object (top bar).
| description | The description string |
| color | The text colour to render the description in |
Definition at line 58 of file PauseMenuScreen.cpp.
| void PauseMenuScreen::setLevelText | ( | const std::string & | level, |
| TextColor | color ) |
Set the Level Text object (info panel).
| level | The active persona level string |
| color | The text colour to render the level in |
Definition at line 52 of file PauseMenuScreen.cpp.
| void PauseMenuScreen::setMenu | ( | const UIMenu * | menu | ) |
Set the menu whose options are drawn on this screen.
| menu | The UIMenu pointer to set |
Definition at line 254 of file PauseMenuScreen.cpp.
| void PauseMenuScreen::setOptionsTextComponent | ( | TextComponent * | optionsText | ) |
Set the Text Component used to draw the menu options.
| optionsText | The TextComponent pointer to set |
Definition at line 249 of file PauseMenuScreen.cpp.
| void PauseMenuScreen::setPersonaText | ( | const std::string & | persona, |
| TextColor | color ) |
Set the Persona Text object (info panel).
| persona | The active persona name string |
| color | The text colour to render the persona name in |
Definition at line 40 of file PauseMenuScreen.cpp.
| void PauseMenuScreen::setTextComponent | ( | TextComponent * | text | ) |
Set the Text Component object.
| text | The TextComponent pointer to set |
Definition at line 244 of file PauseMenuScreen.cpp.
| void PauseMenuScreen::setYenText | ( | const std::string & | yen, |
| TextColor | color ) |
Set the Yen Text object (info panel).
| yen | The yen amount string |
| color | The text colour to render the yen amount in |
Definition at line 34 of file PauseMenuScreen.cpp.
|
virtual |
Unloads graphics data from memory.
Implements UIScreen.
Definition at line 296 of file PauseMenuScreen.cpp.

|
private |
| void PauseMenuScreen::updateAnimation | ( | ) |
Updates active UI animations.
Definition at line 165 of file PauseMenuScreen.cpp.


| void PauseMenuScreen::updateAnimation | ( | ae::q20_12_t | dt | ) |
Updates active UI animations with a given delta time.
| dt | Delta time in seconds (Q20.12) |
Definition at line 171 of file PauseMenuScreen.cpp.

|
private |
Updates the positions of the selected option bar sprites (including jiggle offset).
Definition at line 138 of file PauseMenuScreen.cpp.


|
private |
Definition at line 158 of file PauseMenuScreen.hpp.
|
private |
Definition at line 177 of file PauseMenuScreen.hpp.
|
private |
Definition at line 176 of file PauseMenuScreen.hpp.
|
private |
Definition at line 186 of file PauseMenuScreen.hpp.
|
private |
Definition at line 188 of file PauseMenuScreen.hpp.
|
private |
Definition at line 183 of file PauseMenuScreen.hpp.
|
private |
Definition at line 182 of file PauseMenuScreen.hpp.
|
private |
Definition at line 151 of file PauseMenuScreen.hpp.
|
staticprivate |
Definition at line 134 of file PauseMenuScreen.hpp.
|
private |
Definition at line 157 of file PauseMenuScreen.hpp.
|
private |
Definition at line 180 of file PauseMenuScreen.hpp.
|
private |
Definition at line 179 of file PauseMenuScreen.hpp.
|
private |
Definition at line 154 of file PauseMenuScreen.hpp.
|
private |
Definition at line 166 of file PauseMenuScreen.hpp.
|
private |
Definition at line 165 of file PauseMenuScreen.hpp.
|
private |
Definition at line 163 of file PauseMenuScreen.hpp.
|
private |
Definition at line 164 of file PauseMenuScreen.hpp.
|
private |
Definition at line 153 of file PauseMenuScreen.hpp.
|
private |
Definition at line 150 of file PauseMenuScreen.hpp.
|
private |
Definition at line 174 of file PauseMenuScreen.hpp.
|
private |
Definition at line 173 of file PauseMenuScreen.hpp.
|
private |
Definition at line 156 of file PauseMenuScreen.hpp.
|
private |
Definition at line 206 of file PauseMenuScreen.hpp.
|
private |
Definition at line 207 of file PauseMenuScreen.hpp.
|
private |
Definition at line 167 of file PauseMenuScreen.hpp.
|
private |
Definition at line 204 of file PauseMenuScreen.hpp.
|
private |
Definition at line 200 of file PauseMenuScreen.hpp.
|
private |
Definition at line 159 of file PauseMenuScreen.hpp.
|
private |
Definition at line 197 of file PauseMenuScreen.hpp.
|
private |
Definition at line 210 of file PauseMenuScreen.hpp.
|
private |
Definition at line 217 of file PauseMenuScreen.hpp.
|
private |
Definition at line 225 of file PauseMenuScreen.hpp.
|
private |
Definition at line 233 of file PauseMenuScreen.hpp.
|
private |
Definition at line 191 of file PauseMenuScreen.hpp.
Definition at line 240 of file PauseMenuScreen.hpp.
|
private |
Definition at line 242 of file PauseMenuScreen.hpp.
|
private |
Definition at line 196 of file PauseMenuScreen.hpp.
|
private |
Definition at line 209 of file PauseMenuScreen.hpp.
|
private |
Definition at line 216 of file PauseMenuScreen.hpp.
|
private |
Definition at line 223 of file PauseMenuScreen.hpp.
|
private |
Definition at line 231 of file PauseMenuScreen.hpp.
|
private |
Definition at line 195 of file PauseMenuScreen.hpp.
|
private |
Definition at line 194 of file PauseMenuScreen.hpp.
|
private |
Definition at line 152 of file PauseMenuScreen.hpp.
|
private |
Definition at line 162 of file PauseMenuScreen.hpp.
|
private |
Definition at line 171 of file PauseMenuScreen.hpp.
|
private |
Definition at line 170 of file PauseMenuScreen.hpp.