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
12#include "types/aeTypes.hpp"
13
14#include <aegis/aegis.hpp>
15
16namespace Event
17{
21struct 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
51struct 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
64struct ShowMenu : public etl::message<EventID::ShowMenu>
65{
67 ShowMenu(UIMenu* iMenu) : menu(iMenu)
68 {
69 }
70};
71
75struct HideAllMenus : public etl::message<EventID::HideAllMenus>
76{
77};
78
82struct ShowScreen : public etl::message<EventID::ShowScreen>
83{
86
87 ShowScreen(UIScreen* iScreen) : screen(iScreen)
88 {
89 }
90};
91
95struct HideAllScreens : public etl::message<EventID::HideAllScreens>
96{
97};
98
102struct RenderUIText : public etl::message<EventID::RenderUIText>
103{
104};
105} // namespace Event
Orchestrates rendering text from a bitmap.
ConfigureUIMenu(TextComponent *iText, std::array< UIMenu *, 10 > iMenus)
Definition UIEvents.hpp:56
std::array< UIMenu *, 10 > menus
Definition UIEvents.hpp:54
TextComponent * text
Definition UIEvents.hpp:53
ConfigureUIScreen(std::array< int, 3 > iBgSub, std::array< int, 2 > iBgMain, OamState *iOamSub, OamState *iOamMain, std::array< UIScreen *, 5 > iScreens)
Definition UIEvents.hpp:38
std::array< UIScreen *, 5 > screens
The screens to register.
Definition UIEvents.hpp:36
OamState * oamSub
Pointer to sub OAM.
Definition UIEvents.hpp:30
std::array< int, 3 > bgSub
Array of sub screen background ids.
Definition UIEvents.hpp:24
std::array< int, 2 > bgMain
Array of main screen background ids.
Definition UIEvents.hpp:27
OamState * oamMain
Pointer to main OAM.
Definition UIEvents.hpp:33
Event to hide all menus.
Definition UIEvents.hpp:76
Event to trigger hiding all UIScreens.
Definition UIEvents.hpp:96
Event to trigger rendering UI text.
Definition UIEvents.hpp:103
ShowMenu(UIMenu *iMenu)
Definition UIEvents.hpp:67
UIMenu * menu
Definition UIEvents.hpp:66
UIScreen * screen
The screen to show.
Definition UIEvents.hpp:85
ShowScreen(UIScreen *iScreen)
Definition UIEvents.hpp:87