Files
plugin-library/Assets/Domain/Test/HotUpdate/Application/UIViews/UILoadingView.cs
2025-09-24 15:34:24 +08:00

47 lines
909 B
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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 = "";
}
}
}