cull(engine-cleanup): pass-8 phase-2 cascade round 2 after GachaUI stub
This commit is contained in:
@@ -1,31 +0,0 @@
|
||||
using Cute;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Wizard.Lottery;
|
||||
|
||||
public class LotteryApplyDialog : MonoBehaviour
|
||||
{
|
||||
|
||||
private LotteryApplyData _data;
|
||||
|
||||
public static string GetLotteryTexturePath(LotteryApplyData data, bool isFetch)
|
||||
{
|
||||
return Toolbox.ResourcesManager.GetAssetTypePath(data.BannerFileName, ResourcesManager.AssetLoadPathType.Lottery, isFetch);
|
||||
}
|
||||
|
||||
public static DialogBase Create(LotteryApplyData data, bool autoClose = true)
|
||||
{
|
||||
DialogBase dialogBase = UIManager.GetInstance().CreateDialogClose();
|
||||
dialogBase.SetSize(DialogBase.Size.M);
|
||||
dialogBase.SetTitleLabel(data.DialogTitle);
|
||||
dialogBase.SetButtonLayout(DialogBase.ButtonLayout.OkBtn);
|
||||
if (autoClose)
|
||||
{
|
||||
dialogBase.AutoClose(5f);
|
||||
}
|
||||
GameObject gameObject = Object.Instantiate(UIManager.GetInstance()._lotteryApplyPrefab);
|
||||
gameObject.GetComponent<LotteryApplyDialog>()._data = data;
|
||||
dialogBase.SetObj(gameObject);
|
||||
return dialogBase;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user