1#ifndef YAZE_APP_EDITOR_MESSAGE_EDITOR_H
2#define YAZE_APP_EDITOR_MESSAGE_EDITOR_H
8#include "absl/status/status.h"
40 absl::Status
Update()
override;
49 absl::Status
Cut()
override;
50 absl::Status
Copy()
override;
51 absl::Status
Paste()
override;
52 absl::Status
Undo()
override;
53 absl::Status
Redo()
override {
54 return absl::UnimplementedError(
"Redo not implemented");
56 absl::Status
Find()
override {
57 return absl::UnimplementedError(
"Find not implemented");
65 int sizex = 1,
int sizey = 1);
118 void Copy() { ImGui::SetClipboardText(
text.c_str()); }
129 std::string str = ImGui::GetClipboardText();
std::vector< std::string > parsed_messages_
absl::Status Copy() override
absl::Status Find() override
absl::Status Update() override
std::array< uint8_t, kWidthArraySize > width_array
absl::Status Paste() override
std::string DisplayTextOverflowError(int pos, bool bank)
gui::Canvas current_font_gfx16_canvas_
gui::Canvas font_gfx_canvas_
void DrawCharacterToPreview(char c)
void DrawStringToPreview(std::string str)
absl::Status Undo() override
void DrawTileToPreview(int x, int y, int srcx, int srcy, int pal, int sizex=1, int sizey=1)
absl::Status Cut() override
void DrawMessagePreview()
TextBox message_text_box_
std::vector< MessageData > list_of_texts_
std::vector< uint8_t > font_gfx16_data_
std::vector< uint8_t > current_font_gfx16_data_
gfx::SnesPalette font_preview_colors_
MessageData current_message_
absl::Status Initialize()
void DrawCurrentMessage()
absl::Status Redo() override
DictionaryEntry GetDictionaryFromID(uint8_t value)
std::vector< DictionaryEntry > all_dictionaries_
gfx::Bitmap current_font_gfx16_bitmap_
gfx::Bitmap font_gfx_bitmap_
Represents a bitmap image.
Represents a palette of colors for the Super Nintendo Entertainment System (SNES).
Represents a canvas for drawing and manipulating graphics.
Editors are the view controllers for the application.
constexpr int kCharactersWidth
const std::string DICTIONARYTOKEN
constexpr int kCurrentMessageWidth
constexpr int kCurrentMessageHeight
constexpr uint8_t kBlockTerminator
constexpr int kFontGfxMessageSize
constexpr int kFontGfxMessageDepth
constexpr int kTextData2End
constexpr uint8_t kWidthArraySize
constexpr uint8_t kMessageBankChangeId
constexpr int kNumMessages
Main namespace for the application.