Commit Graph

29 Commits

Author SHA1 Message Date
scawful
50c9223a53 Add hex utility functions and refactor usage in editors 2025-01-22 13:28:21 -05:00
scawful
c8883a1e54 Remove unused includes and clean up header files 2025-01-16 03:44: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
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
d3eca0f950 Make ExperimentFlags a singleton, remove inheritance relationships 2024-12-31 18:13:53 -05:00
scawful
9745e7005c Remove ImGuiColorTextEdit integration and update includes for TextEditor 2024-12-31 15:25:26 -05:00
scawful
59e59f8a38 Refactor hex string handling: replace UppercaseHex functions with Hex equivalents 2024-12-30 09:48:19 -05:00
scawful
7e470f2b33 remove dungeon namespace 2024-12-29 16:14:20 -05:00
scawful
17659eccab Refactor DungeonEditor::RefreshGraphics for improved readability and consistency 2024-12-29 16:02:47 -05:00
scawful
e05e7c35db remove app namespace 2024-12-28 21:28:51 -05:00
scawful
731eb456ab Refactor editor includes and update source files for improved organization 2024-11-18 14:05:08 -05:00
scawful
e3ed705336 Refactor tab handling in Dungeon and Graphics editors for improved readability 2024-11-13 09:42:54 -05:00
scawful
7798d769a5 Refactor bitmap update methods to remove unnecessary parameters; simplify texture updating in Renderer and Bitmap classes 2024-11-13 09:16:16 -05:00
scawful
b1edd862fc Reorder includes in assembly and dungeon editor files for improved clarity; remove unused headers 2024-11-13 08:53:08 -05:00
scawful
8555dacdb5 Refactor project structure: remove labeling.h and update references to use project.h, enhancing code clarity and maintainability 2024-11-09 21:04:39 -05:00
scawful
3d23922f71 Refactor dungeon room initialization for clarity and add unit tests for room loading functionality 2024-11-08 00:18:33 -05:00
scawful
e8e6ab00bf Refactor ImTextureID casting for SDL_Texture rendering 2024-10-09 01:59:15 -04:00
scawful
7e0f38ef0f housekeeping 2024-08-25 15:40:14 -04:00
scawful
36cc07525b Refactor assembly_editor.cc, dungeon_editor.h, and overworld_editor.cc 2024-08-25 14:46:54 -04:00
scawful
a9d365f3b4 cleanup constants 2024-08-20 23:09:10 -04:00
scawful
7b33313281 big cleanup 2024-08-20 22:10:35 -04:00
scawful
54e8d7c3a5 Remove deprecated BitmapManager and experiment flag 2024-08-13 22:02:05 -04:00
scawful
b9622c880c Refactor DungeonEditor to use std::array for gfx sheets 2024-08-13 21:57:00 -04:00
scawful
9a2c8ae17a replace old renderer access pattern 2024-08-09 18:58:07 -04:00
scawful
7c708519ac standardize imgui headers as user instead of system 2024-07-30 23:33:12 -04:00
scawful
3710ee5ed9 remove pipeline.h 2024-07-24 09:37:35 -04:00
scawful
8e9f5d345b move pipeline functions into respective gui files 2024-07-24 09:31:42 -04:00
scawful
cbc6788e2e move DungeonEditor, merge widgets with style, split up CMakeLists 2024-07-24 01:38:36 -04:00