feat: Refactor dungeon object selection and editing interfaces for improved usability

This commit is contained in:
scawful
2025-10-04 01:23:43 -04:00
parent cb084223f0
commit d85974be60
4 changed files with 132 additions and 11 deletions

View File

@@ -374,7 +374,7 @@ void DungeonObjectSelector::DrawRoomGraphics() {
}
void DungeonObjectSelector::DrawIntegratedEditingPanels() {
if (!dungeon_editor_system_ || !object_editor_ || !*dungeon_editor_system_ || !*object_editor_) {
if (!dungeon_editor_system_ || !*dungeon_editor_system_ || !object_editor_) {
ImGui::Text("Editor systems not initialized");
return;
}
@@ -428,12 +428,12 @@ void DungeonObjectSelector::DrawIntegratedEditingPanels() {
}
void DungeonObjectSelector::DrawCompactObjectEditor() {
if (!object_editor_ || !*object_editor_) {
if (!object_editor_) {
ImGui::Text("Object editor not initialized");
return;
}
auto& editor = **object_editor_;
auto& editor = *object_editor_;
ImGui::Text("Object Editor");
Separator();