mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 10:17:22 +01:00
feat: Stop the movie from interrupting our beautiful beautiful changelog (#1894)
This commit is contained in:
parent
4a3e6df89e
commit
8617c9c16d
1 changed files with 22 additions and 0 deletions
|
|
@ -23,6 +23,8 @@ using Dalamud.Plugin.Services;
|
|||
using Dalamud.Storage.Assets;
|
||||
using Dalamud.Utility;
|
||||
|
||||
using FFXIVClientStructs.FFXIV.Client.UI;
|
||||
|
||||
using ImGuiNET;
|
||||
|
||||
namespace Dalamud.Interface.Internal.Windows;
|
||||
|
|
@ -229,6 +231,9 @@ internal sealed class ChangelogWindow : Window, IDisposable
|
|||
public override void PostDraw()
|
||||
{
|
||||
ImGui.PopStyleVar(3);
|
||||
|
||||
this.ResetMovieTimer();
|
||||
|
||||
base.PostDraw();
|
||||
}
|
||||
|
||||
|
|
@ -571,6 +576,23 @@ internal sealed class ChangelogWindow : Window, IDisposable
|
|||
this.openedThroughEligibility = true;
|
||||
}
|
||||
}
|
||||
|
||||
private unsafe void ResetMovieTimer()
|
||||
{
|
||||
var uiModule = UIModule.Instance();
|
||||
if (uiModule == null)
|
||||
return;
|
||||
|
||||
var agentModule = uiModule->GetAgentModule();
|
||||
if (agentModule == null)
|
||||
return;
|
||||
|
||||
var agentLobby = agentModule->GetAgentLobby();
|
||||
if (agentLobby == null)
|
||||
return;
|
||||
|
||||
agentLobby->IdleTime = 0;
|
||||
}
|
||||
|
||||
private static class FtueLevels
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue