3#include "AboutCommand.h"
4#include "Commands/EditorCommand.h"
5#include "CogsVersion.h"
7Cogs::Core::AboutCommand::AboutCommand(EditorState* state) : ModalEditorCommand(state)
21 ImGui::OpenPopup(
"About Cogs.Core.Runtime");
23 if (ImGui::BeginPopupModal(
"About Cogs.Core.Runtime", &modal, ImGuiWindowFlags_AlwaysAutoResize)) {
24 ImGui::TextUnformatted(
"Cogs.Core.Runtime");
25 ImGui::Text(
"Build %s", COGS_VERSION_STRING);
26 ImGui::TextUnformatted(COGS_REVISION_STRING);
27 ImGui::Text(
"Build Date/Time: %s, %s", __DATE__, __TIME__);
28 ImGui::Text(COGS_LEGAL_COPYRIGHT);
32 if (ImGui::Button(
"OK", ImVec2(120, 20))) {
34 ImGui::CloseCurrentPopup();
void beginModal() override
Called when the command is initiated.
void showGui() override
Display custom ImGUI.
bool continueModal() override
Shall return true while the GUI should still be shown. False when.