Rise
The Vieneo Province
Toggle main menu visibility
Loading...
Searching...
No Matches
InformationDialog.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
DialogBase.h
"
4
#include "
../GameClass.h
"
5
6
class
InformationDialog
:
public
DialogBase
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,
int
id
);
30
void
ActiveTab
()
override
;
31
void
UpdateMenu
(
short
tab)
override
;
32
bool
IsActive
(
ActiveHelp
helpId)
const
;
33
void
Draw
(
RiseMath::Vector3
* tracked);
34
35
static
void
CALLBACK
DialogCallback
(UINT nEvent,
int
nControlID,
RiseControl
* pControl,
void
* pUserContext);
36
};
ActiveHelp
ActiveHelp
Definition
ActiveHelp.h:4
DialogBase.h
GameClass.h
DialogBase::DialogBase
DialogBase(short id)
Definition
DialogBase.cpp:19
InformationDialog::activeHelpTextFormatted
WCHAR activeHelpTextFormatted[512]
Definition
InformationDialog.h:20
InformationDialog::DismissHelp
bool DismissHelp(int helpId, int nControlID=GUI_UNDERSTOOD)
Definition
InformationDialog.cpp:84
InformationDialog::RefreshHelpText
void RefreshHelpText()
Definition
InformationDialog.cpp:28
InformationDialog::FrameMove
void FrameMove(float fElapsedTime)
Definition
InformationDialog.cpp:179
InformationDialog::SetHelpText
void SetHelpText(WCHAR *str, int id)
Definition
InformationDialog.cpp:190
InformationDialog::IsActive
bool IsActive(ActiveHelp helpId) const
Definition
InformationDialog.cpp:319
InformationDialog::UpdateMenu
void UpdateMenu(short tab) override
Definition
InformationDialog.cpp:213
InformationDialog::learnMore
bool learnMore
Definition
InformationDialog.h:17
InformationDialog::activeHelpText
WCHAR activeHelpText[512]
Definition
InformationDialog.h:19
InformationDialog::ActiveTab
void ActiveTab() override
Definition
InformationDialog.cpp:198
InformationDialog::activehelp
int activehelp
Definition
InformationDialog.h:15
InformationDialog::ClearHelp
void ClearHelp()
Definition
InformationDialog.cpp:171
InformationDialog::canDismiss
bool canDismiss
Definition
InformationDialog.h:16
InformationDialog::Draw
void Draw(RiseMath::Vector3 *tracked)
Definition
InformationDialog.cpp:332
InformationDialog::InformationDialog
InformationDialog(short id)
Definition
InformationDialog.cpp:7
InformationDialog::timeSinceLastDismiss
float timeSinceLastDismiss
Definition
InformationDialog.h:18
InformationDialog::PopUpHelp
bool PopUpHelp(short helpId, bool allowDismiss=true, bool isLearnMore=false)
Definition
InformationDialog.cpp:37
InformationDialog::DialogCallback
static void CALLBACK DialogCallback(UINT nEvent, int nControlID, RiseControl *pControl, void *pUserContext)
Definition
InformationDialog.cpp:324
InformationDialog::activehelpqueue
std::vector< HelpContainer > activehelpqueue
Definition
InformationDialog.h:14
RiseControl
Definition
Controls.h:517
GUI_UNDERSTOOD
@ GUI_UNDERSTOOD
Definition
gui.h:983
InformationDialog::HelpContainer
Definition
InformationDialog.h:9
InformationDialog::HelpContainer::canDismiss
bool canDismiss
Definition
InformationDialog.h:11
InformationDialog::HelpContainer::learnMore
bool learnMore
Definition
InformationDialog.h:12
InformationDialog::HelpContainer::helpId
int helpId
Definition
InformationDialog.h:10
RiseMath::Vector3
Definition
ClientMath.h:38
Dialogs
InformationDialog.h
Generated on
for Rise by
1.18.0