Rise
The Vieneo Province
InformationDialog.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "DialogBase.h"
4 #include "../GameClass.h"
5 
7 {
8  struct HelpContainer
9  {
10  int helpId;
11  bool canDismiss;
12  bool learnMore;
13  };
14  std::vector<HelpContainer> activehelpqueue;
15  int activehelp = 0;
16  bool canDismiss = true;
17  bool learnMore = false;
18  float timeSinceLastDismiss = 0.0f;
19  WCHAR activeHelpText[512] = { 0 };
20  WCHAR activeHelpTextFormatted[512] = { 0 };
21 
22 public:
23  InformationDialog(short id);
24  void RefreshHelpText();
25  bool PopUpHelp(short helpId, bool allowDismiss = true, bool isLearnMore = false);
26  bool DismissHelp(int helpId, int nControlID = GUI_UNDERSTOOD);
27  void ClearHelp();
28  void FrameMove(float fElapsedTime);
29  void SetHelpText(WCHAR* str);
30  void ActiveTab() override;
31  void UpdateMenu(short tab) override;
32  bool IsActive(ActiveHelp helpId) const;
33  void Draw(D3DXVECTOR3* tracked);
34 
35  static void CALLBACK DialogCallback(UINT nEvent, int nControlID, CDXUTControl* pControl, void* pUserContext);
36 };
static void CALLBACK DialogCallback(UINT nEvent, int nControlID, CDXUTControl *pControl, void *pUserContext)
bool DismissHelp(int helpId, int nControlID=GUI_UNDERSTOOD)
void SetHelpText(WCHAR *str)
void UpdateMenu(short tab) override
WCHAR activeHelpTextFormatted[512]
WCHAR activeHelpText[512]
void ActiveTab() override
bool PopUpHelp(short helpId, bool allowDismiss=true, bool isLearnMore=false)
std::vector< HelpContainer > activehelpqueue
void FrameMove(float fElapsedTime)
void Draw(D3DXVECTOR3 *tracked)
ActiveHelp
Definition: ActiveHelp.h:3
bool IsActive(ActiveHelp helpId) const