CommonLibSSE (powerof3)
MainMenu.h
Go to the documentation of this file.
1 #pragma once
2 
4 #include "RE/B/BSTEvent.h"
6 #include "RE/I/IMenu.h"
7 
8 namespace RE
9 {
10  class BSSaveDataEvent;
11  class BSSystemEvent;
12  struct MapMenuMarker;
13 
14  // menuDepth = 0
15  // flags = kPausesGame | kDisablePauseMenu | kRequiresUpdate | kUpdateUsesCursor | kApplicationMenu
16  // context = kMenuMode
17  class MainMenu :
18  public IMenu, // 00
19  public BSTEventSink<BSSystemEvent>, // 30
20  public BSTEventSink<BSSaveDataEvent>, // 38
21  public GFxFunctionHandler // 40
22  {
23  public:
24  inline static constexpr auto RTTI = RTTI_MainMenu;
25  constexpr static std::string_view MENU_NAME = "Main Menu";
26 
27  ~MainMenu() override; // 00
28 
29  // override (IMenu)
30  void Accept(CallbackProcessor* a_processor) override; // 01
31  UI_MESSAGE_RESULTS ProcessMessage(UIMessage& a_message) override; // 04
32  void AdvanceMovie(float a_interval, std::uint32_t a_currentTime) override; // 05
33 
34  // override (BSTEventSink<BSSystemEvent>)
35  BSEventNotifyControl ProcessEvent(const BSSystemEvent* a_event, BSTEventSource<BSSystemEvent>* a_eventSource) override; // 01
36 
37  // override (BSTEventSink<BSSaveDataEvent>)
38  BSEventNotifyControl ProcessEvent(const BSSaveDataEvent* a_event, BSTEventSource<BSSaveDataEvent>* a_eventSource) override; // 01
39 
40  // override (GFxFunctionHandler)
41  void Call(Params& a_params) override; // 01
42 
43  // members
45  std::uint32_t unk68; // 68
46  std::uint8_t unk6C; // 6C
47  std::uint8_t unk6D; // 6D
48  std::uint8_t unk6E; // 6E
49  std::uint8_t pad6F; // 6F
50  };
51  static_assert(sizeof(MainMenu) == 0x70);
52 }
Definition: BSScaleformExternalTexture.h:9
Definition: BSTEvent.h:143
Definition: BSTEvent.h:19
Definition: FxDelegateHandler.h:20
Definition: GFxFunctionHandler.h:12
Definition: IMenu.h:55
Definition: MainMenu.h:22
BSEventNotifyControl ProcessEvent(const BSSaveDataEvent *a_event, BSTEventSource< BSSaveDataEvent > *a_eventSource) override
std::uint8_t pad6F
Definition: MainMenu.h:49
std::uint8_t unk6D
Definition: MainMenu.h:47
static constexpr auto RTTI
Definition: MainMenu.h:24
BSScaleformExternalTexture gamerIconTexture
Definition: MainMenu.h:44
void Accept(CallbackProcessor *a_processor) override
BSEventNotifyControl ProcessEvent(const BSSystemEvent *a_event, BSTEventSource< BSSystemEvent > *a_eventSource) override
~MainMenu() override
std::uint8_t unk6C
Definition: MainMenu.h:46
void Call(Params &a_params) override
constexpr static std::string_view MENU_NAME
Definition: MainMenu.h:25
void AdvanceMovie(float a_interval, std::uint32_t a_currentTime) override
std::uint32_t unk68
Definition: MainMenu.h:45
std::uint8_t unk6E
Definition: MainMenu.h:48
UI_MESSAGE_RESULTS ProcessMessage(UIMessage &a_message) override
Definition: UIMessage.h:28
Definition: AbsorbEffect.h:6
UI_MESSAGE_RESULTS
Definition: IMenu.h:48
constexpr REL::ID RTTI_MainMenu(static_cast< std::uint64_t >(688873))
BSEventNotifyControl
Definition: BSTEvent.h:12
Definition: GFxFunctionHandler.h:18