Refactor main menu action shell
This commit is contained in:
39
editor/src/UI/AboutEditorDialog.h
Normal file
39
editor/src/UI/AboutEditorDialog.h
Normal file
@@ -0,0 +1,39 @@
|
||||
#pragma once
|
||||
|
||||
#include "PopupState.h"
|
||||
#include "Widgets.h"
|
||||
|
||||
#include "Core/IEditorContext.h"
|
||||
|
||||
namespace XCEngine {
|
||||
namespace Editor {
|
||||
namespace UI {
|
||||
|
||||
inline void DrawEditorAboutDialog(const IEditorContext* context, DeferredPopupState& popupState) {
|
||||
popupState.ConsumeOpenRequest("About XCEngine Editor");
|
||||
|
||||
if (!BeginModalPopup("About XCEngine Editor")) {
|
||||
return;
|
||||
}
|
||||
|
||||
ImGui::TextUnformatted("XCEngine Editor");
|
||||
ImGui::Separator();
|
||||
DrawHintText("Unity-like editor shell built on Dear ImGui.");
|
||||
ImGui::Spacing();
|
||||
ImGui::Text("Date: 2026-03-27");
|
||||
ImGui::Text("UI Refactor: Actions / Commands / Layout in progress");
|
||||
if (context) {
|
||||
ImGui::Text("Project: %s", context->GetProjectPath().c_str());
|
||||
}
|
||||
ImGui::Spacing();
|
||||
|
||||
if (ImGui::Button("Close", DialogActionButtonSize())) {
|
||||
ImGui::CloseCurrentPopup();
|
||||
}
|
||||
|
||||
EndPopup();
|
||||
}
|
||||
|
||||
} // namespace UI
|
||||
} // namespace Editor
|
||||
} // namespace XCEngine
|
||||
Reference in New Issue
Block a user