fix: swap installer buttons

This commit is contained in:
goat 2021-01-12 13:48:39 +01:00
parent 4b36933b20
commit 48dcdfd574

View file

@ -212,15 +212,18 @@ namespace Dalamud.Plugin
ImGui.SameLine();
if (ImGui.Button(Loc.Localize("Close", "Close"))) {
windowOpen = false;
}
ImGui.SameLine(ImGui.GetWindowWidth() - ImGui.CalcTextSize(Loc.Localize("SettingsInstaller", "Settings")).X - (16 * ImGui.GetIO().FontGlobalScale));
if (ImGui.Button(Loc.Localize("SettingsInstaller", "Settings"))) {
this.dalamud.OpenSettings();
}
var closeText = Loc.Localize("Close", "Close");
ImGui.SameLine(ImGui.GetWindowWidth() - ImGui.CalcTextSize(closeText).X - (16 * ImGui.GetIO().FontGlobalScale));
if (ImGui.Button(closeText)) {
windowOpen = false;
}
if (ImGui.BeginPopupModal(Loc.Localize("InstallerError","Installer failed"), ref this.errorModalDrawing, ImGuiWindowFlags.AlwaysAutoResize)) {
var message = Loc.Localize("InstallerErrorHint",
"The plugin installer ran into an issue or the plugin is incompatible.\nPlease restart the game and report this error on our discord.");