1
0
Fork 0
mirror of https://github.com/halpz/re3.git synced 2024-12-27 18:25:28 +00:00
re3/src/text/Pager.h

28 lines
669 B
C
Raw Normal View History

2019-10-20 17:34:16 +00:00
#pragma once
2020-03-28 02:58:58 +00:00
2019-10-20 17:34:16 +00:00
struct PagerMessage {
wchar *m_pText;
uint16 m_nSpeedMs;
int16 m_nCurrentPosition;
uint16 m_nStringLength;
uint16 m_nPriority;
uint32 m_nTimeToChangePosition;
int16 field_10;
int32 m_nNumber[6];
2020-03-28 02:58:58 +00:00
};
#define NUMPAGERMESSAGES 8
class CPager
{
2019-10-20 17:34:16 +00:00
int16 m_nNumDisplayLetters;
2020-03-28 02:58:58 +00:00
PagerMessage m_messages[NUMPAGERMESSAGES];
2019-10-20 17:34:16 +00:00
public:
2020-03-28 02:58:58 +00:00
void Init();
void Process();
void Display();
2019-10-20 17:34:16 +00:00
void AddMessage(wchar*, uint16, uint16, uint16);
2020-03-28 02:58:58 +00:00
void AddMessageWithNumber(wchar *str, int32 n1, int32 n2, int32 n3, int32 n4, int32 n5, int32 n6, uint16 speed, uint16 priority, uint16 a11);
void ClearMessages();
void RestartCurrentMessage();
2019-10-20 17:34:16 +00:00
};