fix: force dummy window onto main viewport
This commit is contained in:
parent
0e0a0143d2
commit
98529ee9b1
|
@ -86,7 +86,9 @@ namespace PeepingTom {
|
||||||
| ImGuiWindowFlags.NoSavedSettings
|
| ImGuiWindowFlags.NoSavedSettings
|
||||||
| ImGuiWindowFlags.NoDecoration
|
| ImGuiWindowFlags.NoDecoration
|
||||||
| ImGuiWindowFlags.NoScrollWithMouse;
|
| ImGuiWindowFlags.NoScrollWithMouse;
|
||||||
|
ImGuiHelpers.ForceNextWindowMainViewport();
|
||||||
if (!ImGui.Begin("Peeping Tom targeting indicator dummy window", flags)) {
|
if (!ImGui.Begin("Peeping Tom targeting indicator dummy window", flags)) {
|
||||||
|
ImGui.End();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -119,6 +121,7 @@ namespace PeepingTom {
|
||||||
private void ShowSettings() {
|
private void ShowSettings() {
|
||||||
ImGui.SetNextWindowSize(new Vector2(700, 250));
|
ImGui.SetNextWindowSize(new Vector2(700, 250));
|
||||||
if (!ImGui.Begin($"{this.Plugin.Name} settings", ref this._settingsOpen, ImGuiWindowFlags.NoResize)) {
|
if (!ImGui.Begin($"{this.Plugin.Name} settings", ref this._settingsOpen, ImGuiWindowFlags.NoResize)) {
|
||||||
|
ImGui.End();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -426,6 +429,7 @@ namespace PeepingTom {
|
||||||
|
|
||||||
ImGui.SetNextWindowSize(new Vector2(290, 195), ImGuiCond.FirstUseEver);
|
ImGui.SetNextWindowSize(new Vector2(290, 195), ImGuiCond.FirstUseEver);
|
||||||
if (!ImGui.Begin(this.Plugin.Name, ref this._wantsOpen, flags)) {
|
if (!ImGui.Begin(this.Plugin.Name, ref this._wantsOpen, flags)) {
|
||||||
|
ImGui.End();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user