2018-09-20 01:27:47 +00:00
|
|
|
typedef struct textBox
|
|
|
|
{
|
|
|
|
SDL_Surface* portrait;
|
|
|
|
SDL_Surface** message;
|
|
|
|
|
|
|
|
int lines;
|
|
|
|
int cursor;
|
|
|
|
int scroll;
|
|
|
|
int scrollFrom;
|
|
|
|
} TextBox;
|
|
|
|
|
|
|
|
TextBox* newTextBox();
|
|
|
|
TextBox* newGTextBox(SDL_Surface* image);
|
|
|
|
void deleteTextBox(TextBox* target);
|
|
|
|
|
|
|
|
void addText(TextBox* self, char* text);
|
|
|
|
void displayTextBox(TextBox* self);
|
2018-09-24 20:47:46 +00:00
|
|
|
void textBoxInput(TextBox* self, int* textIsRelevent);
|