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:
@@ -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_;
|
||||
|
||||
Reference in New Issue
Block a user