74 lines
1.5 KiB
C#
74 lines
1.5 KiB
C#
// ***********************************************************************
|
||
// 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
|
||
}
|
||
}
|