From 1e56ca38eb3f7a3bfda7524e24dea7f3de62d378 Mon Sep 17 00:00:00 2001 From: Angelo Theodorou Date: Fri, 10 Jan 2025 17:27:19 +0100 Subject: [PATCH] Use new ImGui TextLinkOpenURL() in the about window - Update copyright dates to 2025 --- CMakeLists.txt | 2 +- LICENSE | 2 +- src/gui/UserInterface.cpp | 5 +++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 51d3916..758ecb6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,7 @@ set(NCPROJECT_NAME "SpookyGhost") set(NCPROJECT_EXE_NAME "spookyghost") set(NCPROJECT_VENDOR "Angelo Theodorou") -set(NCPROJECT_COPYRIGHT "Copyright ©2020-2024 ${NCPROJECT_VENDOR}") +set(NCPROJECT_COPYRIGHT "Copyright ©2020-2025 ${NCPROJECT_VENDOR}") set(NCPROJECT_DESCRIPTION "A procedural sprite animation tool") set(NCPROJECT_HOMEPAGE "https://encelo.itch.io/spookyghost") set(NCPROJECT_REVERSE_DNS "io.itch.encelo.spookyghost") diff --git a/LICENSE b/LICENSE index 60a0b76..e3b28f8 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2020-2024 Angelo Theodorou +Copyright (c) 2020-2025 Angelo Theodorou Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), diff --git a/src/gui/UserInterface.cpp b/src/gui/UserInterface.cpp index 99eec59..9cb96e5 100644 --- a/src/gui/UserInterface.cpp +++ b/src/gui/UserInterface.cpp @@ -370,6 +370,7 @@ bool UserInterface::openDocumentationEnabled() void UserInterface::openDocumentation() { nctl::String docsPath = nc::fs::joinPath(nc::fs::dataPath(), docsFile); + // Can't use `Platform_OpenInShellUserData()` from ImGui openFile(docsPath.data()); } @@ -3440,7 +3441,7 @@ void UserInterface::createAboutWindow() #endif ImGui::Text("SpookyGhost compiled on %s at %s", __DATE__, __TIME__); ImGui::Spacing(); - ImGui::Text("https://encelo.itch.io/spookyghost"); + ImGui::TextLinkOpenURL("https://encelo.itch.io/spookyghost", "https://encelo.itch.io/spookyghost"); for (unsigned int i = 0; i < 4; i++) ImGui::Spacing(); @@ -3457,7 +3458,7 @@ void UserInterface::createAboutWindow() ImGui::Text("Based on nCine %s (%s)", nc::VersionStrings::Version, nc::VersionStrings::GitBranch); ImGui::Text("nCine compiled on %s at %s", nc::VersionStrings::CompilationDate, nc::VersionStrings::CompilationTime); ImGui::Spacing(); - ImGui::Text("https://ncine.github.io/"); + ImGui::TextLinkOpenURL("https://ncine.github.io/", "https://ncine.github.io/"); ImGui::NewLine(); if (ImGui::Button(Labels::Close))