mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-13 20:24:16 +01:00
fix: swap installer buttons
This commit is contained in:
parent
4b36933b20
commit
48dcdfd574
1 changed files with 8 additions and 5 deletions
|
|
@ -212,15 +212,18 @@ namespace Dalamud.Plugin
|
||||||
|
|
||||||
ImGui.SameLine();
|
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"))) {
|
if (ImGui.Button(Loc.Localize("SettingsInstaller", "Settings"))) {
|
||||||
this.dalamud.OpenSettings();
|
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)) {
|
if (ImGui.BeginPopupModal(Loc.Localize("InstallerError","Installer failed"), ref this.errorModalDrawing, ImGuiWindowFlags.AlwaysAutoResize)) {
|
||||||
var message = Loc.Localize("InstallerErrorHint",
|
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.");
|
"The plugin installer ran into an issue or the plugin is incompatible.\nPlease restart the game and report this error on our discord.");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue