feat: add a suggestions tab

This commit is contained in:
Anna 2024-03-14 15:13:05 -04:00
parent fdcf07f45d
commit eaf0a71b3c
Signed by: anna
GPG Key ID: D0943384CD9F87D1
2 changed files with 23 additions and 0 deletions

View File

@ -211,5 +211,6 @@ internal class PluginUi : IDisposable {
this.QuestionsTab.Draw();
this.SettingsTab.Draw();
SuggestTab.Draw();
}
}

View File

@ -0,0 +1,22 @@
using System.Diagnostics;
using System.Numerics;
using ImGuiNET;
namespace EorzeaVotes.Ui.Tabs;
internal class SuggestTab {
internal static void Draw() {
if (!ImGui.BeginTabItem("Suggest a question")) {
return;
}
ImGui.TextUnformatted("If you have an idea for a question, feel free to submit it using the website below!");
var availX = ImGui.GetContentRegionAvail().X;
if (ImGui.Button("Open suggestion website", new Vector2(availX, 0))) {
Process.Start(new ProcessStartInfo("https://eorzeavotes.anna.lgbt") {
UseShellExecute = true,
});
}
}
}