mirror of https://github.com/hykilpikonna/AquaDX
[+] Also enable shop name display in SDGA when CustomPlaceName is set
parent
a3afb1a2b8
commit
e3c0fe5e78
|
@ -48,7 +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)
|
# Custom shop name in photo
|
||||||
|
# Also enable shop name display in SDGA
|
||||||
CustomPlaceName=""
|
CustomPlaceName=""
|
||||||
|
|
||||||
[Performance]
|
[Performance]
|
||||||
|
|
|
@ -54,7 +54,8 @@ ExtendTimer=true
|
||||||
ImmediateSave=true
|
ImmediateSave=true
|
||||||
# 防止你不小心按到 Test 键,Test 键需要长按 1 秒才能生效
|
# 防止你不小心按到 Test 键,Test 键需要长按 1 秒才能生效
|
||||||
TestProof=false
|
TestProof=false
|
||||||
# 自定义拍照的店铺名称(仅 SDEZ)
|
# 自定义拍照的店铺名称
|
||||||
|
# 同时在 SDGA 中会启用店铺名称的显示(但是不会在游戏里有设置)
|
||||||
CustomPlaceName=""
|
CustomPlaceName=""
|
||||||
|
|
||||||
# ===================================
|
# ===================================
|
||||||
|
|
|
@ -17,4 +17,16 @@ public class CustomPlaceName
|
||||||
__instance.ShopData.ShopName = AquaMai.AppConfig.UX.CustomPlaceName;
|
__instance.ShopData.ShopName = AquaMai.AppConfig.UX.CustomPlaceName;
|
||||||
__instance.ShopData.ShopNickName = AquaMai.AppConfig.UX.CustomPlaceName;
|
__instance.ShopData.ShopNickName = AquaMai.AppConfig.UX.CustomPlaceName;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[HarmonyPostfix]
|
||||||
|
[HarmonyPatch(typeof(ResultCardBaseController), "Initialize")]
|
||||||
|
public static void Initialize(ResultCardBaseController __instance)
|
||||||
|
{
|
||||||
|
if (string.IsNullOrEmpty(AquaMai.AppConfig.UX.CustomPlaceName))
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
__instance.SetVisibleStoreName(true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue