Refactor OverworldEditor to improve map index calculation; streamline current_map_ assignment and maintain clarity in highlighted map logic.

This commit is contained in:
scawful
2025-04-27 14:01:06 -04:00
parent ff74c0c92a
commit 68eb3a657c
2 changed files with 3 additions and 5 deletions

View File

@@ -23,9 +23,7 @@ using ImGui::Text;
void SpriteEditor::Initialize() {}
absl::Status SpriteEditor::Load() {
return absl::OkStatus();
}
absl::Status SpriteEditor::Load() { return absl::OkStatus(); }
absl::Status SpriteEditor::Update() {
if (rom()->is_loaded() && !sheets_loaded_) {
@@ -188,8 +186,8 @@ void SpriteEditor::DrawCurrentSheets() {
}
graphics_sheet_canvas_.DrawGrid();
graphics_sheet_canvas_.DrawOverlay();
ImGui::EndChild();
}
ImGui::EndChild();
}
void SpriteEditor::DrawSpritesList() {