2020-11-01 15:45:29 +00:00
|
|
|
#pragma once
|
2020-12-03 14:47:36 +00:00
|
|
|
#include "score.h"
|
2020-11-01 15:45:29 +00:00
|
|
|
#include "TPinballComponent.h"
|
2020-12-03 14:47:36 +00:00
|
|
|
#include "TTextBoxMessage.h"
|
2020-11-07 15:41:14 +00:00
|
|
|
|
2020-11-01 15:45:29 +00:00
|
|
|
class TTextBox :
|
2020-11-07 15:41:14 +00:00
|
|
|
public TPinballComponent
|
2020-11-01 15:45:29 +00:00
|
|
|
{
|
|
|
|
public:
|
2020-12-03 14:47:36 +00:00
|
|
|
int OffsetX;
|
|
|
|
int OffsetY;
|
|
|
|
int Width;
|
|
|
|
int Height;
|
|
|
|
int Timer;
|
|
|
|
gdrv_bitmap8* BgBmp;
|
|
|
|
score_msg_font_type* Font;
|
|
|
|
TTextBoxMessage* Message1;
|
|
|
|
TTextBoxMessage* Message2;
|
2020-11-01 15:45:29 +00:00
|
|
|
|
2020-12-03 14:47:36 +00:00
|
|
|
TTextBox(TPinballTable* table, int groupIndex);
|
|
|
|
~TTextBox() override;
|
|
|
|
int Message(int code, float value) override;
|
2020-11-29 15:50:49 +00:00
|
|
|
void Clear();
|
|
|
|
void Display(char* text, float time);
|
2020-12-03 14:47:36 +00:00
|
|
|
void Draw();
|
|
|
|
|
2020-12-04 15:35:47 +00:00
|
|
|
static void TimerExpired(int timerId, void* tb);
|
2020-11-07 15:41:14 +00:00
|
|
|
};
|