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

60 lines
2.8 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 UISkillPutBinder
{
public static void GetComponents(UISkillPutController window)
{
window.Image_Dark = window.GetComponent<Image>("Image_Dark");
window.Image_CancleSkill = window.GetComponent<Image>("Image_CancleSkill");
window.Button_SkillInfoBg = window.GetComponent<Button>("GameObj_SkillInfo/Button_SkillInfoBg");
window.Image_UI_PosterShadow = window.GetComponent<Image>("GameObj_SkillInfo/Image_UI_PosterShadow");
window.Image_Paintting = window.GetComponent<Image>("GameObj_SkillInfo/Image_Paintting");
window.Image_CharacterLogo = window.GetComponent<Image>("GameObj_SkillInfo/ImageBG/Image_CharacterLogo");
window.Image_SkillInfoLogo = window.GetComponent<Image>("GameObj_SkillInfo/ImageBG/Image_SkillInfoLogo");
window.Text_SkillName = window.GetComponent<TMP_Text>("GameObj_SkillInfo/ImageBG/Image_SkillInfoLogo/Text_SkillName");
window.Text_SkillCD = window.GetComponent<TMP_Text>("GameObj_SkillInfo/ImageBG/ImageSkillCDLogo/Text_SkillCD");
window.Text_SkillCDSecond = window.GetComponent<TMP_Text>("GameObj_SkillInfo/ImageBG/ImageSkillCDLogo/Text_SkillCDSecond");
window.Text_SkillInfoDes = window.GetComponent<TMP_Text>("GameObj_SkillInfo/ImageBG/Text_SkillInfoDes");
window.Image_Area0 = window.GetComponent<Image>("GameObj_SkillInfo/ImageBG/Image_Area0");
window.Image_Area1 = window.GetComponent<Image>("GameObj_SkillInfo/ImageBG/Image_Area1");
window.Button_CancelSkill = window.GetComponent<Button>("GameObj_SkillInfo/ImageBG/Button_CancelSkill");
window.Image_Profession = window.GetComponent<Image>("GameObj_SkillInfo/Image_Profession");
window.Image_Job = window.GetComponent<Image>("GameObj_SkillInfo/Image_Profession/Image_Job");
window.Text_CharacterName = window.GetComponent<TMP_Text>("GameObj_SkillInfo/Image_Profession/Text_CharacterName");
window.Text_EnglishName = window.GetComponent<TMP_Text>("GameObj_SkillInfo/Image_Profession/Text_EnglishName");
}
/****** 定义变量语句 ******
public Image Image_Dark;
public Image Image_CancleSkill;
public Button Button_SkillInfoBg;
public Image Image_UI_PosterShadow;
public Image Image_Paintting;
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_Area0;
public Image Image_Area1;
public Button Button_CancelSkill;
public Image Image_Profession;
public Image Image_Job;
public TMP_Text Text_CharacterName;
public TMP_Text Text_EnglishName;
****** End ******/
}