eorzea-votes/client/EorzeaVotes/Ui/Tabs/SuggestTab.cs

23 lines
687 B
C#

using System.Diagnostics;
using System.Numerics;
using ImGuiNET;
namespace EorzeaVotes.Ui.Tabs;
internal class SuggestTab {
internal static void Draw(bool forceOpen) {
if (!ImGuiHelper.BeginTabItem("Suggest a question", forceOpen)) {
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,
});
}
}
}