persona-3-dual
A DS demake of Persona 3
Loading...
Searching...
No Matches
UITypes.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include "
types/StateTypes.hpp
"
4
#include <etl/span.h>
5
6
class
UIMenu
;
7
8
struct
MenuOption
9
{
10
const
char
*
name
;
11
int
bgIndex
;
12
ViewState
(
UIMenu
::*
onSelect
)();
13
};
14
15
struct
MenuState
16
{
17
etl::span<MenuOption>
options
;
18
int
selectedOption
;
19
int
startIndex
;
20
};
21
22
enum class
UIAction
23
{
24
SwitchToPalette0
= 0,
25
SwitchToPalette1
,
26
};
StateTypes.hpp
ViewState
ViewState
Definition
StateTypes.hpp:4
UIAction
UIAction
Definition
UITypes.hpp:23
UIAction::SwitchToPalette1
@ SwitchToPalette1
Definition
UITypes.hpp:25
UIAction::SwitchToPalette0
@ SwitchToPalette0
Definition
UITypes.hpp:24
UIMenu
Definition
UIMenu.hpp:21
MenuOption
Definition
UITypes.hpp:9
MenuOption::name
const char * name
Definition
UITypes.hpp:10
MenuOption::onSelect
ViewState(UIMenu::* onSelect)()
Definition
UITypes.hpp:12
MenuOption::bgIndex
int bgIndex
Definition
UITypes.hpp:11
MenuState
Definition
UITypes.hpp:16
MenuState::selectedOption
int selectedOption
Definition
UITypes.hpp:18
MenuState::startIndex
int startIndex
Definition
UITypes.hpp:19
MenuState::options
etl::span< MenuOption > options
Definition
UITypes.hpp:17
source
types
UITypes.hpp
Generated by
1.15.0