NLDClient-yudde/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/UIBinder/UIPosterAndSkillInfoBinder.cs

48 lines
2.4 KiB
C#

using System.Collections;
using System.Collections.Generic;
using TMPro;
using Framework;
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;
public class UIPosterAndSkillInfoBinder
{
public static void GetComponents(UIPosterAndSkillInfoController window)
{
window.Button_SkillInfoBg = window.GetComponent<Button>("GameObj_SkillInfo/Button_SkillInfoBg");
window.Image_UI_PosterShadow = window.GetComponent<Image>("GameObj_SkillInfo/Image_UI_PosterShadow");
window.Image_StandPaintting = window.GetComponent<Image>("GameObj_SkillInfo/Image_StandPaintting");
window.Image_CharacterLogo = window.GetComponent<Image>("GameObj_SkillInfo/Image_StandPaintting/ImageBG/Image_CharacterLogo");
window.Image_SkillInfoLogo = window.GetComponent<Image>("GameObj_SkillInfo/Image_StandPaintting/ImageBG/Image_SkillInfoLogo");
window.Text_SkillName = window.GetComponent<TMP_Text>("GameObj_SkillInfo/Image_StandPaintting/ImageBG/Image_SkillInfoLogo/Text_SkillName");
window.Text_SkillCD = window.GetComponent<TMP_Text>("GameObj_SkillInfo/Image_StandPaintting/ImageBG/ImageSkillCDLogo/Text_SkillCD");
window.Text_SkillCDSecond = window.GetComponent<TMP_Text>("GameObj_SkillInfo/Image_StandPaintting/ImageBG/ImageSkillCDLogo/Text_SkillCDSecond");
window.Text_SkillInfoDes = window.GetComponent<TMP_Text>("GameObj_SkillInfo/Image_StandPaintting/ImageBG/Text_SkillInfoDes");
window.Image_Profession = window.GetComponent<Image>("GameObj_SkillInfo/Image_StandPaintting/Image_Profession/Image_Job");
window.Text_CharacterName = window.GetComponent<TMP_Text>("GameObj_SkillInfo/Image_StandPaintting/Image_Profession/Text_CharacterName");
window.Text_EnglishName = window.GetComponent<TMP_Text>("GameObj_SkillInfo/Image_StandPaintting/Image_Profession/Text_EnglishName");
}
/****** 定义变量语句 ******
public Button Button_SkillInfoBg;
public Image Image_UI_PosterShadow;
public Image Image_StandPaintting;
public Image Image_CharacterLogo;
public Image Image_SkillInfoLogo;
public TMP_Text Text_SkillName;
public TMP_Text Text_SkillCD;
public TMP_Text Text_SkillCDSecond;
public TMP_Text Text_SkillInfoDes;
public Image Image_Profession;
public TMP_Text Text_CharacterName;
public TMP_Text Text_EnglishName;
****** End ******/
}