CommonLibSSE (powerof3)
FavoritesMenu.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "RE/B/BSTArray.h"
4 #include "RE/G/GFxValue.h"
5 #include "RE/I/IMenu.h"
7 
8 namespace RE
9 {
10  class InventoryEntryData;
11  class TESForm;
12 
13  // menuDepth = 3
14  // flags = kPausesGame | kUpdateUsesCursor | kInventoryItemMenu | kCustomRendering
15  // context = kFavorites
16  class FavoritesMenu :
17  public IMenu, // 00
18  public MenuEventHandler // 30
19  {
20  public:
21  inline static constexpr auto RTTI = RTTI_FavoritesMenu;
22  constexpr static std::string_view MENU_NAME = "FavoritesMenu";
23 
24  struct Entry
25  {
26  TESForm* item; // 00
28  };
29  static_assert(sizeof(Entry) == 0x10);
30 
31  ~FavoritesMenu() override; // 00
32 
33  // override (IMenu)
34  void Accept(CallbackProcessor* a_processor) override; // 01
35  UI_MESSAGE_RESULTS ProcessMessage(UIMessage& a_message) override; // 04
36 
37  // override (MenuEventHandler)
38  bool CanProcess(InputEvent* a_event) override; // 01
39  bool ProcessKinect(KinectEvent* a_event) override; // 02
40  bool ProcessButton(ButtonEvent* a_event) override; // 05
41 
42  // members
43  GFxValue root; // 40 - "Menu_mc"
45  std::uint16_t unk70; // 70
46  bool pcControlsReady; // 72
47  bool isVampire; // 73
48  std::uint32_t pad74; // 74
49  };
50  static_assert(sizeof(FavoritesMenu) == 0x78);
51 }
Definition: BSTArray.h:378
Definition: ButtonEvent.h:11
Definition: FavoritesMenu.h:19
constexpr static std::string_view MENU_NAME
Definition: FavoritesMenu.h:22
~FavoritesMenu() override
UI_MESSAGE_RESULTS ProcessMessage(UIMessage &a_message) override
GFxValue root
Definition: FavoritesMenu.h:43
bool isVampire
Definition: FavoritesMenu.h:47
bool ProcessButton(ButtonEvent *a_event) override
std::uint16_t unk70
Definition: FavoritesMenu.h:45
bool ProcessKinect(KinectEvent *a_event) override
std::uint32_t pad74
Definition: FavoritesMenu.h:48
bool pcControlsReady
Definition: FavoritesMenu.h:46
bool CanProcess(InputEvent *a_event) override
BSTArray< Entry > favorites
Definition: FavoritesMenu.h:44
static constexpr auto RTTI
Definition: FavoritesMenu.h:21
void Accept(CallbackProcessor *a_processor) override
Definition: FxDelegateHandler.h:20
Definition: GFxValue.h:92
Definition: IMenu.h:55
Definition: InputEvent.h:25
Definition: InventoryEntryData.h:15
Definition: KinectEvent.h:9
Definition: MenuEventHandler.h:14
Definition: TESForm.h:36
Definition: UIMessage.h:28
Definition: AbsorbEffect.h:6
constexpr REL::ID RTTI_FavoritesMenu(static_cast< std::uint64_t >(688831))
UI_MESSAGE_RESULTS
Definition: IMenu.h:48
Definition: FavoritesMenu.h:25
InventoryEntryData * entryData
Definition: FavoritesMenu.h:27
TESForm * item
Definition: FavoritesMenu.h:26