Commit Graph

50 Commits

Author SHA1 Message Date
scawful
43fc52dec7 Refactor SnesToPc and PcToSnes functions for improved readability and consistency; remove redundant core:: namespace usage 2025-01-22 13:45:58 -05:00
scawful
b245b10963 Refactor logging to use util::logf and add log utility header 2025-01-22 13:36:37 -05:00
scawful
50c9223a53 Add hex utility functions and refactor usage in editors 2025-01-22 13:28:21 -05: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
88198323b3 Refactor ROM handling and update Overworld methods
Updated MessageEditor, RoomEntrance, and Overworld classes to use WriteByte instead of Write for byte values. Refactored ROM class by removing Write and toint16 methods, moving constants, and updating operator[]. Modified Overworld methods to return absl::Status and handle errors. Updated Inventory and OverworldMap methods to use ReadWord instead of toint16.
2025-01-05 21:19:53 -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
59e59f8a38 Refactor hex string handling: replace UppercaseHex functions with Hex equivalents 2024-12-30 09:48:19 -05:00
scawful
54c170373b Change Load2BppGraphics to standalone fn, add mutable_data accessor 2024-12-29 09:58:58 -05:00
scawful
e05e7c35db remove app namespace 2024-12-28 21:28:51 -05:00
scawful
07726d90a0 Cleanup MessageEditor 2024-12-28 17:47:33 -05:00
scawful
731eb456ab Refactor editor includes and update source files for improved organization 2024-11-18 14:05:08 -05:00
scawful
e1a9d40c4b Add debug output for message loading and create test for single message verification 2024-11-08 00:18:58 -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
0e32fe89e1 Remove unused headers from message_editor.cc 2024-09-19 21:04:38 -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
d717bf8af3 Add BuildDictionaryEntries 2024-09-17 08:41:44 -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
7b33313281 big cleanup 2024-08-20 22:10:35 -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
f214f25512 add dictionary contents as message editor table column 2024-08-19 10:22:17 -04:00
scawful
20dc6e4ba7 add ReadAllTextDataV2, deprecate ReadAllTextData 2024-08-19 10:21:42 -04:00
scawful
54e8d7c3a5 Remove deprecated BitmapManager and experiment flag 2024-08-13 22:02:05 -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
9a2c8ae17a replace old renderer access pattern 2024-08-09 18:58:07 -04:00
scawful
1f68df2aff add kNumDictionaryEntries 2024-08-09 18:27:44 -04:00
scawful
3820eb367a remove ui test files for now 2024-08-07 17:24:12 -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
a5a1e183fa update refresh logic, rearrange message editor 2024-07-29 18:24:46 -04:00
scawful
ba90505d22 update font loading and display 2024-07-29 13:21:11 -04:00
scawful
2eb7c837b4 fix font gfx draw initialize routine 2024-07-29 12:41:35 -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
12be781205 add newline chars to parsed messages 2024-07-28 11:56:22 -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