persona-3-dual
A DS demake of Persona 3
Loading...
Searching...
No Matches
UIEvents.hpp
Go to the documentation of this file.
1
6
7
#pragma once
8
9
#include "
components/TextComponent.hpp
"
10
#include "
components/menus/UIMenu.hpp
"
11
#include "
components/screens/UIScreen.hpp
"
12
#include "
types/aeTypes.hpp
"
13
14
#include <aegis/aegis.hpp>
15
16
namespace
Event
17
{
21
struct
ConfigureUIScreen
:
public
etl::message<EventID::ConfigureUIScreen>
22
{
24
std::array<int, 3>
bgSub
;
25
27
std::array<int, 2>
bgMain
;
28
30
OamState*
oamSub
;
31
33
OamState*
oamMain
;
34
36
std::array<UIScreen*, 5>
screens
;
37
38
ConfigureUIScreen
(std::array<int, 3> iBgSub,
39
std::array<int, 2> iBgMain,
40
OamState* iOamSub,
41
OamState* iOamMain,
42
std::array<UIScreen*, 5> iScreens)
43
:
bgSub
(iBgSub),
bgMain
(iBgMain),
oamSub
(iOamSub),
oamMain
(iOamMain),
screens
(iScreens)
44
{
45
}
46
};
47
51
struct
ConfigureUIMenu
:
public
etl::message<EventID::ConfigureUIMenu>
52
{
53
TextComponent
*
text
=
nullptr
;
54
std::array<UIMenu*, 10>
menus
= {};
55
56
ConfigureUIMenu
(
TextComponent
* iText, std::array<UIMenu*, 10> iMenus) :
text
(iText),
menus
(iMenus)
57
{
58
}
59
};
60
64
struct
ShowMenu
:
public
etl::message<EventID::ShowMenu>
65
{
66
UIMenu
*
menu
;
67
ShowMenu
(
UIMenu
* iMenu) :
menu
(iMenu)
68
{
69
}
70
};
71
75
struct
HideAllMenus
:
public
etl::message<EventID::HideAllMenus>
76
{
77
};
78
82
struct
ShowScreen
:
public
etl::message<EventID::ShowScreen>
83
{
85
UIScreen
*
screen
;
86
87
ShowScreen
(
UIScreen
* iScreen) :
screen
(iScreen)
88
{
89
}
90
};
91
95
struct
HideAllScreens
:
public
etl::message<EventID::HideAllScreens>
96
{
97
};
98
102
struct
RenderUIText
:
public
etl::message<EventID::RenderUIText>
103
{
104
};
105
}
// namespace Event
TextComponent.hpp
Orchestrates rendering text from a bitmap.
UIMenu.hpp
UIScreen.hpp
aeTypes.hpp
TextComponent
Definition
TextComponent.hpp:19
UIMenu
Definition
UIMenu.hpp:21
UIScreen
Definition
UIScreen.hpp:7
Event
Definition
BattleEvents.hpp:20
Event::ConfigureUIMenu::ConfigureUIMenu
ConfigureUIMenu(TextComponent *iText, std::array< UIMenu *, 10 > iMenus)
Definition
UIEvents.hpp:56
Event::ConfigureUIMenu::menus
std::array< UIMenu *, 10 > menus
Definition
UIEvents.hpp:54
Event::ConfigureUIMenu::text
TextComponent * text
Definition
UIEvents.hpp:53
Event::ConfigureUIScreen::ConfigureUIScreen
ConfigureUIScreen(std::array< int, 3 > iBgSub, std::array< int, 2 > iBgMain, OamState *iOamSub, OamState *iOamMain, std::array< UIScreen *, 5 > iScreens)
Definition
UIEvents.hpp:38
Event::ConfigureUIScreen::screens
std::array< UIScreen *, 5 > screens
The screens to register.
Definition
UIEvents.hpp:36
Event::ConfigureUIScreen::oamSub
OamState * oamSub
Pointer to sub OAM.
Definition
UIEvents.hpp:30
Event::ConfigureUIScreen::bgSub
std::array< int, 3 > bgSub
Array of sub screen background ids.
Definition
UIEvents.hpp:24
Event::ConfigureUIScreen::bgMain
std::array< int, 2 > bgMain
Array of main screen background ids.
Definition
UIEvents.hpp:27
Event::ConfigureUIScreen::oamMain
OamState * oamMain
Pointer to main OAM.
Definition
UIEvents.hpp:33
Event::HideAllMenus
Event to hide all menus.
Definition
UIEvents.hpp:76
Event::HideAllScreens
Event to trigger hiding all UIScreens.
Definition
UIEvents.hpp:96
Event::RenderUIText
Event to trigger rendering UI text.
Definition
UIEvents.hpp:103
Event::ShowMenu::ShowMenu
ShowMenu(UIMenu *iMenu)
Definition
UIEvents.hpp:67
Event::ShowMenu::menu
UIMenu * menu
Definition
UIEvents.hpp:66
Event::ShowScreen::screen
UIScreen * screen
The screen to show.
Definition
UIEvents.hpp:85
Event::ShowScreen::ShowScreen
ShowScreen(UIScreen *iScreen)
Definition
UIEvents.hpp:87
source
events
UIEvents.hpp
Generated by
1.15.0