模糊效果在psv上使用廉价版本

This commit is contained in:
ALIENJACK\alien 2025-01-07 17:01:05 +08:00
parent 5a303cf1e8
commit c0ae876581
2 changed files with 8 additions and 1 deletions

View File

@ -190,7 +190,7 @@ namespace Coffee.UIExtensions
/// <summary>
/// Blur effect mode(readonly).
/// </summary>
public BlurMode blurMode { get { return m_BlurMode; } }
public BlurMode blurMode { get { return m_BlurMode; }set { m_BlurMode = value; } }
/// <summary>
/// Color for the color effect.

View File

@ -1,5 +1,6 @@
using AxibugEmuOnline.Client.ClientCore;
using AxibugEmuOnline.Client.UI;
using Coffee.UIExtensions;
using DG.Tweening;
using DG.Tweening.Core;
using DG.Tweening.Plugins.Options;
@ -38,6 +39,12 @@ namespace AxibugEmuOnline.Client
m_mainLayoutPosition = MainMenuRoot.anchoredPosition;
MainMenu.ListenControlAction = true;
romPreviewWraper = new AlphaWraper(XMBCG_For_RomPreviewBigPic, RomPreviewBigPic.GetComponent<CanvasGroup>(), false);
var uiEffect = RomPreviewBigPic.GetComponent<UIEffect>();
if (Application.platform == RuntimePlatform.PSP2)
uiEffect.blurMode = BlurMode.FastBlur;
else
uiEffect.blurMode = BlurMode.DetailBlur;
}
private void Start()