51 void Draw(
bool* p_open)
override {
59 reinterpret_cast<uint16_t*
>(¤t_entrance.room_));
84 reinterpret_cast<uint16_t*
>(¤t_entrance.exit_),
88 ImGui::Text(
"Camera Boundaries");
90 ImGui::Text(
"\t\t\t\t\tNorth East South West");
116 constexpr int kNumSpawnPoints = 7;
117 constexpr int kNumEntrances = 133;
118 constexpr int kTotalEntries = 140;
120 if (ImGui::BeginChild(
"##EntrancesList", ImVec2(0, 0),
true,
121 ImGuiWindowFlags_AlwaysVerticalScrollbar)) {
122 for (
int i = 0; i < kTotalEntries; i++) {
123 std::string entrance_name;
124 if (i < kNumSpawnPoints) {
127 snprintf(buf,
sizeof(buf),
"Spawn Point %d", i);
131 int entrance_id = i - kNumSpawnPoints;
132 if (entrance_id < kNumEntrances) {
137 snprintf(buf,
sizeof(buf),
"Unknown %d", i);
142 int room_id = (*entrances_)[i].room_;
147 snprintf(label,
sizeof(label),
"[%02X] %s -> %s (%03X)", i,
148 entrance_name.c_str(), room_name.c_str(), room_id);
151 if (ImGui::Selectable(label, is_selected)) {