#include <message_preview.h>
Public Member Functions | |
MessagePreview () | |
void | DrawTileToPreview (int x, int y, int srcx, int srcy, int pal, int sizex=1, int sizey=1) |
void | DrawStringToPreview (const std::string &str) |
void | DrawCharacterToPreview (char c) |
void | DrawCharacterToPreview (const std::vector< uint8_t > &text) |
void | DrawMessagePreview (const MessageData &message) |
Public Attributes | |
bool | skip_next = false |
int | text_line = 0 |
int | text_position = 0 |
int | shown_lines = 0 |
std::array< uint8_t, kWidthArraySize > | width_array = {0} |
std::vector< uint8_t > | font_gfx16_data_ |
std::vector< uint8_t > | font_gfx16_data_2_ |
std::vector< uint8_t > | current_preview_data_ |
std::vector< DictionaryEntry > | all_dictionaries_ |
Definition at line 15 of file message_preview.h.
|
inline |
Definition at line 16 of file message_preview.h.
References current_preview_data_, yaze::editor::kCurrentMessageHeight, and yaze::editor::kCurrentMessageWidth.
void yaze::editor::MessagePreview::DrawTileToPreview | ( | int | x, |
int | y, | ||
int | srcx, | ||
int | srcy, | ||
int | pal, | ||
int | sizex = 1, | ||
int | sizey = 1 ) |
Definition at line 6 of file message_preview.cc.
References current_preview_data_, and font_gfx16_data_2_.
Referenced by DrawCharacterToPreview().
void yaze::editor::MessagePreview::DrawStringToPreview | ( | const std::string & | str | ) |
Definition at line 35 of file message_preview.cc.
References DrawCharacterToPreview().
Referenced by DrawCharacterToPreview().
void yaze::editor::MessagePreview::DrawCharacterToPreview | ( | char | c | ) |
Definition at line 41 of file message_preview.cc.
References DrawCharacterToPreview(), and yaze::editor::FindMatchingCharacter().
Referenced by DrawCharacterToPreview(), DrawCharacterToPreview(), DrawMessagePreview(), and DrawStringToPreview().
void yaze::editor::MessagePreview::DrawCharacterToPreview | ( | const std::vector< uint8_t > & | text | ) |
Definition at line 47 of file message_preview.cc.
References all_dictionaries_, yaze::editor::DICTOFF, DrawCharacterToPreview(), DrawStringToPreview(), DrawTileToPreview(), yaze::editor::FindRealDictionaryEntry(), yaze::editor::kLine1, yaze::editor::kLine2, yaze::editor::kLine3, yaze::editor::kScrollVertical, skip_next, text_line, text_position, and width_array.
void yaze::editor::MessagePreview::DrawMessagePreview | ( | const MessageData & | message | ) |
Definition at line 107 of file message_preview.cc.
References current_preview_data_, yaze::editor::MessageData::Data, DrawCharacterToPreview(), shown_lines, text_line, and text_position.
bool yaze::editor::MessagePreview::skip_next = false |
Definition at line 29 of file message_preview.h.
Referenced by DrawCharacterToPreview().
int yaze::editor::MessagePreview::text_line = 0 |
Definition at line 30 of file message_preview.h.
Referenced by DrawCharacterToPreview(), and DrawMessagePreview().
int yaze::editor::MessagePreview::text_position = 0 |
Definition at line 31 of file message_preview.h.
Referenced by DrawCharacterToPreview(), and DrawMessagePreview().
int yaze::editor::MessagePreview::shown_lines = 0 |
Definition at line 32 of file message_preview.h.
Referenced by DrawMessagePreview().
std::array<uint8_t, kWidthArraySize> yaze::editor::MessagePreview::width_array = {0} |
Definition at line 34 of file message_preview.h.
Referenced by DrawCharacterToPreview().
std::vector<uint8_t> yaze::editor::MessagePreview::font_gfx16_data_ |
Definition at line 35 of file message_preview.h.
std::vector<uint8_t> yaze::editor::MessagePreview::font_gfx16_data_2_ |
Definition at line 36 of file message_preview.h.
Referenced by DrawTileToPreview().
std::vector<uint8_t> yaze::editor::MessagePreview::current_preview_data_ |
Definition at line 37 of file message_preview.h.
Referenced by DrawMessagePreview(), DrawTileToPreview(), and MessagePreview().
std::vector<DictionaryEntry> yaze::editor::MessagePreview::all_dictionaries_ |
Definition at line 38 of file message_preview.h.
Referenced by DrawCharacterToPreview().