mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-13 20:24:16 +01:00
feat: safe mode warning in installer
This commit is contained in:
parent
d53416d35b
commit
c5df065fdd
1 changed files with 27 additions and 0 deletions
|
|
@ -981,6 +981,27 @@ namespace Dalamud.Interface.Internal.Windows.PluginInstaller
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var pm = Service<PluginManager>.Get();
|
||||||
|
if (pm.SafeMode)
|
||||||
|
{
|
||||||
|
ImGuiHelpers.ScaledDummy(10);
|
||||||
|
|
||||||
|
ImGui.PushStyleColor(ImGuiCol.Text, ImGuiColors.DalamudOrange);
|
||||||
|
ImGui.PushFont(InterfaceManager.IconFont);
|
||||||
|
ImGuiHelpers.CenteredText(FontAwesomeIcon.ExclamationTriangle.ToIconString());
|
||||||
|
ImGui.PopFont();
|
||||||
|
ImGui.PopStyleColor();
|
||||||
|
|
||||||
|
var lines = Locs.SafeModeDisclaimer.Split('\n');
|
||||||
|
foreach (var line in lines)
|
||||||
|
{
|
||||||
|
ImGuiHelpers.CenteredText(line);
|
||||||
|
}
|
||||||
|
|
||||||
|
ImGuiHelpers.ScaledDummy(10);
|
||||||
|
ImGui.Separator();
|
||||||
|
}
|
||||||
|
|
||||||
ImGui.PushStyleVar(ImGuiStyleVar.ItemSpacing, ImGuiHelpers.ScaledVector2(1, 3));
|
ImGui.PushStyleVar(ImGuiStyleVar.ItemSpacing, ImGuiHelpers.ScaledVector2(1, 3));
|
||||||
|
|
||||||
var groupInfo = this.categoryManager.GroupList[this.categoryManager.CurrentGroupIdx];
|
var groupInfo = this.categoryManager.GroupList[this.categoryManager.CurrentGroupIdx];
|
||||||
|
|
@ -2817,6 +2838,12 @@ namespace Dalamud.Interface.Internal.Windows.PluginInstaller
|
||||||
public static string ErrorModalButton_Ok => Loc.Localize("OK", "OK");
|
public static string ErrorModalButton_Ok => Loc.Localize("OK", "OK");
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
#region Other
|
||||||
|
|
||||||
|
public static string SafeModeDisclaimer => Loc.Localize("SafeModeDisclaimer", "You enabled safe mode, no plugins will be loaded.\nYou may delete plugins from the \"Installed plugins\" tab.\nSimply restart your game to disable safe mode.");
|
||||||
|
|
||||||
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue