From 56f31f8c5584e4a7cea4e217b3dcb77555e7bd49 Mon Sep 17 00:00:00 2001 From: Grinch_ Date: Thu, 5 Oct 2023 14:09:55 +0600 Subject: [PATCH] Update about page --- src/interface.cpp | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/interface.cpp b/src/interface.cpp index 9ed9343..87ef46c 100644 --- a/src/interface.cpp +++ b/src/interface.cpp @@ -136,10 +136,23 @@ void UpdateFoundPopup() { } void AboutEditorPopup() { - if (ImGui::Button("Discord server", ImVec2(Utils::GetSize(2)))) { + ImGui::Spacing(); + if (ImGui::Button("Discord", ImVec2(Utils::GetSize(3)))) { ShellExecute(NULL, "open", DISCORD_INVITE, NULL, NULL, SW_SHOWNORMAL); } ImGui::SameLine(); + if (ImGui::Button("GitHub", Utils::GetSize(3))) { + ShellExecute(NULL, "open", GITHUB_LINK, NULL, NULL, SW_SHOWNORMAL); + } + ImGui::SameLine(); + if (ImGui::Button("Patreon", ImVec2(Utils::GetSize(3)))) { + ShellExecute(NULL, "open", PATREON_LINK, NULL, NULL, SW_SHOWNORMAL); + } + if (ImGui::Button("Editor controls", Utils::GetSize(2))) { + Interface.m_PopupMenu.m_Title = "Controls"; + Interface.m_PopupMenu.m_pFunc = ControlsPopup; + } + ImGui::SameLine(); if (ImGui::Button("Check update", Utils::GetSize(2))) { Updater::CheckUpdate(); }