CommonLibSSE (Parapets fork)
MagicMenu.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "RE/G/GFxValue.h"
4 #include "RE/I/IMenu.h"
5 
6 namespace RE
7 {
8  struct BottomBar;
9  struct ItemCard;
10 
11  // menuDepth = 0
12  // flags = kPausesGame | kUsesMenuContext | kDisablePauseMenu | kUpdateUsesCursor | kInventoryItemMenu | kCustomRendering
13  // context = kItemMenu
14  class MagicMenu : public IMenu
15  {
16  public:
17  inline static constexpr auto RTTI = RTTI_MagicMenu;
18  constexpr static std::string_view MENU_NAME = "MagicMenu";
19 
20  ~MagicMenu() override; // 00
21 
22  // override (IMenu)
23  void Accept(CallbackProcessor* a_processor) override; // 01
24  UI_MESSAGE_RESULTS ProcessMessage(UIMessage& a_message) override; // 04
25  void PostDisplay() override; // 06
26 
27  // members
28  void* unk30; // 30 - some variation of the item list
31  GFxValue root; // 48 - "Menu_mc"
32  bool pcControlsReady; // 60
33  std::uint8_t pad61; // 61
34  std::uint16_t pad62; // 62
35  std::uint32_t pad64; // 64
36  };
37 #ifndef SKYRIMVR
38  static_assert(sizeof(MagicMenu) == 0x68);
39 #else
40  //static_assert(sizeof(MagicMenu) == 0x88);
41 #endif
42 }
Definition: FxDelegateHandler.h:19
Definition: GFxValue.h:92
Definition: IMenu.h:56
Definition: MagicMenu.h:15
bool pcControlsReady
Definition: MagicMenu.h:32
std::uint16_t pad62
Definition: MagicMenu.h:34
void Accept(CallbackProcessor *a_processor) override
constexpr static std::string_view MENU_NAME
Definition: MagicMenu.h:18
void * unk30
Definition: MagicMenu.h:28
void PostDisplay() override
ItemCard * itemCard
Definition: MagicMenu.h:29
GFxValue root
Definition: MagicMenu.h:31
std::uint32_t pad64
Definition: MagicMenu.h:35
BottomBar * bottomBar
Definition: MagicMenu.h:30
std::uint8_t pad61
Definition: MagicMenu.h:33
~MagicMenu() override
UI_MESSAGE_RESULTS ProcessMessage(UIMessage &a_message) override
static constexpr auto RTTI
Definition: MagicMenu.h:17
Definition: UIMessage.h:28
Definition: AbsorbEffect.h:6
constexpr REL::ID RTTI_MagicMenu
Definition: Offsets_RTTI.h:5135
UI_MESSAGE_RESULTS
Definition: IMenu.h:49
Definition: BottomBar.h:9
Definition: ItemCard.h:14