Refactor message handling and improve message editor functionality

- Combined TextCommands and SpecialChars into a single vector for streamlined matching in FindMatchingElement.
- Removed unnecessary logging in ParseMessageToData for cleaner error handling.
- Updated FindRealDictionaryEntry function signature for improved readability.
- Enhanced DrawCurrentMessage to strip newline characters from input before parsing.
- Added command parameter input in DrawTextCommands for better user interaction.
- Cleaned up unused ToString methods in MessageData and TextElement structures.
This commit is contained in:
scawful
2025-05-10 12:52:34 -04:00
parent f75830c06c
commit ce6cde438c
6 changed files with 33 additions and 32 deletions

View File

@@ -62,16 +62,14 @@ class MessageEditor : public Editor {
private:
Rom* rom_;
bool data_loaded_ = false;
bool case_sensitive_ = false;
bool match_whole_word_ = false;
std::string expanded_message_address_ = "";
std::string search_text_ = "";
std::array<uint8_t, 0x4000> raw_font_gfx_data_;
std::vector<std::string> parsed_messages_;
std::vector<MessageData> list_of_texts_;
std::vector<MessageData> expanded_messages_;
MessageData current_message_;
MessagePreview message_preview_;