using cfg.ActorCfg;
using Cysharp.Threading.Tasks;
using Framework;
using Gameplay;
using Gameplay.Net;
using PhxhSDK;
using System;
using System.Collections.Generic;
using TMPro;
using UnityEngine;
using Button = UnityEngine.UI.Button;
///
/// 抽卡测试界面
///
public class UIRaffleController : UIWindow
{
///
/// 打开抽卡界面
///
public static async UniTask Open()
{
return await UIManager.Instance.OpenWindow(UINameConst.UIRaffle);
}
///
/// 卡池类型
///
private enum E_NowPoolType
{
///
/// 普通卡池
///
Normal,
Newer,
///
/// 限定卡池
///
Limit,
}
///
/// 抽取数量类型
///
private enum E_GachaCount
{
///
/// 单抽
///
One = 1,
///
/// 十连
///
Ten = 10
}
///
/// 页签
///
private class TabItem : UIGameObjectWrapper
{
private Button btn;
///
/// 选中状态
///
private GameObject goSelect;
private RafflePoolForDisplay raffleData;
///
/// 页签点击回调
///
private readonly Action tabAction;
///
/// 是否选中
///
public bool IsSelect
{
set { goSelect.IsScaleShow(value); }
}
public RafflePoolForDisplay RaffleData
{
get { return raffleData; }
}
public TabItem(GameObject root, Action tab) : base(root, true)
{
tabAction = tab;
btn = GoRoot.GetComponent