Commit Graph

46 Commits

Author SHA1 Message Date
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
e38a7d7581 Fix formatting in ParseTextDataByte and optimize message handling in ReadAllTextDataV2 2025-04-05 17:50:49 -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
806885824a Refactor loading methods in EditorManager and OverworldEditor for improved clarity and consistency; add checks for loaded ROM in GfxGroupEditor and MessageEditor 2025-03-12 14:28:53 -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
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
50c9223a53 Add hex utility functions and refactor usage in editors 2025-01-22 13:28:21 -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
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
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
374eebfac4 header include cleanup 2024-09-07 09:55:01 -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
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
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
12be781205 add newline chars to parsed messages 2024-07-28 11:56:22 -04:00
scawful
6ac160207d add text commands column to message editor 2024-07-28 11:33:01 -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