1#ifndef YAZE_APP_EDITOR_MESSAGE_EDITOR_H
2#define YAZE_APP_EDITOR_MESSAGE_EDITOR_H
7#include "absl/status/status.h"
44 absl::Status
Update()
override;
53 absl::Status
Cut()
override;
54 absl::Status
Copy()
override;
55 absl::Status
Paste()
override;
56 absl::Status
Undo()
override;
57 absl::Status
Redo()
override {
58 return absl::UnimplementedError(
"Redo not implemented");
60 absl::Status
Find()
override {
61 return absl::UnimplementedError(
"Find not implemented");
69 int sizex = 1,
int sizey = 1);
125 void Copy() { ImGui::SetClipboardText(
text.c_str()); }
136 std::string str = ImGui::GetClipboardText();
A class to hold a shared pointer to a Rom object.
Interface for editor classes.
DictionaryEntry GetDictionaryFromID(uint8_t value)
gui::Canvas font_gfx_canvas_
void DrawTileToPreview(int x, int y, int srcx, int srcy, int pal, int sizex=1, int sizey=1)
void DrawCurrentMessage()
absl::Status Paste() override
std::string DisplayTextOverflowError(int pos, bool bank)
std::vector< std::string > parsed_messages_
absl::Status Find() override
void DrawCharacterToPreview(char c)
std::vector< uint8_t > current_font_gfx16_data_
absl::Status Copy() override
MessageData current_message_
TextBox message_text_box_
void DrawMessagePreview()
absl::Status Cut() override
absl::Status Redo() override
gfx::Bitmap font_gfx_bitmap_
gfx::SnesPalette font_preview_colors_
gfx::Bitmap current_font_gfx16_bitmap_
absl::Status Update() override
absl::Status Initialize()
std::vector< MessageData > list_of_texts_
std::vector< uint8_t > font_gfx16_data_
gui::Canvas current_font_gfx16_canvas_
std::vector< DictionaryEntry > all_dictionaries_
void DrawStringToPreview(std::string str)
uint8_t width_array[kWidthArraySize]
absl::Status Undo() override
Represents a bitmap image.
Represents a palette of colors for the Super Nintendo Entertainment System (SNES).
Represents a canvas for drawing and manipulating graphics.
const std::string DICTIONARYTOKEN
constexpr int kNumMessages
constexpr int kCurrentMessageHeight
constexpr int kFontGfxMessageDepth
constexpr int kFontGfxMessageSize
constexpr uint8_t kWidthArraySize
constexpr uint8_t kMessageBankChangeId
constexpr int kCurrentMessageWidth
constexpr int kTextData2End
constexpr uint8_t kBlockTerminator
constexpr int kCharactersWidth
constexpr uint8_t kScrollVertical