Skip to content

Commit

Permalink
Update about page
Browse files Browse the repository at this point in the history
  • Loading branch information
user-grinch committed Oct 5, 2023
1 parent 8e700ab commit 56f31f8
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion src/interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 56f31f8

Please sign in to comment.