SpaceCadetPinball/SpaceCadetPinball/TTextBox.h

29 lines
558 B
C
Raw Normal View History

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