81 lines
1.9 KiB
C#
81 lines
1.9 KiB
C#
|
|
using System.Collections;
|
|||
|
|
using System.Collections.Generic;
|
|||
|
|
using TMPro;
|
|||
|
|
using UnityEngine;
|
|||
|
|
using UnityEngine.UI;
|
|||
|
|
using UnityEngine.UIElements;
|
|||
|
|
using Button = UnityEngine.UI.Button;
|
|||
|
|
using Image = UnityEngine.UI.Image;
|
|||
|
|
using Toggle = UnityEngine.UI.Toggle;
|
|||
|
|
using ScrollView = PhxhSDK.PhxhScrollView;
|
|||
|
|
using Framework;
|
|||
|
|
using PhxhSDK;
|
|||
|
|
|
|||
|
|
public class UI_GiftItemController : UIWindow
|
|||
|
|
{
|
|||
|
|
//UI GameObj
|
|||
|
|
///Auto Gen Start///
|
|||
|
|
public Button Button_Close_Normal;
|
|||
|
|
public TMP_Text Text_ItemName_Normal;
|
|||
|
|
public Image Image_ItemIcon_Normal;
|
|||
|
|
public TMP_Text Text_Num_Normal;
|
|||
|
|
public TMP_Text Text_UsingIntroduce_Normal;
|
|||
|
|
public RecycleView ScrollView_ItemList_normal;
|
|||
|
|
public Button Button_Use_Normal;
|
|||
|
|
public Button Button_Close_Special;
|
|||
|
|
public TMP_Text Text_ItemName_Special;
|
|||
|
|
public Image Image_ItemIcon_Special;
|
|||
|
|
public TMP_Text Text_Num_Special;
|
|||
|
|
public TMP_Text Text_UsingIntroduce_Special;
|
|||
|
|
public RecycleView ScrollView_ItemList_special;
|
|||
|
|
public TMP_Text Text_GainDescript;
|
|||
|
|
public TMP_Text Text_ItemNum;
|
|||
|
|
public Button Button_Decrease;
|
|||
|
|
public Button Button_Add;
|
|||
|
|
public Button Button_Zero;
|
|||
|
|
public TMP_Text Text_Zero;
|
|||
|
|
public Button Button_Max;
|
|||
|
|
public TMP_Text Text_Max;
|
|||
|
|
public Button Button_Use_Special;
|
|||
|
|
public Image Image_TopBlackBar;
|
|||
|
|
public Image Image_BottomBlackBar;
|
|||
|
|
|
|||
|
|
///Auto Gen End///
|
|||
|
|
|
|||
|
|
// deal with input data
|
|||
|
|
public override void PreLoad(object data = null)
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
// Use this for initialization
|
|||
|
|
public override void OnInit()
|
|||
|
|
{
|
|||
|
|
//bind UI GameObj
|
|||
|
|
UI_GiftItemBinder.GetComponents(this);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
//invoke when open window
|
|||
|
|
protected override void OnShowWindow(object data = null)
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
//invoke when reload window
|
|||
|
|
protected override void OnReloadWindow(object data = null)
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
//invoke when close window
|
|||
|
|
protected override void OnHideWindow()
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
//invoke when destroy
|
|||
|
|
public override void OnRelease()
|
|||
|
|
{
|
|||
|
|
base.OnRelease();
|
|||
|
|
}
|
|||
|
|
}
|