yaze 0.2.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
message_preview.h
Go to the documentation of this file.
1#ifndef YAZEE_MESSAGE_PREVIEW_H_
2#define YAZEE_MESSAGE_PREVIEW_H_
3
4#include <string>
5#include <vector>
6
8
9namespace yaze {
10namespace editor {
11
12constexpr int kCurrentMessageWidth = 172;
13constexpr int kCurrentMessageHeight = 4096;
14
20 void DrawTileToPreview(int x, int y, int srcx, int srcy, int pal,
21 int sizex = 1, int sizey = 1);
22
23 void DrawStringToPreview(const std::string& str);
24 void DrawCharacterToPreview(char c);
25 void DrawCharacterToPreview(const std::vector<uint8_t>& text);
26
27 void DrawMessagePreview(const MessageData& message);
28
29 bool skip_next = false;
30 int text_line = 0;
32 int shown_lines = 0;
33
34 std::array<uint8_t, kWidthArraySize> width_array = {0};
35 std::vector<uint8_t> font_gfx16_data_;
36 std::vector<uint8_t> font_gfx16_data_2_;
37 std::vector<uint8_t> current_preview_data_;
38 std::vector<DictionaryEntry> all_dictionaries_;
39};
40
41} // namespace editor
42} // namespace yaze
43
44#endif // YAZEE_MESSAGE_PREVIEW_H_
Editors are the view controllers for the application.
constexpr int kCurrentMessageWidth
constexpr int kCurrentMessageHeight
Main namespace for the application.
Definition controller.cc:18
std::vector< uint8_t > current_preview_data_
void DrawMessagePreview(const MessageData &message)
std::array< uint8_t, kWidthArraySize > width_array
std::vector< uint8_t > font_gfx16_data_2_
std::vector< uint8_t > font_gfx16_data_
void DrawStringToPreview(const std::string &str)
std::vector< DictionaryEntry > all_dictionaries_
void DrawTileToPreview(int x, int y, int srcx, int srcy, int pal, int sizex=1, int sizey=1)