Commit Graph

623 Commits

Author SHA1 Message Date
scawful
1452d3c381 Add project management features to EditorManager; implement new project, open project, and save project functionalities 2025-03-11 15:44:55 -04:00
scawful
33de8d2c77 Add "Load Last ROM" shortcut and streamline ROM asset loading in EditorManager 2025-03-11 14:04:13 -04:00
scawful
5607ef7702 Refactor Editor and SettingsEditor classes to manage context; update keyboard shortcuts display logic 2025-03-10 11:25:49 -04:00
scawful
ecac4e5b60 Add new keyboard shortcuts for saving and displaying help; refactor shortcut management 2025-03-09 19:28:10 -04:00
scawful
a307d24031 Refactor key mapping logic and streamline shortcut execution in CommandManager and ShortcutManager 2025-03-09 19:11:30 -04:00
scawful
7b2c919745 Implement shortcut execution logic and update Cut command handling in EditorManager 2025-03-09 18:42:04 -04:00
scawful
02ae11ec9e Add ShortcutManager for handling keyboard shortcuts in the editor 2025-03-09 18:15:16 -04:00
scawful
412e617ce7 Add Load method to editor classes and update corresponding headers 2025-03-08 10:07:18 -05:00
scawful
9919677e43 Refactor editor UI components: streamline button handling in graphics and music editors, remove unused macros, and improve table setup in assembly editor. 2025-03-08 00:58:47 -05:00
scawful
6714f77514 Implement Initialize method in Editor class and override in derived editors 2025-03-08 00:31:30 -05:00
scawful
bc1701f490 Refactor EditorManager: Update Initialize method signature and streamline active editors initialization; remove unused menu items and related code 2025-03-07 19:10:45 -05:00
scawful
d7692ddddd Enhance EditorManager with new help and demo menus, and refactor existing menu structure 2025-03-03 18:48:31 -05:00
scawful
6dfa5d282e Remove unused editor.cc file and clean up related CMake and code files 2025-03-03 18:01:29 -05:00
scawful
7a7d52353f Refactor Tile16Editor: rename InitBlockset to Initialize and update palette application methods for consistency 2025-03-02 17:06:58 -05:00
scawful
c99a4b0bc4 rename ApplyPalette with SetPalette 2025-03-02 17:06:46 -05:00
scawful
7d77c51a27 Refactor NotifyValue: optimize value setting and modification tracking with move semantics and improved method names 2025-02-28 01:13:16 -05:00
scawful
a28ad9c516 Enhance EditorManager: add assembly and palette editors to the view menu, and improve menu initialization for better readability 2025-02-28 00:48:12 -05:00
scawful
4dc09ad5fc Refactor graphics loading: simplify function calls by removing namespace prefixes and improve header organization in scad_format 2025-02-28 00:46:39 -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
b8d1568b08 Implement menu system: add file and edit menus with recent files support and various actions 2025-02-10 11:51:17 -05:00
scawful
c66541db87 Add PopupManager: integrate PopupManager class and PopupParams structure for enhanced popup handling 2025-02-10 11:51:03 -05:00
scawful
169bd09495 Refactor EditorManager: remove DrawRomMenu method and simplify Close function 2025-02-10 11:50:17 -05:00
scawful
db9fab83df Remove ConstantManager and related includes; update editor context accordingly 2025-01-26 13:38:45 -05:00
scawful
c8d4efda2e Refactor flag handling: move FlagParser implementation to flag.cc, remove ResourceManager, and update includes 2025-01-26 13:36:27 -05:00
scawful
1bc0f07a7e Refactor FlagsMenu to core namespace; remove redundant flags.h file and update references in editor files 2025-01-26 13:20:29 -05:00
scawful
26cda69d44 Refactor common functionality into zelda3 namespace; remove references to core::common 2025-01-22 13:53:01 -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
de53ccae21 Refactor ExperimentFlags to FeatureFlags for consistency across the codebase 2025-01-22 13:41:28 -05:00
scawful
b245b10963 Refactor logging to use util::logf and add log utility header 2025-01-22 13:36:37 -05:00
scawful
a5b94ab173 Refactor folder item management and move NotifyValue to a new utility header 2025-01-22 13:32:45 -05:00
scawful
50c9223a53 Add hex utility functions and refactor usage in editors 2025-01-22 13:28:21 -05:00
scawful
809282edad remove nonstandard type aliases 2025-01-19 20:16:40 -05:00
scawful
581f86bdb6 Add ParseSingleMessage function to handle message parsing from ROM data 2025-01-19 20:01:46 -05:00
scawful
339df53674 Refactor ROM loading methods 2025-01-18 12:33:33 -05:00
scawful
911cac401d Refactor message data handling and improve variable naming for clarity 2025-01-17 23:30:41 -05:00
scawful
c8883a1e54 Remove unused includes and clean up header files 2025-01-16 03:44:37 -05:00
scawful
d9cc92edca Add ParseMessageData to message data helper fns 2025-01-09 21:23:14 -05:00
scawful
e13cdcbf4b Add DrawDungeonMapsRoomGfx 2025-01-06 21:39:27 -05:00
scawful
40a09f17e9 re-render graphics injected into tile16 editor 2025-01-06 21:38:59 -05:00
scawful
7ad0672e74 Wrap overworld sprite graphics draw in experiment flag 2025-01-06 21:38:42 -05:00
scawful
013edb3fae update yaze public header, remove sprite.h, add z3_dungeon_sprite 2025-01-06 16:21:37 -05:00
scawful
6bf8b62d64 Merge remote-tracking branch 'refs/remotes/origin/master'
Merge changes made on visual studio repo.
2025-01-06 11:13:29 -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
f625fc94b3 Updated GraphicsEditor and Tile16Editor to use std::array instead of std::vector for better performance. 2025-01-05 20:54:19 -05:00
Justin Scofield
02a86c41da Refactored EditorManager to consolidate popup drawing methods into a single DrawPopups method and added a DrawMenuBar method. Replaced DrawYazeMenu with DrawHomepage for displaying a welcome message and options for opening a ROM. Introduced a LoadRom method to handle ROM loading and updated related methods to set the current_rom_ pointer. Added settings_editor_ to the list of active editors. 2025-01-05 20:54:02 -05:00
Justin Scofield
31217e1c5c Refactor flags and add Font Manager to settings editor
Simplified `ExperimentFlags` by removing unused flags and updated
`Controller` to no longer inherit from it. Refactored `FlagsMenu`
to separate flag categories into individual methods for better
organization. Enhanced settings editor with a new "Font Manager"
tab and updated `DrawGeneralSettings` to use the new flag category
methods. Added `DrawFontManager` function for font management.
2025-01-05 11:58:45 -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
Justin Scofield
fe0dbd3642 Refactor graphics sheet management with singleton class
Refactor the handling of graphics sheets by introducing a singleton class `GraphicsSheetManager`. This centralizes the management of graphics sheets, replacing direct access through the `Rom` object. Key changes include:

- Updated various methods across multiple classes to use `GraphicsSheetManager::GetInstance()` for accessing and manipulating graphics sheets.
- Introduced standalone functions `LoadLinkGraphics`, `LoadAllGraphicsData`, and `SaveAllGraphicsData` for loading and saving graphics data.
- Refactored the `Rom` class to remove methods and member variables related to graphics sheet management.
- Updated `OverworldEditor` to use `std::array` for `maps_bmp_` and added error handling for `std::bad_alloc` exceptions.
- Improved code modularity and error handling throughout the application.
2025-01-04 20:04:00 -05:00
scawful
698b5a43fa update editors based on namespace changes 2025-01-02 10:16:50 -05:00
scawful
9164fec53f refactor OverworldEditor: replace ConvertSurfaceToPNG with GetPngData for clipboard image copying 2025-01-01 15:53:59 -05:00