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

56 lines
2.3 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 SelectSkillPanelBinder
{
public static void GetComponents(SelectSkillPanelController window)
{
window.Image_Cover = window.GetComponent<Image>("Image_Cover");
window.Image_BG = window.GetComponent<Image>("Image_BG");
window.Image_LeftBG = window.GetComponent<Image>("Image_BG/Image_LeftBG");
window.Image_RightBG = window.GetComponent<Image>("Image_BG/Image_RightBG");
window.Text_SkillTitle = window.GetComponent<TMP_Text>("Image_BG/Image_RightBG/Text_SkillTitle");
window.Text_SkillCollingTime = window.GetComponent<TMP_Text>("Image_BG/Image_RightBG/Text_SkillCollingTime");
window.Text_Describe = window.GetComponent<TMP_Text>("Image_BG/Image_RightBG/Text_Describe");
window.Button_Close = window.GetComponent<Button>("Image_BG/Button_Close");
window.Text_CMDSkill = window.GetComponent<TMP_Text>("Image_BG/Text_CMDSkill");
window.Button_ConductTitle = window.GetComponent<Button>("Image_BG/Button_ConductTitle");
window.Button_AttackTitle = window.GetComponent<Button>("Image_BG/Button_AttackTitle");
window.Button_SupportTitle = window.GetComponent<Button>("Image_BG/Button_SupportTitle");
window.Button_Cancel = window.GetComponent<Button>("Button_Cancel");
window.Text_Cancel = window.GetComponent<TMP_Text>("Button_Cancel/Text_Cancel");
window.Button_Confirm = window.GetComponent<Button>("Button_Confirm");
window.Text_Confirm = window.GetComponent<TMP_Text>("Button_Confirm/Text_Confirm");
}
/****** 定义变量语句 ******
public Image Image_Cover;
public Image Image_BG;
public Image Image_LeftBG;
public Image Image_RightBG;
public TMP_Text Text_SkillTitle;
public TMP_Text Text_SkillCollingTime;
public TMP_Text Text_Describe;
public Button Button_Close;
public TMP_Text Text_CMDSkill;
public Button Button_ConductTitle;
public Button Button_AttackTitle;
public Button Button_SupportTitle;
public Button Button_Cancel;
public TMP_Text Text_Cancel;
public Button Button_Confirm;
public TMP_Text Text_Confirm;
****** End ******/
}