Commit Graph

26 Commits

Author SHA1 Message Date
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
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
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
59e59f8a38 Refactor hex string handling: replace UppercaseHex functions with Hex equivalents 2024-12-30 09:48:19 -05:00
scawful
e05e7c35db remove app namespace 2024-12-28 21:28:51 -05:00
Justin Scofield
0b9f7ee6fa Refactor includes for improved organization and clarity 2024-11-18 18:01:14 -05:00
scawful
731eb456ab Refactor editor includes and update source files for improved organization 2024-11-18 14:05:08 -05:00
scawful
5532623e16 game constants housekeeping 2024-08-29 13:08:36 -04:00
scawful
dc244ac02d Refactor sprite editor to use Zelda3 namespace for default sprite names 2024-08-20 21:42:50 -04:00
scawful
a8ed9b7f92 remove magic numbers, enforce const correctness 2024-08-20 21:31:59 -04:00
scawful
9bbb6c6114 chore: Refactor file_dialog.cc and file_dialog.h to use namespace aliases 2024-08-13 23:56:17 -04:00
scawful
54e8d7c3a5 Remove deprecated BitmapManager and experiment flag 2024-08-13 22:02:05 -04:00
scawful
7c708519ac standardize imgui headers as user instead of system 2024-07-30 23:33:12 -04:00
scawful
95ba7630b8 fix system/user header formatting 2024-07-30 21:45:01 -04:00
scawful
90933517c4 cleanup sprite pal and overworld editor 2024-07-22 19:26:15 -04:00
scawful
25bd1abb24 update zsprite load 2024-07-21 18:53:01 -04:00
scawful
3701e740a0 add vanilla and custom sprite editor tabs 2024-07-21 18:52:41 -04:00
scawful
ed770b925c add Find to Editor interface 2024-07-20 09:20:24 -04:00
scawful
f10eaf0877 add canvas id and context id to Canvas 2024-07-19 15:50:36 -04:00
scawful
9c2cf1d971 add zsprite to sprite editor 2024-07-14 20:54:18 -04:00
scawful
a9f0673f0a add LoadZSpriteFormat 2024-07-14 20:26:09 -04:00
scawful
b3c9ef8007 add zsprite.h based on ZSpriteMaker 2024-07-14 20:07:24 -04:00
scawful
bf7ded05d0 move sprite_editor to editors/sprite 2024-07-14 19:59:06 -04:00