2023-10-14 09:08:51 -04:00
|
|
|
#ifndef LEGOMETERPRESENTER_H
|
|
|
|
#define LEGOMETERPRESENTER_H
|
|
|
|
|
2024-05-29 10:47:25 -04:00
|
|
|
#include "mxrect16.h"
|
2023-10-14 09:08:51 -04:00
|
|
|
#include "mxstillpresenter.h"
|
2024-05-03 12:19:12 -04:00
|
|
|
#include "mxstring.h"
|
2023-10-14 09:08:51 -04:00
|
|
|
|
2024-05-29 10:47:25 -04:00
|
|
|
// SIZE 0x08
|
|
|
|
struct MeterRect : public MxRect16 {
|
|
|
|
// FUNCTION: BETA10 0x10097eb0
|
|
|
|
MeterRect() {}
|
|
|
|
};
|
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// VTABLE: LEGO1 0x100d7ac8
|
2024-05-29 10:47:25 -04:00
|
|
|
// VTABLE: BETA10 0x101bca68
|
2024-03-22 21:30:58 -04:00
|
|
|
// SIZE 0x94
|
2023-10-24 19:38:27 -04:00
|
|
|
class LegoMeterPresenter : public MxStillPresenter {
|
2023-10-14 09:08:51 -04:00
|
|
|
public:
|
2024-01-15 10:26:52 -05:00
|
|
|
LegoMeterPresenter();
|
2024-02-01 15:42:10 -05:00
|
|
|
~LegoMeterPresenter() override;
|
2024-01-15 10:26:52 -05:00
|
|
|
|
2023-10-24 19:38:27 -04:00
|
|
|
// MxStillPresenter's `::ClassName` and `::IsA` are used.
|
2024-01-15 10:26:52 -05:00
|
|
|
|
2024-02-01 15:42:10 -05:00
|
|
|
void StreamingTickle() override; // vtable+0x20
|
|
|
|
void RepeatingTickle() override; // vtable+0x24
|
|
|
|
void ParseExtra() override; // vtable+0x30
|
2024-01-15 10:26:52 -05:00
|
|
|
|
|
|
|
private:
|
2024-05-29 10:47:25 -04:00
|
|
|
enum MeterLayout {
|
|
|
|
e_leftToRight = 0,
|
|
|
|
e_rightToLeft,
|
|
|
|
e_bottomToTop,
|
|
|
|
e_topToBottom
|
|
|
|
};
|
|
|
|
|
|
|
|
void DrawMeter();
|
|
|
|
|
|
|
|
MxU8* m_meterPixels; // 0x6c
|
|
|
|
MxU16 m_fillColor; // 0x70
|
|
|
|
MxString m_variable; // 0x74
|
|
|
|
MxFloat m_curPercent; // 0x84
|
|
|
|
MeterRect m_meterRect; // 0x88
|
|
|
|
MxS16 m_layout; // 0x90
|
2023-10-14 09:08:51 -04:00
|
|
|
};
|
|
|
|
|
2024-01-15 10:26:52 -05:00
|
|
|
// SYNTHETIC: LEGO1 0x10043760
|
|
|
|
// LegoMeterPresenter::`scalar deleting destructor'
|
|
|
|
|
2023-10-14 09:08:51 -04:00
|
|
|
#endif // LEGOMETERPRESENTER_H
|