Skip to content

Commit

Permalink
Use new ImGui TextLinkOpenURL() in the about window
Browse files Browse the repository at this point in the history
- Update copyright dates to 2025
  • Loading branch information
encelo committed Jan 10, 2025
1 parent d870d21 commit 1e56ca3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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")
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -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"),
Expand Down
5 changes: 3 additions & 2 deletions src/gui/UserInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}

Expand Down Expand Up @@ -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();

Expand All @@ -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))
Expand Down

0 comments on commit 1e56ca3

Please sign in to comment.