diff --git a/Dalamud/Interface/Internal/Windows/PluginInstaller/PluginInstallerWindow.cs b/Dalamud/Interface/Internal/Windows/PluginInstaller/PluginInstallerWindow.cs index 8f0d1a7d2..9c2ad9bbc 100644 --- a/Dalamud/Interface/Internal/Windows/PluginInstaller/PluginInstallerWindow.cs +++ b/Dalamud/Interface/Internal/Windows/PluginInstaller/PluginInstallerWindow.cs @@ -981,6 +981,27 @@ namespace Dalamud.Interface.Internal.Windows.PluginInstaller return; } + var pm = Service.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)); 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"); #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 } } }