mirror of
https://github.com/MewoLab/AquaDX.git
synced 2026-02-12 13:27:28 +08:00
[O] Make HideMask separate component
This commit is contained in:
@@ -336,6 +336,7 @@ DEBUG</DefineConstants>
|
|||||||
<Compile Include="UX\CustomVersionString.cs" />
|
<Compile Include="UX\CustomVersionString.cs" />
|
||||||
<Compile Include="UX\DemoMaster.cs" />
|
<Compile Include="UX\DemoMaster.cs" />
|
||||||
<Compile Include="UX\ExtendTimer.cs" />
|
<Compile Include="UX\ExtendTimer.cs" />
|
||||||
|
<Compile Include="UX\HideMask.cs" />
|
||||||
<Compile Include="UX\HideSelfMadeCharts.cs" />
|
<Compile Include="UX\HideSelfMadeCharts.cs" />
|
||||||
<Compile Include="UX\ImmediateSave.cs" />
|
<Compile Include="UX\ImmediateSave.cs" />
|
||||||
<Compile Include="UX\LoadAssetsPng.cs" />
|
<Compile Include="UX\LoadAssetsPng.cs" />
|
||||||
|
|||||||
@@ -14,6 +14,8 @@ UnlockUtage=true
|
|||||||
[UX]
|
[UX]
|
||||||
# Single player: Show 1P only, at the center of the screen
|
# Single player: Show 1P only, at the center of the screen
|
||||||
SinglePlayer=true
|
SinglePlayer=true
|
||||||
|
# Remove the circle mask in the game
|
||||||
|
HideMask=true
|
||||||
# Set the version string displayed at the top-right corner of the screen
|
# Set the version string displayed at the top-right corner of the screen
|
||||||
CustomVersionString=""
|
CustomVersionString=""
|
||||||
# Deprecated: Use `LoadAssetsPng` instead
|
# Deprecated: Use `LoadAssetsPng` instead
|
||||||
|
|||||||
@@ -17,6 +17,8 @@ UnlockUtage=true
|
|||||||
[UX]
|
[UX]
|
||||||
# 单人模式,不显示 2P
|
# 单人模式,不显示 2P
|
||||||
SinglePlayer=true
|
SinglePlayer=true
|
||||||
|
# 移除遮罩
|
||||||
|
HideMask=true
|
||||||
# 把右上角的版本更改为自定义文本
|
# 把右上角的版本更改为自定义文本
|
||||||
CustomVersionString=""
|
CustomVersionString=""
|
||||||
# 已弃用,请使用 LoadAssetsPng
|
# 已弃用,请使用 LoadAssetsPng
|
||||||
|
|||||||
@@ -26,6 +26,7 @@ namespace AquaMai
|
|||||||
{
|
{
|
||||||
public string Locale { get; set; }
|
public string Locale { get; set; }
|
||||||
public bool SinglePlayer { get; set; }
|
public bool SinglePlayer { get; set; }
|
||||||
|
public bool HideMask { get; set; }
|
||||||
public bool LoadAssetsPng { get; set; }
|
public bool LoadAssetsPng { get; set; }
|
||||||
public bool LoadJacketPng { get; set; }
|
public bool LoadJacketPng { get; set; }
|
||||||
public bool LoadAssetBundleWithoutManifest { get; set; }
|
public bool LoadAssetBundleWithoutManifest { get; set; }
|
||||||
|
|||||||
14
AquaMai/UX/HideMask.cs
Normal file
14
AquaMai/UX/HideMask.cs
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
using HarmonyLib;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
namespace AquaMai.UX;
|
||||||
|
|
||||||
|
public class HideMask
|
||||||
|
{
|
||||||
|
[HarmonyPrefix]
|
||||||
|
[HarmonyPatch(typeof(Main.GameMain), "LateInitialize", typeof(MonoBehaviour), typeof(Transform), typeof(Transform))]
|
||||||
|
public static void LateInitialize(MonoBehaviour gameMainObject)
|
||||||
|
{
|
||||||
|
GameObject.Find("Mask").SetActive(false);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -16,13 +16,10 @@ namespace AquaMai.UX
|
|||||||
{
|
{
|
||||||
[HarmonyPrefix]
|
[HarmonyPrefix]
|
||||||
[HarmonyPatch(typeof(Main.GameMain), "LateInitialize", new Type[] { typeof(MonoBehaviour), typeof(Transform), typeof(Transform) })]
|
[HarmonyPatch(typeof(Main.GameMain), "LateInitialize", new Type[] { typeof(MonoBehaviour), typeof(Transform), typeof(Transform) })]
|
||||||
public static bool LateInitialize(MonoBehaviour gameMainObject, ref Transform left, ref Transform right)
|
public static void LateInitialize(MonoBehaviour gameMainObject, ref Transform left, ref Transform right)
|
||||||
{
|
{
|
||||||
left.transform.position = Vector3.zero;
|
left.transform.position = Vector3.zero;
|
||||||
right.localScale = Vector3.zero;
|
right.localScale = Vector3.zero;
|
||||||
GameObject.Find("Mask").SetActive(false);
|
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[HarmonyPrefix]
|
[HarmonyPrefix]
|
||||||
|
|||||||
Reference in New Issue
Block a user