summaryrefslogtreecommitdiffstats
path: root/src/text/Pager.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/text/Pager.h')
-rw-r--r--src/text/Pager.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/text/Pager.h b/src/text/Pager.h
new file mode 100644
index 00000000..90291c74
--- /dev/null
+++ b/src/text/Pager.h
@@ -0,0 +1,29 @@
+#pragma once
+
+struct PagerMessage {
+ wchar *m_pText;
+ uint16 m_nSpeedMs;
+ int16 m_nCurrentPosition;
+ uint16 m_nStringLength;
+ uint16 m_nPriority;
+ uint32 m_nTimeToChangePosition;
+ int16 field_10;
+private:
+ char _pad12[2];
+public:
+ int32 m_nNumber[6];
+};
+
+class CPager
+{
+ int16 m_nNumDisplayLetters;
+ PagerMessage m_messages[8];
+public:
+ void Init();
+ void Process();
+ void Display();
+ void AddMessage(wchar*, uint16, uint16, uint16);
+ 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();
+}; \ No newline at end of file