Commit Graph

21 Commits

Author SHA1 Message Date
scawful
b872fd9672 Add message preview functionality and refactor MessageEditor
- Introduced MessagePreview class to handle message rendering and preview logic.
- Updated MessageEditor to utilize MessagePreview for drawing messages and managing font graphics.
- Refactored drawing methods to improve organization and clarity, including the addition of DrawFontAtlas and DrawExpandedMessageSettings.
- Enhanced message handling by integrating new dictionary entry lookup and improved bitmap updates for message previews.
- Cleaned up unused functions and variables to streamline the codebase.
2025-05-10 10:59:55 -04:00
scawful
2901c9a486 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.
2025-05-08 19:40:29 -04:00
scawful
a01d554f15 Enhance message editor with import/export functionality for messages, including file handling and UI updates 2025-04-16 22:34:34 -04:00
scawful
a1a48e9057 message editor housekeeping 2025-04-12 13:23:46 -04:00
scawful
e0b95d8071 Refactor message pattern generation in TextElement for improved readability and maintainability; update table flags in MessageEditor for consistency. 2025-04-11 02:58:23 -04:00
scawful
d332f45d2a Fix bug with FindDictionaryEntry return type to int8_t 2025-04-05 17:25:10 -04:00
scawful
3d3a88a9c6 Refactor message handling: replace TextElement return type with std::optional for better nullability handling 2025-04-05 17:24:11 -04:00
scawful
581f86bdb6 Add ParseSingleMessage function to handle message parsing from ROM data 2025-01-19 20:01:46 -05:00
scawful
911cac401d Refactor message data handling and improve variable naming for clarity 2025-01-17 23:30:41 -05:00
scawful
d9cc92edca Add ParseMessageData to message data helper fns 2025-01-09 21:23:14 -05:00
Justin Scofield
2d9f4be91d Refactor and add default values to various structs
- Removed `FindMatchingCharacter` declaration from `message_data.h`
- Added default values to `DictionaryEntry` and `MessageData` members
- Marked several methods in `DictionaryEntry`, `MessageData`, and `TextElement` as `const`
- Updated `TextElement` constructor to take `const std::string&`
- Added string constants for text descriptions in `TextElement`
- Updated `TextCommands` vector to use new string constants
- Declared new function `FindMatchingCommand`
- Included `<array>` header in `message_editor.h`
- Changed `width_array` in `MessageEditor` to `std::array` with default initialization
- Removed `list_of_texts_` and `all_dictionaries_` vectors from `MessageEditor`
- Added default values to `GameEntity` members
- Initialized `sheets` array in `PseudoVram`
- Initialized `map_parent_` and `all_tiles_types_` arrays in `Overworld`
2025-01-04 20:05:46 -05:00
scawful
e05e7c35db remove app namespace 2024-12-28 21:28:51 -05:00
scawful
2857eca92d move DictionaryEntry struct, make all_dictionaries_ local to MessageEditor insteaad of static 2024-09-17 08:42:36 -04:00
scawful
374eebfac4 header include cleanup 2024-09-07 09:55:01 -04:00
scawful
dd430ad1b6 decouple message data functions from message editor class 2024-08-19 11:36:30 -04:00
scawful
f214f25512 add dictionary contents as message editor table column 2024-08-19 10:22:17 -04:00
scawful
2d8a658e5e MessageEditor updates 2024-08-10 20:11:21 -04:00
scawful
7c69ce016c cleanup message editor 2024-08-09 20:59:20 -04:00
scawful
71f5dc60de cleanup message editor and message data 2024-08-09 19:36:35 -04:00
scawful
2495f62b51 message editor updates 2024-07-28 20:07:44 -04:00
scawful
89ee279d48 move MessageData to message_data.h 2024-07-28 11:52:22 -04:00