forked from liza/Questionable
Always skip credits if plugin is active, as they're after duties so the plugin is never 'running'
This commit is contained in:
parent
fa25db7be0
commit
e45c05a181
@ -741,9 +741,6 @@ internal sealed class GameUiController : IDisposable
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
private unsafe void CreditScrollPostSetup(AddonEvent type, AddonArgs args)
|
private unsafe void CreditScrollPostSetup(AddonEvent type, AddonArgs args)
|
||||||
{
|
{
|
||||||
if (!ShouldHandleUiInteractions)
|
|
||||||
return;
|
|
||||||
|
|
||||||
_logger.LogInformation("Closing Credits sequence");
|
_logger.LogInformation("Closing Credits sequence");
|
||||||
AtkUnitBase* addon = (AtkUnitBase*)args.Addon;
|
AtkUnitBase* addon = (AtkUnitBase*)args.Addon;
|
||||||
addon->FireCallbackInt(-2);
|
addon->FireCallbackInt(-2);
|
||||||
@ -754,9 +751,6 @@ internal sealed class GameUiController : IDisposable
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
private unsafe void CreditPostSetup(AddonEvent type, AddonArgs args)
|
private unsafe void CreditPostSetup(AddonEvent type, AddonArgs args)
|
||||||
{
|
{
|
||||||
if (!ShouldHandleUiInteractions)
|
|
||||||
return;
|
|
||||||
|
|
||||||
_logger.LogInformation("Closing Credits sequence");
|
_logger.LogInformation("Closing Credits sequence");
|
||||||
AtkUnitBase* addon = (AtkUnitBase*)args.Addon;
|
AtkUnitBase* addon = (AtkUnitBase*)args.Addon;
|
||||||
addon->FireCallbackInt(-2);
|
addon->FireCallbackInt(-2);
|
||||||
@ -764,9 +758,6 @@ internal sealed class GameUiController : IDisposable
|
|||||||
|
|
||||||
private unsafe void CreditPlayerPostSetup(AddonEvent type, AddonArgs args)
|
private unsafe void CreditPlayerPostSetup(AddonEvent type, AddonArgs args)
|
||||||
{
|
{
|
||||||
if (!ShouldHandleUiInteractions)
|
|
||||||
return;
|
|
||||||
|
|
||||||
_logger.LogInformation("Closing CreditPlayer");
|
_logger.LogInformation("Closing CreditPlayer");
|
||||||
AtkUnitBase* addon = (AtkUnitBase*)args.Addon;
|
AtkUnitBase* addon = (AtkUnitBase*)args.Addon;
|
||||||
addon->Close(true);
|
addon->Close(true);
|
||||||
|
Loading…
Reference in New Issue
Block a user