Commit Graph

34 Commits

Author SHA1 Message Date
scawful
e7720019fd Implement Save method in various editor classes with unimplemented error 2025-03-12 15:16:32 -04:00
scawful
412e617ce7 Add Load method to editor classes and update corresponding headers 2025-03-08 10:07:18 -05:00
scawful
6714f77514 Implement Initialize method in Editor class and override in derived editors 2025-03-08 00:31:30 -05:00
scawful
df2bc1035c Refactor MessageEditor: improve code readability and maintainability by adjusting formatting, updating variable names, and reorganizing includes 2025-02-27 17:44:22 -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
731eb456ab Refactor editor includes and update source files for improved organization 2024-11-18 14:05:08 -05:00
scawful
2c9088d8ae add MessageEditor::DrawDictionary 2024-10-07 08:00:16 -04:00
scawful
7fb71b6c38 Refactor message editor tables and constants
This commit refactors the message editor code by introducing separate table flags for the message table and dictionary table. The message table now uses the kMessageTableFlags, which includes the Hideable, Borders, and Resizable flags. Similarly, the dictionary table now uses the kDictTableFlags, which includes the Borders and Resizable flags.

Additionally, the commit adds two new constants to the message_editor.h file: kFontGfxMessageSize with a value of 128 and kFontGfxMessageDepth with a value of 8. These constants are used in the message_editor.cc file to specify the size and depth of the font graphics data.

No functional changes are made in this commit.
2024-10-05 12:09:49 -04:00
scawful
29c2efd287 process 2 sheets for font gfx data in message editor 2024-10-05 11:06:58 -04: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
7e0f38ef0f housekeeping 2024-08-25 15:40:14 -04:00
scawful
49611d4944 big cleanup, replace Bytes alias with std::vector<uint8_t> to reduce ambiguity 2024-08-20 12:02:47 -04:00
scawful
dd430ad1b6 decouple message data functions from message editor class 2024-08-19 11:36:30 -04:00
scawful
20dc6e4ba7 add ReadAllTextDataV2, deprecate ReadAllTextData 2024-08-19 10:21:42 -04:00
scawful
2d8a658e5e MessageEditor updates 2024-08-10 20:11:21 -04:00
scawful
36258cf64a cleanup message editor 2024-08-10 17:08:26 -04:00
scawful
0e1b80d756 housekeeping 2024-08-10 13:03:01 -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
1f68df2aff add kNumDictionaryEntries 2024-08-09 18:27:44 -04:00
scawful
439a55e3cb remove imgui_test_engine from editor namespace 2024-07-31 07:41:34 -04:00
scawful
2bd9526a2d add constants for scroll text commands 2024-07-29 19:04:49 -04:00
scawful
ba90505d22 update font loading and display 2024-07-29 13:21:11 -04:00
scawful
2495f62b51 message editor updates 2024-07-28 20:07:44 -04:00
scawful
c54ca779db add message_editor_test and register in ctx 2024-07-28 12:10:42 -04:00
scawful
b29800e9da fix TextElement parsing bug 2024-07-28 11:52:35 -04:00
scawful
89ee279d48 move MessageData to message_data.h 2024-07-28 11:52:22 -04:00
scawful
6ac160207d add text commands column to message editor 2024-07-28 11:33:01 -04:00
scawful
11199838fc add MessageData copy constructor for current message 2024-07-28 11:32:18 -04:00
scawful
f150cc0bbc update message editor 2024-07-24 00:42:16 -04:00
scawful
a9ee33bcd9 add MessageEditor 2024-07-24 00:01:21 -04:00