2025-05-18 01:04:31 +08:00

74 lines
1.5 KiB
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.

// ***********************************************************************
// Assembly : Game
// Author : Kimch
// Created : 2021-04-22
// Description :
// Last Modified By :
// Last Modified On :
// ***********************************************************************
// <copyright file= "GetFunctionBox.View" company="Kunpo"></copyright>
// <summary></summary>
// ***********************************************************************
namespace G.UI
{
using TMPro;
using UnityEngine;
using UnityEngine.UI;
/// <summary>
///
/// </summary>
partial class GetFunctionBox
{
#region Field
#pragma warning disable CS0649 // 从未对字段“GetKungfuBox._btnConfirm”赋值字段将一直保持其默认值 null
[KUIFlag]
Button _btnConfirm;
[KUIFlag]
Image _imgIcon;
[KUIFlag]
TextMeshProUGUI _tmpName;
#pragma warning restore CS0649 // 从未对字段“GetKungfuBox._imgIcon”赋值字段将一直保持其默认值 null
#endregion
#region Method
/// <summary>
///
/// </summary>
public void InitView()
{
SetViewData();
_btnConfirm.onClick.AddListener(this.OnConfirmBtnClick);
}
/// <summary>
///
/// </summary>
public void RefreshView()
{
if (this.data is FunctionProxy.Function function)
{
_tmpName.text = function.name;
}
}
/// <summary>
///
/// </summary>
public void UpdateView()
{
}
private void OnConfirmBtnClick()
{
CloseWindow(this);
SoundProxy.PlayFxAsync(GlobalDefine.BUTTON_CLICK_SOUND);
}
#endregion
}
}