colors
This commit is contained in:
@@ -22,13 +22,13 @@ struct TextNode
|
||||
{
|
||||
char content[TEXT_MAX_LENGTH];
|
||||
uint32_t color;
|
||||
short pos_x;
|
||||
short pos_y;
|
||||
struct CharacterSize
|
||||
{
|
||||
unsigned short height;
|
||||
unsigned short width;
|
||||
} characterSize;
|
||||
short pos_x;
|
||||
short pos_y;
|
||||
unsigned char character_count;
|
||||
unsigned char scroll_slowness;
|
||||
unsigned char scroll_progress;
|
||||
@@ -36,7 +36,7 @@ struct TextNode
|
||||
bool is_scrolling;
|
||||
|
||||
|
||||
TextNode() : color(0), pos_x(0), pos_y(0), character_count(0), scroll_slowness(0), scroll_progress(0), characterSize({7,5}), is_deleted(true), is_scrolling() {}
|
||||
TextNode() : color(0), pos_x(0), pos_y(0), character_count(0), scroll_slowness(0), scroll_progress(0), characterSize({7,5}), is_deleted(true), is_scrolling(true) {}
|
||||
};
|
||||
|
||||
struct RGB
|
||||
@@ -44,6 +44,41 @@ struct RGB
|
||||
unsigned char r;
|
||||
unsigned char g;
|
||||
unsigned char b;
|
||||
|
||||
RGB() : r(0), g(0), b(0) {}
|
||||
};
|
||||
|
||||
struct RGBWithIndex
|
||||
{
|
||||
unsigned char r;
|
||||
unsigned char g;
|
||||
unsigned char b;
|
||||
unsigned char start_index;
|
||||
|
||||
RGBWithIndex() : r(0), g(0), b(0), start_index(0) {}
|
||||
RGBWithIndex(unsigned char r, unsigned char g, unsigned char b, unsigned char start_index) : r(r), g(g), b(b), start_index(start_index) {}
|
||||
};
|
||||
|
||||
struct MultiColorTextNode
|
||||
{
|
||||
char content[TEXT_MAX_LENGTH];
|
||||
RGBWithIndex colors[4];
|
||||
|
||||
struct CharacterSize
|
||||
{
|
||||
unsigned short height;
|
||||
unsigned short width;
|
||||
} characterSize;
|
||||
short pos_x;
|
||||
short pos_y;
|
||||
unsigned char color_count;
|
||||
unsigned char character_count;
|
||||
unsigned char scroll_slowness;
|
||||
unsigned char scroll_progress;
|
||||
bool is_deleted;
|
||||
bool is_scrolling;
|
||||
|
||||
MultiColorTextNode() : pos_x(0), pos_y(0), character_count(0), scroll_slowness(0), scroll_progress(0), characterSize({7,5}), is_deleted(true), is_scrolling(true), color_count(0) {}
|
||||
};
|
||||
|
||||
struct Image
|
||||
|
||||
Reference in New Issue
Block a user