6#include "imgui/imgui.h"
12 : overworld_(overworld) {}
16 ImGui::TextDisabled(
"Overworld not loaded");
20 if (ImGui::Begin(
"Usage Statistics", p_open)) {
22 if (ImGui::BeginTabItem(
"Grid View")) {
26 if (ImGui::BeginTabItem(
"States")) {
40 ImGui::Text(
"Map Usage Grid (8x8)");
43 if (ImGui::BeginTable(
45 ImGuiTableFlags_Borders | ImGuiTableFlags_SizingFixedFit)) {
46 for (
int y = 0; y < 8; y++) {
47 ImGui::TableNextRow();
48 for (
int x = 0; x < 8; x++) {
49 ImGui::TableNextColumn();
50 int map_id = y * 8 + x;
54 ImGui::Text(
"%02X", map_id);
65 ImGui::Text(
"Global Usage Statistics");
69 ImGui::Text(
"Total Maps: 64");
70 ImGui::Text(
"Large Maps: %d", 0);
71 ImGui::Text(
"Small Maps: %d", 0);
zelda3::Overworld * overworld_
void Draw(bool *p_open=nullptr)
UsageStatisticsCard(zelda3::Overworld *overworld)
Represents the full Overworld data, light and dark world.
Editors are the view controllers for the application.
bool BeginThemedTabBar(const char *id, ImGuiTabBarFlags flags)
A stylized tab bar with "Mission Control" branding.