Commit Graph

58 Commits

Author SHA1 Message Date
scawful
100fc23a2e Remove PerformanceMonitor and update references to PerformanceProfiler
- Deleted the PerformanceMonitor implementation and header files as functionality has been fully integrated into gfx::PerformanceProfiler.
- Updated all relevant source files to replace PerformanceMonitor and ScopedTimer with their gfx counterparts, ensuring consistent performance monitoring across the application.
2025-09-29 20:30:31 -04:00
scawful
f210cd85b4 Integrate performance monitoring across various editors
- Added performance monitoring capabilities using ScopedTimer in the DungeonEditor, PaletteEditor, ScreenEditor, MessageEditor, MusicEditor, SpriteEditor, and SettingsEditor classes to track loading times.
- Enhanced the Load methods in each editor to include timing for critical operations, improving performance analysis and optimization.
- Removed unnecessary debug output in the Sprite class to clean up the codebase.
2025-09-28 22:32:07 -04:00
scawful
c5ed249857 Add LoadExpandedMessages function to handle loading and parsing of expanded messages from a BIN file 2025-08-17 11:43:50 -04:00
scawful
b5f6930d38 Refactor window management and renderer integration for improved structure
- Replaced platform backend references with a dedicated Window class for better encapsulation of window and audio device management.
- Updated various files to include the new window header, enhancing clarity and reducing dependencies on the platform backend.
- Removed obsolete platform backend code to streamline the codebase and improve maintainability.
- Refactored controller and editor classes to utilize the new window management system, ensuring consistent handling of window creation and rendering.
2025-08-03 16:09:51 -04:00
scawful
951fc6a8a2 Enhance message data handling and editor functionality
- Updated ReadAllTextData to return a vector of MessageData instead of modifying an external list, improving data management.
- Added support for special elements in ParseMessageData to enhance message parsing capabilities.
- Introduced DisplayTextOverflowError function for better error handling in message saving.
- Refactored MessageEditor to utilize the new ReadAllTextData signature and improved expanded message handling.
- Cleaned up unused functions and variables in MessageEditor for better code organization.
2025-05-12 11:46:00 -04:00
scawful
ce6cde438c 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.
2025-05-10 12:52:34 -04:00
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
179ab5bc40 Refactor dungeon entrance loading and clean up unused renderer object 2025-05-08 22:35:10 -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
f533ffb88b Enhance message parsing and editor functionality; add expanded message settings UI, improve message data handling, and remove import/export features for cleaner code structure. 2025-04-23 22:24:09 -04:00
scawful
c3d707901c Refactor MessageEditor to utilize gfx::SnesColor for font preview colors and replace custom TextBox implementation with gui::TextBox for improved functionality; adjust child window dimensions dynamically based on current font bitmap size. 2025-04-17 21:33:20 -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
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