Refactor message handling and improve graphics rendering in MessageEditor

- Added SNES header include to message_data.cc for better integration.
- Simplified dictionary token formatting in ReadAllTextData function.
- Removed unused ImportMessageData function from message_data.h.
- Streamlined bitmap updates and rendering in MessageEditor, replacing instances of Renderer::GetInstance() with Renderer::Get().
- Enhanced message preview functionality with improved scrolling and drawing logic.
- Adjusted canvas sizes for better layout consistency.
This commit is contained in:
scawful
2025-05-08 19:40:29 -04:00
parent fcb6a46bb1
commit 2901c9a486
4 changed files with 51 additions and 59 deletions

View File

@@ -317,8 +317,6 @@ constexpr int kTextData2End = 0x773FF;
// Reads all text data from the ROM and returns a vector of MessageData objects.
void ReadAllTextData(Rom *rom, std::vector<MessageData> &list_of_texts_);
std::vector<std::string> ImportMessageData(std::string_view filename);
} // namespace editor
} // namespace yaze