40 lines
960 B
C++
40 lines
960 B
C++
#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
|