Implement LoadBinaryGfx functionality: Refactor GFX loading from BIN file into a separate method, improve error handling, and update UI button for better user experience

This commit is contained in:
scawful
2024-11-10 12:31:03 -05:00
parent 6dd8a36e5c
commit f5ac6124b0
2 changed files with 39 additions and 31 deletions

View File

@@ -64,11 +64,15 @@ class ScreenEditor : public SharedRom, public Editor {
void DrawInventoryToolset();
absl::Status LoadDungeonMaps();
absl::Status LoadDungeonMapTile16(const std::vector<uint8_t>& gfx_data, bool bin_mode = false);
absl::Status LoadDungeonMapTile16(const std::vector<uint8_t>& gfx_data,
bool bin_mode = false);
void DrawDungeonMapsTabs();
void DrawDungeonMapsEditor();
void LoadBinaryGfx();
bool dungeon_maps_loaded_ = false;
bool binary_gfx_loaded_ = false;
uint8_t selected_room = 0;
uint8_t boss_room = 0;