2024-08-08 12:19:32 +08:00
|
|
|
using System.ComponentModel;
|
2024-08-14 12:43:12 +08:00
|
|
|
using Cysharp.Threading.Tasks;
|
2024-08-08 12:19:32 +08:00
|
|
|
|
|
|
|
|
public partial class SROptions
|
|
|
|
|
{
|
2024-09-04 16:02:38 +08:00
|
|
|
[Category("UI"), DisplayName("开启战场UITrigger")]
|
|
|
|
|
public static bool Debug_UITriggerRun
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return _bUITriggerRun;
|
|
|
|
|
}
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
_bUITriggerRun = value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
private static bool _bUITriggerRun = true;
|
2024-09-04 18:28:32 +08:00
|
|
|
|
|
|
|
|
[Category("UI"), DisplayName("ButtonUpDrag 上滑Delta")]
|
|
|
|
|
public float MinUpDelta
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return ButtonUpDrag.MinUpDelta;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
ButtonUpDrag.MinUpDelta = value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2024-09-04 16:02:38 +08:00
|
|
|
|
2024-08-08 12:19:32 +08:00
|
|
|
[Category("UI")]
|
|
|
|
|
[DisplayName("展示UI堆栈")]
|
|
|
|
|
public void ShowUIStack()
|
|
|
|
|
{
|
|
|
|
|
var stack = UIManager.Instance.UiWindowStack;
|
|
|
|
|
foreach (var window in stack)
|
|
|
|
|
{
|
|
|
|
|
DebugUtil.LogError("UIWindow:" + window.WindowName);
|
|
|
|
|
}
|
|
|
|
|
}
|
2024-08-14 12:43:12 +08:00
|
|
|
|
|
|
|
|
[Category("UI")]
|
|
|
|
|
[DisplayName("展示白屏过场")]
|
|
|
|
|
public async void ShowWhiteTransition()
|
|
|
|
|
{
|
|
|
|
|
await ShowTransitionMgr.Instance.EnterWhiteTransition();
|
|
|
|
|
await ShowTransitionMgr.Instance.EnterWhite();
|
|
|
|
|
await UniTask.Delay(1000);
|
|
|
|
|
await ShowTransitionMgr.Instance.ExitWhite();
|
|
|
|
|
ShowTransitionMgr.Instance.ExitTransition();
|
|
|
|
|
}
|
2024-08-08 12:19:32 +08:00
|
|
|
}
|