mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
Adding the option to not display Dalamud's welcome message on signin
This commit is contained in:
parent
c526c94545
commit
f649183e08
3 changed files with 15 additions and 2 deletions
|
|
@ -152,6 +152,11 @@ internal sealed class DalamudConfiguration : IServiceType
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool ToggleUiHideDuringGpose { get; set; } = true;
|
public bool ToggleUiHideDuringGpose { get; set; } = true;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or sets a value indicating whether or not a message containing Dalamud's current version and the number of loaded plugins should be sent at login.
|
||||||
|
/// </summary>
|
||||||
|
public bool PrintDalamudWelcomeMsg { get; set; } = true;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets a value indicating whether or not a message containing detailed plugin information should be sent at login.
|
/// Gets or sets a value indicating whether or not a message containing detailed plugin information should be sent at login.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
||||||
|
|
@ -243,8 +243,10 @@ public class ChatHandlers : IServiceType
|
||||||
|
|
||||||
var assemblyVersion = Assembly.GetAssembly(typeof(ChatHandlers)).GetName().Version.ToString();
|
var assemblyVersion = Assembly.GetAssembly(typeof(ChatHandlers)).GetName().Version.ToString();
|
||||||
|
|
||||||
chatGui.Print(string.Format(Loc.Localize("DalamudWelcome", "Dalamud vD{0} loaded."), assemblyVersion)
|
if (this.configuration.PrintDalamudWelcomeMsg) {
|
||||||
+ string.Format(Loc.Localize("PluginsWelcome", " {0} plugin(s) loaded."), pluginManager.InstalledPlugins.Count(x => x.IsLoaded)));
|
chatGui.Print(string.Format(Loc.Localize("DalamudWelcome", "Dalamud vD{0} loaded."), assemblyVersion)
|
||||||
|
+ string.Format(Loc.Localize("PluginsWelcome", " {0} plugin(s) loaded."), pluginManager.InstalledPlugins.Count(x => x.IsLoaded)));
|
||||||
|
}
|
||||||
|
|
||||||
if (this.configuration.PrintPluginsWelcomeMsg)
|
if (this.configuration.PrintPluginsWelcomeMsg)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -50,6 +50,12 @@ public class SettingsTabGeneral : SettingsTab
|
||||||
c => c.DutyFinderChatMessage,
|
c => c.DutyFinderChatMessage,
|
||||||
(v, c) => c.DutyFinderChatMessage = v),
|
(v, c) => c.DutyFinderChatMessage = v),
|
||||||
|
|
||||||
|
new SettingsEntry<bool>(
|
||||||
|
Loc.Localize("DalamudSettingsPrintDalamudWelcomeMsg", "Display Dalamud's welcome message"),
|
||||||
|
Loc.Localize("DalamudSettingsPrintDalamudWelcomeMsgHint", "Display Dalamud's welcome message in FFXIV chat when logging in with a character."),
|
||||||
|
c => c.PrintDalamudWelcomeMsg,
|
||||||
|
(v, c) => c.PrintDalamudWelcomeMsg = v),
|
||||||
|
|
||||||
new SettingsEntry<bool>(
|
new SettingsEntry<bool>(
|
||||||
Loc.Localize("DalamudSettingsPrintPluginsWelcomeMsg", "Display loaded plugins in the welcome message"),
|
Loc.Localize("DalamudSettingsPrintPluginsWelcomeMsg", "Display loaded plugins in the welcome message"),
|
||||||
Loc.Localize("DalamudSettingsPrintPluginsWelcomeMsgHint", "Display loaded plugins in FFXIV chat when logging in with a character."),
|
Loc.Localize("DalamudSettingsPrintPluginsWelcomeMsgHint", "Display loaded plugins in FFXIV chat when logging in with a character."),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue