1
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
using DG.Tweening;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using TMPro;
|
||||
using UnityEngine.UI;
|
||||
|
||||
namespace Stary.Evo
|
||||
{
|
||||
public class UILoadingView : UIView
|
||||
{
|
||||
#region 控件绑定变量声明,自动生成请勿手改
|
||||
#pragma warning disable 0649
|
||||
[ControlBinding]
|
||||
private TextMeshProUGUI TextDes;
|
||||
[ControlBinding]
|
||||
private Image Aniloading;
|
||||
|
||||
#pragma warning restore 0649
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
public override void OnOpen(object userData)
|
||||
{
|
||||
base.OnOpen(userData);
|
||||
Reset();
|
||||
}
|
||||
|
||||
public void SetLoading(float value, string desc)
|
||||
{
|
||||
TextDes.text = $"{desc} {value * 100:F0}%";
|
||||
}
|
||||
|
||||
public override void OnClose()
|
||||
{
|
||||
base.OnClose();
|
||||
Reset();
|
||||
}
|
||||
|
||||
public void Reset()
|
||||
{
|
||||
|
||||
TextDes.text = "";
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user