CommonLibSSE (Parapets fork)
HUDNotifications.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "RE/B/BSFixedString.h"
4 #include "RE/B/BSString.h"
5 #include "RE/B/BSTArray.h"
6 #include "RE/G/GFxValue.h"
7 #include "RE/H/HUDObject.h"
8 
9 namespace RE
10 {
11  class TESQuest;
12  class TESWordOfPower;
13 
14  class HUDNotifications : public HUDObject
15  {
16  public:
17  inline static constexpr auto RTTI = RTTI_HUDNotifications;
18 
19  struct Notification
20  {
21  public:
22  // members
23  BSString text; // 00
27  std::uint32_t type{ 0 }; // 40
28  std::uint32_t pad44{ 0 }; // 44
29  TESQuest* quest{ nullptr }; // 48
30  TESWordOfPower* word{ nullptr }; // 50
31  std::uint32_t time{ 0 }; // 58 - gameTime + iObjectivesWaitTime
32  std::uint32_t pad5C{ 0 }; // 5C
33  };
34  static_assert(sizeof(Notification) == 0x60);
35 
36  ~HUDNotifications() override; // 00
37 
38  // override (HUDObject)
39  void Update() override; // 01
40  bool ProcessMessage(UIMessage* a_message) override; // 02
41  void RegisterHUDComponent(FxDelegateArgs& a_params) override; // 03
42  void CleanUp() override; // 04
43 
44  // members
46  GFxValue root; // 40 - "HUDMovieBaseInstance.QuestUpdateBaseInstance"
47  GFxValue objectives; // 58 - "QuestNotification.ObjectivesA"
48  std::uint32_t time; // 70 - last meter update time
49  float levelPoints; // 74 - cached meter progress
50  };
51  static_assert(sizeof(HUDNotifications) == 0x78);
52 }
Definition: BSTArray.h:377
Definition: FxDelegateArgs.h:13
Definition: GFxValue.h:92
Definition: HUDNotifications.h:15
std::uint32_t time
Definition: HUDNotifications.h:48
~HUDNotifications() override
bool ProcessMessage(UIMessage *a_message) override
static constexpr auto RTTI
Definition: HUDNotifications.h:17
void RegisterHUDComponent(FxDelegateArgs &a_params) override
GFxValue objectives
Definition: HUDNotifications.h:47
BSTArray< Notification > queue
Definition: HUDNotifications.h:45
float levelPoints
Definition: HUDNotifications.h:49
void Update() override
void CleanUp() override
GFxValue root
Definition: HUDNotifications.h:46
Definition: HUDObject.h:14
Definition: TESQuest.h:189
Definition: TESWordOfPower.h:13
Definition: UIMessage.h:28
Definition: AbsorbEffect.h:6
constexpr REL::ID RTTI_HUDNotifications
Definition: Offsets_RTTI.h:4882
Definition: HUDNotifications.h:20
std::uint32_t time
Definition: HUDNotifications.h:31
BSTArray< BSFixedString > objectives
Definition: HUDNotifications.h:26
TESWordOfPower * word
Definition: HUDNotifications.h:30
TESQuest * quest
Definition: HUDNotifications.h:29
std::uint32_t type
Definition: HUDNotifications.h:27
std::uint32_t pad44
Definition: HUDNotifications.h:28
BSString text
Definition: HUDNotifications.h:23
std::uint32_t pad5C
Definition: HUDNotifications.h:32
BSString status
Definition: HUDNotifications.h:24
BSFixedString sound
Definition: HUDNotifications.h:25