fix: set window size
This commit is contained in:
parent
2b0ae39b9b
commit
8b015ae300
|
@ -1,5 +1,6 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
using System.Numerics;
|
||||||
using Dalamud.Interface;
|
using Dalamud.Interface;
|
||||||
using ImGuiNET;
|
using ImGuiNET;
|
||||||
using SoundFilter.Config;
|
using SoundFilter.Config;
|
||||||
|
@ -32,6 +33,8 @@ namespace SoundFilter.Ui {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ImGui.SetNextWindowSize(new Vector2(500, 450), ImGuiCond.FirstUseEver);
|
||||||
|
|
||||||
var windowTitle = string.Format(Language.SettingsWindowTitle, SoundFilterPlugin.Name);
|
var windowTitle = string.Format(Language.SettingsWindowTitle, SoundFilterPlugin.Name);
|
||||||
if (!ImGui.Begin($"{windowTitle}###soundfilter-settings", ref this._showWindow)) {
|
if (!ImGui.Begin($"{windowTitle}###soundfilter-settings", ref this._showWindow)) {
|
||||||
ImGui.End();
|
ImGui.End();
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
using System.Numerics;
|
||||||
using Dalamud.Interface;
|
using Dalamud.Interface;
|
||||||
using ImGuiNET;
|
using ImGuiNET;
|
||||||
using SoundFilter.Resources;
|
using SoundFilter.Resources;
|
||||||
|
@ -19,6 +20,8 @@ namespace SoundFilter.Ui {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ImGui.SetNextWindowSize(new Vector2(500, 450), ImGuiCond.FirstUseEver);
|
||||||
|
|
||||||
if (!ImGui.Begin(Language.LogWindowTitle, ref this.Plugin.Config.ShowLog)) {
|
if (!ImGui.Begin(Language.LogWindowTitle, ref this.Plugin.Config.ShowLog)) {
|
||||||
this.Plugin.Config.Save();
|
this.Plugin.Config.Save();
|
||||||
ImGui.End();
|
ImGui.End();
|
||||||
|
|
Loading…
Reference in New Issue