3#include "imgui/imgui.h"
12 for (
const auto& room : rooms) {
34 if (ImGui::Button(
"Refresh")) {
38 ImGui::Text(
"Usage Statistics");
48 if (ImGui::CollapsingHeader(
"Blockset Usage")) {
50 ImGui::Text(
"Blockset 0x%02X: %d rooms", blockset, count);
54 if (ImGui::CollapsingHeader(
"Spriteset Usage")) {
56 ImGui::Text(
"Spriteset 0x%02X: %d rooms", spriteset, count);
60 if (ImGui::CollapsingHeader(
"Palette Usage")) {
62 ImGui::Text(
"Palette 0x%02X: %d rooms", palette, count);
69 ImGui::Text(
"Usage grid visualization not yet implemented");
73 uint16_t& selected_set,
int spriteset_offset) {
75 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.