3#include "imgui/imgui.h"
8 const std::array<zelda3::Room, 0x128>& rooms) {
13 for (
const auto& room : rooms) {
35 if (ImGui::Button(
"Refresh")) {
39 ImGui::Text(
"Usage Statistics");
49 if (ImGui::CollapsingHeader(
"Blockset Usage")) {
51 ImGui::Text(
"Blockset 0x%02X: %d rooms", blockset, count);
55 if (ImGui::CollapsingHeader(
"Spriteset Usage")) {
57 ImGui::Text(
"Spriteset 0x%02X: %d rooms", spriteset, count);
61 if (ImGui::CollapsingHeader(
"Palette Usage")) {
63 ImGui::Text(
"Palette 0x%02X: %d rooms", palette, count);
70 ImGui::Text(
"Usage grid visualization not yet implemented");
74 const absl::flat_hash_map<uint16_t, int>& usage_map, uint16_t& selected_set,
75 int spriteset_offset) {
77 ImGui::Text(
"Set usage rendering not yet implemented");
uint16_t selected_blockset_
absl::flat_hash_map< uint16_t, int > palette_usage_
uint16_t selected_palette_
void CalculateUsageStats(const std::array< zelda3::Room, 0x128 > &rooms)
void RenderSetUsage(const absl::flat_hash_map< uint16_t, int > &usage_map, uint16_t &selected_set, int spriteset_offset=0x00)
absl::flat_hash_map< uint16_t, int > spriteset_usage_
uint16_t selected_spriteset_
absl::flat_hash_map< uint16_t, int > blockset_usage_
Editors are the view controllers for the application.