mirror of https://github.com/hykilpikonna/AquaDX
[+] Restore AutoPlay(Home) and Pause(Enter) for SDGA
parent
489c00ebb0
commit
8db9580ff5
|
@ -277,6 +277,7 @@
|
||||||
</Reference>
|
</Reference>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
<Compile Include="Cheat\DebugFeature.cs" />
|
||||||
<Compile Include="Cheat\MapUnlock.cs" />
|
<Compile Include="Cheat\MapUnlock.cs" />
|
||||||
<Compile Include="Cheat\TicketUnlock.cs" />
|
<Compile Include="Cheat\TicketUnlock.cs" />
|
||||||
<Compile Include="Cheat\UnlockUtage.cs" />
|
<Compile Include="Cheat\UnlockUtage.cs" />
|
||||||
|
|
|
@ -8,6 +8,8 @@ TicketUnlock=true
|
||||||
MapUnlock=true
|
MapUnlock=true
|
||||||
# Unlock Utage without the need of DXRating 10000
|
# Unlock Utage without the need of DXRating 10000
|
||||||
UnlockUtage=true
|
UnlockUtage=true
|
||||||
|
# Restore AutoPlay(Home) and Pause(Enter) for SDGA
|
||||||
|
DebugFeature=true
|
||||||
|
|
||||||
# ===================================
|
# ===================================
|
||||||
# UX: User Experience Improvements
|
# UX: User Experience Improvements
|
||||||
|
|
|
@ -8,6 +8,8 @@ TicketUnlock=true
|
||||||
MapUnlock=true
|
MapUnlock=true
|
||||||
# 不需要万分也可以进宴会场
|
# 不需要万分也可以进宴会场
|
||||||
UnlockUtage=true
|
UnlockUtage=true
|
||||||
|
# 恢复 SDGA 的自动播放(Home)和暂停(Enter)按键
|
||||||
|
DebugFeature=true
|
||||||
|
|
||||||
# ===================================
|
# ===================================
|
||||||
# 用户体验改进
|
# 用户体验改进
|
||||||
|
|
|
@ -0,0 +1,33 @@
|
||||||
|
using System;
|
||||||
|
using HarmonyLib;
|
||||||
|
using Manager;
|
||||||
|
using Process;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
namespace AquaMai.Cheat;
|
||||||
|
|
||||||
|
public class DebugFeature
|
||||||
|
{
|
||||||
|
# if SDGA145
|
||||||
|
private static bool isPause = false;
|
||||||
|
|
||||||
|
[HarmonyPostfix]
|
||||||
|
[HarmonyPatch(typeof(GameProcess), "OnUpdate")]
|
||||||
|
public static void PostGameProcessUpdate(GameProcess __instance, byte ____sequence, MovieController ____gameMovie)
|
||||||
|
{
|
||||||
|
if (____sequence != 4) return;
|
||||||
|
// GameSequence.Play
|
||||||
|
if (Input.GetKeyDown(KeyCode.Home))
|
||||||
|
{
|
||||||
|
GameManager.AutoPlay = (GameManager.AutoPlayMode)((int)(GameManager.AutoPlay + 1) % Enum.GetNames(typeof(GameManager.AutoPlayMode)).Length);
|
||||||
|
}
|
||||||
|
else if (DebugInput.GetKeyDown(KeyCode.Return))
|
||||||
|
{
|
||||||
|
isPause = !isPause;
|
||||||
|
SoundManager.PauseMusic(isPause);
|
||||||
|
____gameMovie.Pause(isPause);
|
||||||
|
NotesManager.Pause(isPause);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
# endif
|
||||||
|
}
|
|
@ -15,6 +15,7 @@ namespace AquaMai
|
||||||
public bool TicketUnlock { get; set; }
|
public bool TicketUnlock { get; set; }
|
||||||
public bool MapUnlock { get; set; }
|
public bool MapUnlock { get; set; }
|
||||||
public bool UnlockUtage { get; set; }
|
public bool UnlockUtage { get; set; }
|
||||||
|
public bool DebugFeature { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public class UXConfig
|
public class UXConfig
|
||||||
|
|
|
@ -12,7 +12,7 @@ namespace AquaMai
|
||||||
public const string Description = "Mod for Sinmai";
|
public const string Description = "Mod for Sinmai";
|
||||||
public const string Author = "Aza";
|
public const string Author = "Aza";
|
||||||
public const string Company = null;
|
public const string Company = null;
|
||||||
public const string Version = "1.0.0";
|
public const string Version = "1.0.1";
|
||||||
public const string DownloadLink = null;
|
public const string DownloadLink = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue