mirror of
https://github.com/MewoLab/AquaDX.git
synced 2026-02-10 17:37:27 +08:00
[+] Custom shop name in photo
This commit is contained in:
@@ -292,6 +292,7 @@
|
|||||||
<Compile Include="Performance\ImproveLoadSpeed.cs" />
|
<Compile Include="Performance\ImproveLoadSpeed.cs" />
|
||||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||||
<Compile Include="Main.cs" />
|
<Compile Include="Main.cs" />
|
||||||
|
<Compile Include="UX\CustomPlaceName.cs" />
|
||||||
<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" />
|
||||||
|
|||||||
@@ -48,6 +48,8 @@ ExtendTimer=true
|
|||||||
ImmediateSave=true
|
ImmediateSave=true
|
||||||
# Prevent accidental touch of the Test button
|
# Prevent accidental touch of the Test button
|
||||||
TestProof=false
|
TestProof=false
|
||||||
|
# Custom shop name in photo (SDEZ only)
|
||||||
|
CustomPlaceName=""
|
||||||
|
|
||||||
[Performance]
|
[Performance]
|
||||||
# Disable some useless delays to speed up the game boot process
|
# Disable some useless delays to speed up the game boot process
|
||||||
|
|||||||
@@ -54,6 +54,8 @@ ExtendTimer=true
|
|||||||
ImmediateSave=true
|
ImmediateSave=true
|
||||||
# 防止你不小心按到 Test 键,Test 键需要长按 1 秒才能生效
|
# 防止你不小心按到 Test 键,Test 键需要长按 1 秒才能生效
|
||||||
TestProof=false
|
TestProof=false
|
||||||
|
# 自定义拍照的店铺名称(仅 SDEZ)
|
||||||
|
CustomPlaceName=""
|
||||||
|
|
||||||
# ===================================
|
# ===================================
|
||||||
# 一些性能优化
|
# 一些性能优化
|
||||||
|
|||||||
@@ -34,6 +34,7 @@ namespace AquaMai
|
|||||||
public bool LoadLocalBga { get; set; }
|
public bool LoadLocalBga { get; set; }
|
||||||
public bool TestProof { get; set; }
|
public bool TestProof { get; set; }
|
||||||
public string CustomVersionString { get; set; }
|
public string CustomVersionString { get; set; }
|
||||||
|
public string CustomPlaceName { get; set; }
|
||||||
public string ExecOnIdle { get; set; }
|
public string ExecOnIdle { get; set; }
|
||||||
public string ExecOnEntry { get; set; }
|
public string ExecOnEntry { get; set; }
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -79,6 +79,7 @@ namespace AquaMai
|
|||||||
// These don't need to be configurable
|
// These don't need to be configurable
|
||||||
Patch(typeof(FixCharaCrash));
|
Patch(typeof(FixCharaCrash));
|
||||||
Patch(typeof(CustomVersionString));
|
Patch(typeof(CustomVersionString));
|
||||||
|
Patch(typeof(CustomPlaceName));
|
||||||
Patch(typeof(DisableReboot));
|
Patch(typeof(DisableReboot));
|
||||||
Patch(typeof(RunCommandOnEvents));
|
Patch(typeof(RunCommandOnEvents));
|
||||||
Patch(typeof(BasicFix));
|
Patch(typeof(BasicFix));
|
||||||
|
|||||||
20
AquaMai/UX/CustomPlaceName.cs
Normal file
20
AquaMai/UX/CustomPlaceName.cs
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
using HarmonyLib;
|
||||||
|
using Manager;
|
||||||
|
|
||||||
|
namespace AquaMai.UX;
|
||||||
|
|
||||||
|
public class CustomPlaceName
|
||||||
|
{
|
||||||
|
[HarmonyPostfix]
|
||||||
|
[HarmonyPatch(typeof(OperationManager), "CheckAuth_Proc")]
|
||||||
|
public static void CheckAuth_Proc(OperationManager __instance)
|
||||||
|
{
|
||||||
|
if (string.IsNullOrEmpty(AquaMai.AppConfig.UX.CustomPlaceName))
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
__instance.ShopData.ShopName = AquaMai.AppConfig.UX.CustomPlaceName;
|
||||||
|
__instance.ShopData.ShopNickName = AquaMai.AppConfig.UX.CustomPlaceName;
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user