mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-12 16:57:22 +01:00
add warnings for missing optional plugins when respective data is received
This commit is contained in:
parent
90a25c23dc
commit
e1f6d6df24
7 changed files with 56 additions and 8 deletions
|
|
@ -28,6 +28,7 @@ public class SettingsUi : Window, IDisposable
|
|||
private string _lastTab = string.Empty;
|
||||
private bool _openPopupOnAddition;
|
||||
private bool _hideInfoMessages;
|
||||
private bool _disableOptionalPluginsWarnings;
|
||||
|
||||
public SettingsUi(WindowSystem windowSystem,
|
||||
UiShared uiShared, Configuration configuration, ApiController apiController) : base("Mare Synchronos Settings")
|
||||
|
|
@ -46,6 +47,7 @@ public class SettingsUi : Window, IDisposable
|
|||
_uiShared = uiShared;
|
||||
_openPopupOnAddition = _configuration.OpenPopupOnAdd;
|
||||
_hideInfoMessages = _configuration.HideInfoMessages;
|
||||
_disableOptionalPluginsWarnings = _configuration.DisableOptionalPluginWarnings;
|
||||
windowSystem.AddWindow(this);
|
||||
}
|
||||
|
||||
|
|
@ -171,6 +173,12 @@ public class SettingsUi : Window, IDisposable
|
|||
_configuration.Save();
|
||||
}
|
||||
UiShared.DrawHelpText("Enabling this will not print any \"Info\" labeled messages into the game chat.");
|
||||
if (ImGui.Checkbox("Disable optional plugin warnings", ref _disableOptionalPluginsWarnings))
|
||||
{
|
||||
_configuration.DisableOptionalPluginWarnings = _disableOptionalPluginsWarnings;
|
||||
_configuration.Save();
|
||||
}
|
||||
UiShared.DrawHelpText("Enabling this will not print any \"Warning\" labeled messages for missing optional plugins Heels or Customize+ in the game chat.");
|
||||
}
|
||||
|
||||
private void DrawAdministration()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue