53 void Draw(
bool* p_open)
override {
62 const bool properties_editable =
67 ImGui::Text(tr(
"Entrance ID: %04X"), current_entrance.entrance_id_);
68 if (!properties_editable) {
71 ImGui::BeginDisabled(!properties_editable);
103 ImGui::Text(tr(
"Camera Boundaries"));
105 ImGui::Text(tr(
"\t\t\t\t\tNorth East South West"));
108 "Quadrant", ¤t_entrance.camera_boundary_qn_, 50.f,
true);
120 "Full room", ¤t_entrance.camera_boundary_fn_, 50.f,
true);
130 ImGui::EndDisabled();
145 if (ImGui::BeginChild(
"##EntrancesList", ImVec2(0, 0),
true,
146 ImGuiWindowFlags_AlwaysVerticalScrollbar)) {
147 for (
int i = 0; i < kTotalEntries; i++) {
148 std::string entrance_name;
149 if (i < kNumSpawnPoints) {
152 snprintf(buf,
sizeof(buf),
"Spawn Point %d", i);
156 int entrance_id = i - kNumSpawnPoints;
157 if (entrance_id < kNumEntrances) {
162 snprintf(buf,
sizeof(buf),
"Unknown %d", i);
167 int room_id = (*entrances_)[i].room_;
172 snprintf(label,
sizeof(label),
"[%02X] %s -> %s (%03X)", i,
173 entrance_name.c_str(), room_name.c_str(), room_id);
176 if (ImGui::Selectable(label, is_selected)) {