mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 10:17:22 +01:00
feat: remove welcome window
This commit is contained in:
parent
a325eeaa09
commit
85ca70f96e
2 changed files with 0 additions and 26 deletions
|
|
@ -31,8 +31,6 @@ namespace Dalamud
|
|||
|
||||
public Dictionary<string, object> PluginConfigurations { get; set; }
|
||||
|
||||
public bool WelcomeGuideDismissed;
|
||||
|
||||
public static DalamudConfiguration Load(string path) {
|
||||
return JsonConvert.DeserializeObject<DalamudConfiguration>(File.ReadAllText(path));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -158,7 +158,6 @@ namespace Dalamud {
|
|||
#region Interface
|
||||
|
||||
private bool isImguiDrawDemoWindow = false;
|
||||
private bool isImguiDrawWelcome = true;
|
||||
|
||||
#if DEBUG
|
||||
private bool isImguiDrawDevMenu = true;
|
||||
|
|
@ -244,29 +243,6 @@ namespace Dalamud {
|
|||
|
||||
if (this.isImguiDrawDemoWindow)
|
||||
ImGui.ShowDemoWindow();
|
||||
|
||||
if (!this.Configuration.WelcomeGuideDismissed)
|
||||
{
|
||||
if (!ImGui.Begin("Welcome to XIVLauncher", ImGuiWindowFlags.Modal | ImGuiWindowFlags.NoCollapse | ImGuiWindowFlags.NoResize))
|
||||
{
|
||||
// Early out if the window is collapsed, as an optimization.
|
||||
ImGui.End();
|
||||
}
|
||||
else
|
||||
{
|
||||
ImGui.Text($"dalamud says hello. ({this.assemblyVersion})");
|
||||
ImGui.Spacing();
|
||||
ImGui.Spacing();
|
||||
|
||||
if (ImGui.Button("Close"))
|
||||
{
|
||||
this.Configuration.WelcomeGuideDismissed = true;
|
||||
this.Configuration.Save(this.StartInfo.ConfigurationPath);
|
||||
}
|
||||
|
||||
ImGui.End();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue