30 lines
831 B
C
30 lines
831 B
C
#ifndef MESSAGE_H
|
|
#define MESSAGE_H
|
|
#include "Ui.h"
|
|
#include "Primitives.h"
|
|
#include "Text.h"
|
|
#include "FrameSheet.h"
|
|
#include "Animation.h"
|
|
|
|
struct Message {
|
|
struct Box box;
|
|
struct Glyphs *glyphs; // ?
|
|
struct Ui_Colors *colors;
|
|
struct Animation animation;
|
|
int line_count;
|
|
char **line; // lines, as stored
|
|
int text_count; // count
|
|
int render_ch; // rendered char position
|
|
int render_line; // current line being rendered
|
|
struct Textt **render_text; // text rendered to screen, one per line
|
|
int time; // time to display
|
|
int elapsed;
|
|
};
|
|
struct Message *newMessage(struct Box box, struct Glyphs *glyphs, struct Ui_Colors *colors, int time, const char *string);
|
|
|
|
int freeMessage(struct Message *message);
|
|
|
|
int processMessage(struct Message *message, int time);
|
|
int renderMessage(struct Message *message);
|
|
#endif
|