Commit Graph

68 Commits

Author SHA1 Message Date
scawful
6714f77514 Implement Initialize method in Editor class and override in derived editors 2025-03-08 00:31:30 -05:00
scawful
c99a4b0bc4 rename ApplyPalette with SetPalette 2025-03-02 17:06:46 -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
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
c8883a1e54 Remove unused includes and clean up header files 2025-01-16 03:44:37 -05:00
scawful
7ad0672e74 Wrap overworld sprite graphics draw in experiment flag 2025-01-06 21:38:42 -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
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
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
scawful
d3eca0f950 Make ExperimentFlags a singleton, remove inheritance relationships 2024-12-31 18:13:53 -05:00
scawful
50e4117230 Add entrance names to common header and update usage in OverworldEditor 2024-12-31 16:40:44 -05:00
scawful
6d2de44b94 Refactor Overworld blockset types and update related function signatures 2024-12-31 16:40:01 -05:00
scawful
33dc1983bc Add Rom dependency injection to OverworldEditor 2024-12-31 11:43:33 -05:00
scawful
19deca88ab Add OverworldEntranceTileTypes and remove EntranceContext boiler plate 2024-12-30 19:04:51 -05:00
scawful
59e59f8a38 Refactor hex string handling: replace UppercaseHex functions with Hex equivalents 2024-12-30 09:48:19 -05:00
scawful
c0bce7fd1c Fix formatting and clean up namespace declarations in editor and GUI files 2024-12-29 16:45:48 -05:00
scawful
8cf16906e6 remove overworld namespace 2024-12-29 16:12:53 -05:00
scawful
3fc3e2af43 Refactor OverworldEditor toolset to use gui::AddTableColumn 2024-12-29 16:03:40 -05:00
scawful
e05e7c35db remove app namespace 2024-12-28 21:28:51 -05:00
scawful
f752fc0d4a Cleanup OverworldEditor 2024-12-28 17:17:50 -05:00
scawful
21314702e8 Add EditorContext, refactor utils, add system managers 2024-11-19 23:10:23 -05:00
scawful
731eb456ab Refactor editor includes and update source files for improved organization 2024-11-18 14:05:08 -05:00
scawful
e0db021e7c Add input field size constant and improve sprite preview handling; adjust depth and add checks for empty graphics 2024-11-13 08:52:55 -05:00
scawful
5677b62b32 Update blockset canvas size for improved layout; adjust height to accommodate additional elements 2024-11-13 08:52:48 -05:00
scawful
0035176f86 Add CopyTile8bpp16 function and refactor usage in OverworldMap 2024-11-10 17:16:46 -05:00
scawful
6c0bc9877e Refactor sprite dimension retrieval to use lowercase methods for consistency 2024-11-08 00:14:11 -05:00
scawful
665d58aa97 General cleanup 2024-11-02 00:10:24 -05:00
scawful
e8e6ab00bf Refactor ImTextureID casting for SDL_Texture rendering 2024-10-09 01:59:15 -04:00
scawful
c31f3b81be Refactor code to remove unused headers and unnecessary includes 2024-09-25 00:37:23 -04:00
scawful
374eebfac4 header include cleanup 2024-09-07 09:55:01 -04:00
scawful
028879aefd Refactor palette_editor.cc and palette_editor.h for improved code organization and readability 2024-09-02 14:12:22 -04:00
scawful
7650c56e8d update usage stats grids 2024-09-01 14:31:54 -04:00
scawful
048ac22517 fix overworld editor toolset names 2024-08-31 09:13:43 -04:00
scawful
740be3897f housekeeping 2024-08-30 10:58:57 -04:00
scawful
dd340b1f1a overworld housekeeping 2024-08-29 20:27:44 -04:00
scawful
698055d165 Refactor OverworldEditor and Overworld class 2024-08-29 19:52:38 -04:00
scawful
93d7aa545c Refactor AssembleMap32Tiles to report errors 2024-08-29 19:10:02 -04:00
scawful
5532623e16 game constants housekeeping 2024-08-29 13:08:36 -04:00
scawful
95a5201a97 feat: Add custom overworld map settings UI to OverworldEditor 2024-08-25 17:01:18 -04:00
scawful
0c9faa7ac4 chore: pass flag to overworld map for loading custom data 2024-08-25 16:50:41 -04:00
scawful
36cc07525b Refactor assembly_editor.cc, dungeon_editor.h, and overworld_editor.cc 2024-08-25 14:46:54 -04:00
scawful
c62b2c0913 Refactor OverworldEditor to use uint for loop counters in RefreshTile16Blockset method 2024-08-25 00:12:57 -04:00
scawful
bf94668455 Refactor OverworldEditor to use zelda3::GameEntity 2024-08-24 23:57:19 -04:00
scawful
270bef0973 Refactor OverworldEntity to use uint16_t for map_id and improve code organization 2024-08-22 10:49:12 -04:00
scawful
94108ebc0d Refactor OverworldEditor to lazy load area graphics 2024-08-22 01:02:20 -04:00
scawful
23640310be Refactor tile16 blockset data access methods 2024-08-21 21:54:28 -04:00