summaryrefslogtreecommitdiffstats
path: root/src/control/OnscreenTimer.h
diff options
context:
space:
mode:
authorRoman Masanin <36927roma@gmail.com>2020-10-12 12:42:57 +0200
committerRoman Masanin <36927roma@gmail.com>2020-10-12 12:42:57 +0200
commit417646819c5d88bb7774bbb0341d92ada3293196 (patch)
tree4da51aa3be7f75002b16985207d9411d900dde7d /src/control/OnscreenTimer.h
parentmark file and fix screen offset (diff)
parentMerge pull request #753 from majesticCoding/miami (diff)
downloadre3-417646819c5d88bb7774bbb0341d92ada3293196.tar
re3-417646819c5d88bb7774bbb0341d92ada3293196.tar.gz
re3-417646819c5d88bb7774bbb0341d92ada3293196.tar.bz2
re3-417646819c5d88bb7774bbb0341d92ada3293196.tar.lz
re3-417646819c5d88bb7774bbb0341d92ada3293196.tar.xz
re3-417646819c5d88bb7774bbb0341d92ada3293196.tar.zst
re3-417646819c5d88bb7774bbb0341d92ada3293196.zip
Diffstat (limited to '')
-rw-r--r--src/control/OnscreenTimer.h33
1 files changed, 20 insertions, 13 deletions
diff --git a/src/control/OnscreenTimer.h b/src/control/OnscreenTimer.h
index 09473397..8c049d7d 100644
--- a/src/control/OnscreenTimer.h
+++ b/src/control/OnscreenTimer.h
@@ -9,30 +9,37 @@ enum
class COnscreenTimerEntry
{
public:
- uint32 m_nTimerOffset;
+ uint32 m_nClockOffset;
+ char m_aClockText[10];
+ char m_aClockBuffer[40];
+ bool m_bClockProcessed;
+ bool m_bClockGoingDown;
+
+ void Process();
+ void ProcessForDisplayClock();
+};
+
+VALIDATE_SIZE(COnscreenTimerEntry, 0x3C);
+
+class COnscreenCounterEntry
+{
+public:
uint32 m_nCounterOffset;
- char m_aTimerText[10];
char m_aCounterText[10];
uint16 m_nType;
- char m_bCounterBuffer[42];
- char m_bTimerBuffer[42];
- bool m_bTimerProcessed;
- bool m_bTimerGoingDown;
+ char m_aCounterBuffer[40];
bool m_bCounterProcessed;
- void Process();
- bool ProcessForDisplay();
-
- void ProcessForDisplayClock();
void ProcessForDisplayCounter();
};
-VALIDATE_SIZE(COnscreenTimerEntry, 0x74);
+VALIDATE_SIZE(COnscreenCounterEntry, 0x3C);
class COnscreenTimer
{
public:
- COnscreenTimerEntry m_sEntries[NUMONSCREENTIMERENTRIES];
+ COnscreenTimerEntry m_sClocks[NUMONSCREENCLOCKS];
+ COnscreenCounterEntry m_sCounters[NUMONSCREENCOUNTERS];
bool m_bProcessed;
bool m_bDisabled;
@@ -47,4 +54,4 @@ public:
void AddClock(uint32 offset, char* text, bool bGoingDown);
};
-VALIDATE_SIZE(COnscreenTimer, 0x78);
+VALIDATE_SIZE(COnscreenTimer, 0xF4);