mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-13 12:14:16 +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.Storage.Assets;
|
||||||
using Dalamud.Utility;
|
using Dalamud.Utility;
|
||||||
|
|
||||||
|
using FFXIVClientStructs.FFXIV.Client.UI;
|
||||||
|
|
||||||
using ImGuiNET;
|
using ImGuiNET;
|
||||||
|
|
||||||
namespace Dalamud.Interface.Internal.Windows;
|
namespace Dalamud.Interface.Internal.Windows;
|
||||||
|
|
@ -229,6 +231,9 @@ internal sealed class ChangelogWindow : Window, IDisposable
|
||||||
public override void PostDraw()
|
public override void PostDraw()
|
||||||
{
|
{
|
||||||
ImGui.PopStyleVar(3);
|
ImGui.PopStyleVar(3);
|
||||||
|
|
||||||
|
this.ResetMovieTimer();
|
||||||
|
|
||||||
base.PostDraw();
|
base.PostDraw();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -572,6 +577,23 @@ internal sealed class ChangelogWindow : Window, IDisposable
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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
|
private static class FtueLevels
|
||||||
{
|
{
|
||||||
public static class AutoUpdate
|
public static class AutoUpdate
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue