Commit Graph

156 Commits

Author SHA1 Message Date
scawful
11504ca4c1 Refactor Renderer access and enhance graphics loading functionality
- Replaced instances of Renderer::GetInstance() with Renderer::Get() for consistency across the codebase.
- Updated various rendering methods to streamline bitmap updates and enhance performance.
- Removed unused includes and comments to improve code clarity and maintainability.
2025-05-08 19:37:48 -04:00
scawful
718a14ca62 Refactor OverworldEditor and Tile16Editor to use Tilemap instead of array of Bitmap 2025-04-29 00:26:16 -04:00
scawful
131f0485c6 Add context menu options for editable palette in Canvas; implement BeginCanvas and EndCanvas functions for improved canvas management. 2025-04-23 20:16:38 -04:00
scawful
afab5900f7 Add color conversion utility and editable palette display functionality; implement color picker and context menu options for palette colors in the GUI. 2025-04-17 21:50:01 -04:00
scawful
44e13cf4bb Refactor bitmap palette management across various components to streamline palette setting and improve error handling; remove unnecessary status checks and enhance consistency in palette application methods. 2025-04-17 21:49:47 -04:00
scawful
eeab477e72 Add RenderLayout function to handle dynamic rendering of Text and Button elements; introduce Layout struct for managing UI components in input module. 2025-04-17 21:33:35 -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
97788fc033 Refactor canvas drawing methods to remove unnecessary bitmap parameters in context menu and bitmap drawing functions; update inventory and graphics editors to use new method signatures for improved consistency and clarity. 2025-04-16 21:44:07 -04:00
scawful
e7f976fcf0 add hyperlink to GitHub in the homepage for easier access to the project 2025-04-16 19:06:01 -04:00
scawful
75d7ba9382 Enhance ClickableText function to improve hover and click detection; refactor text rendering with dynamic color based on hover state and streamline cursor positioning for better UI interaction. 2025-04-16 17:20:05 -04:00
scawful
2db9561a44 Fix ImGui::End() placement in EditorManager and ZEML rendering functions 2025-03-13 09:27:55 -04:00
scawful
57dd640c3a Refactor ClickableText function to use tab colors for improved visual consistency; add TODO for theme setup 2025-03-11 21:05:32 -04:00
scawful
986084f3cd Replace hardcoded separator with constexpr variable in menu drawing logic 2025-03-11 15:45:09 -04:00
scawful
c8ce2843b1 Enhance ClickableText function to improve hover effects and add color management; update Theme struct to include clickable text colors 2025-03-10 11:42:33 -04:00
scawful
c38932fd9c Add Paragraph and ClickableText functions; implement MapKeyToImGuiKey for key mapping 2025-03-09 18:14:48 -04:00
scawful
4b139b3973 Add conditional inclusion of <format> and implement ColorToHexString using std::format or absl::StrFormat 2025-03-03 17:39:43 -05:00
scawful
dc88574152 housekeeping 2025-03-03 16:33:23 -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
4c3e9e4286 Implement menu system: add DrawMenu function and MenuItem structure for enhanced menu handling 2025-02-10 11:50:37 -05:00
scawful
646db9607a Refactor Controller and File Dialog: streamline platform handling, remove redundant parameters, and enhance initialization logic 2025-01-26 19:28:40 -05:00
scawful
c8883a1e54 Remove unused includes and clean up header files 2025-01-16 03:44:37 -05:00
scawful
b3bc05e620 consolidate file related functions, add nativefiledialog-extended to build 2025-01-06 13:21:28 -05:00
Justin Scofield
5e0fb9e36e Add ReloadPackageFonts 2025-01-05 20:54:56 -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
f1f6df829f controller and canvas houskeeping 2025-01-05 06:17:09 -05:00
Justin Scofield
bdc5e756cf temporary removal of std format 2024-12-31 20:57:05 -05:00
Justin Scofield
54a5be8d3a housekeeping 2024-12-31 20:45:43 -05:00
scawful
398ba36811 Remove ImGuiFileDialog integration and replace with FileDialogWrapper in assembly and tile editors 2024-12-31 15:47:51 -05:00
scawful
9745e7005c Remove ImGuiColorTextEdit integration and update includes for TextEditor 2024-12-31 15:25:26 -05:00
scawful
1587fa704d add TextEditor, from deprecated ImGuiColorTextEdit submodule 2024-12-31 15:04:50 -05:00
scawful
79a16bbefe mmmm housekeeping 2024-12-30 19:05:16 -05:00
scawful
33af535ca3 Fix formatting in input.h and include variant header 2024-12-29 16:48:33 -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
ed36d53600 Add Theme struct and theme management functions for improved GUI styling 2024-12-29 16:03:59 -05:00
scawful
9a680310bd Add table handling functions: implement AddTableColumn and DrawTable for improved GUI layout 2024-12-29 16:03:11 -05:00
scawful
1b7b56d7dc Refactor color handling: update SnesColor references to gfx::SnesColor and add Color struct with utility functions 2024-12-29 10:43:59 -05:00
scawful
e05e7c35db remove app namespace 2024-12-28 21:28:51 -05:00
scawful
3ebe17c7bd Cleanup style.h 2024-12-28 17:48:30 -05:00
scawful
253dfff2a3 Fix tile ID calculation to account for global scale 2024-11-28 11:50:47 -05:00
scawful
ec85a206b1 Refactor color conversion functions for consistent naming and improved readability 2024-11-18 14:12:46 -05:00
scawful
731eb456ab Refactor editor includes and update source files for improved organization 2024-11-18 14:05:08 -05:00
scawful
2fd1b1fe94 Refactor includes and formatting in GUI header files for clarity; remove unused headers and improve code style 2024-11-13 08:52:02 -05:00
scawful
f3555b49ba Add SaveDungeonMapTile16 function to handle saving dungeon map tile data and enhance tile editing UI 2024-11-10 15:07:52 -05:00
scawful
7bcab06f0b Add InputTileInfo function for tile information input handling in GUI 2024-11-10 15:07:33 -05:00
scawful
1d650c0450 Refactor InputScalarLeft: remove NoMarkEdited flag and update button flags for improved interaction 2024-11-08 21:03:17 -05:00
scawful
261525f3cb Fix macOS bundle zeml resource loading path 2024-11-02 10:35:53 -05:00
scawful
e8e6ab00bf Refactor ImTextureID casting for SDL_Texture rendering 2024-10-09 01:59:15 -04:00
scawful
46d14769de use SDL_GetBasePath for zeml files 2024-09-25 01:26:40 -04:00
scawful
12ce96e533 chore: Refactor CMakeLists.txt and app.cmake files for better organization 2024-08-30 02:57:14 -04:00