mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 10:17:22 +01:00
tsm: fix some flickering, don't override game cursor
This commit is contained in:
parent
808f66edc6
commit
d4fc0da7f4
1 changed files with 11 additions and 2 deletions
|
|
@ -142,6 +142,12 @@ internal class TitleScreenMenuWindow : Window, IDisposable
|
|||
var scale = ImGui.GetIO().FontGlobalScale;
|
||||
var entries = this.titleScreenMenu.Entries;
|
||||
|
||||
var hovered = ImGui.IsWindowHovered(
|
||||
ImGuiHoveredFlags.RootAndChildWindows |
|
||||
ImGuiHoveredFlags.AllowWhenBlockedByActiveItem);
|
||||
|
||||
Service<InterfaceManager>.Get().OverrideGameCursor = !hovered;
|
||||
|
||||
switch (this.state)
|
||||
{
|
||||
case State.Show:
|
||||
|
|
@ -187,8 +193,11 @@ internal class TitleScreenMenuWindow : Window, IDisposable
|
|||
i++;
|
||||
}
|
||||
|
||||
if (!ImGui.IsWindowHovered(ImGuiHoveredFlags.RootAndChildWindows |
|
||||
ImGuiHoveredFlags.AllowWhenBlockedByActiveItem))
|
||||
// Don't check for hover if we're in the middle of an animation, as it will cause flickering.
|
||||
if (this.moveEasings.Any(x => !x.Value.IsDone))
|
||||
break;
|
||||
|
||||
if (!hovered)
|
||||
{
|
||||
this.state = State.FadeOut;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue