94 lines
5.1 KiB
C#
94 lines
5.1 KiB
C#
using TMPro;
|
|
using Button = UnityEngine.UI.Button;
|
|
using Image = UnityEngine.UI.Image;
|
|
|
|
public class UIAdvanceBinder
|
|
{
|
|
|
|
public static void GetComponents(UIAdvanceController window)
|
|
{
|
|
window.Image_BG = window.GetComponent<Image>("Image_BG");
|
|
window.Image_Poster = window.GetComponent<Image>("Image_BG/Image_Poster");
|
|
window.Button_Back = window.GetComponent<Button>("Image_BG/Button_Back/Button_back");
|
|
window.Button_Home = window.GetComponent<Button>("Image_BG/Button_Back/Button_Home");
|
|
window.Text_Hp01 = window.GetComponent<TMP_Text>("UI_LiuHaiLeft/UI_Info/mask/hp/noChange/Text_Hp01");
|
|
window.Text_Hp02 = window.GetComponent<TMP_Text>("UI_LiuHaiLeft/UI_Info/mask/hp/Change/Text_Hp02");
|
|
window.Text_Morale01 = window.GetComponent<TMP_Text>("UI_LiuHaiLeft/UI_Info/mask/Morale/noChange/Text_Morale01");
|
|
window.Text_Morale02 = window.GetComponent<TMP_Text>("UI_LiuHaiLeft/UI_Info/mask/Morale/Change/Text_Morale02");
|
|
window.Text_Defense01 = window.GetComponent<TMP_Text>("UI_LiuHaiLeft/UI_Info/mask/Denfense/noChange/Text_Defense01");
|
|
window.Text_Defense02 = window.GetComponent<TMP_Text>("UI_LiuHaiLeft/UI_Info/mask/Denfense/Change/Text_Defense02");
|
|
window.Text_Armor01 = window.GetComponent<TMP_Text>("UI_LiuHaiLeft/UI_Info/mask/Armor/noChange/Text_Armor01");
|
|
window.Text_Armor02 = window.GetComponent<TMP_Text>("UI_LiuHaiLeft/UI_Info/mask/Armor/Change/Text_Armor02");
|
|
window.Text_Attack01 = window.GetComponent<TMP_Text>("UI_LiuHaiLeft/UI_Info/mask/Attack/noChange/Text_Attack01");
|
|
window.Text_Attack02 = window.GetComponent<TMP_Text>("UI_LiuHaiLeft/UI_Info/mask/Attack/Change/Text_Attack02");
|
|
window.Text_Speed01 = window.GetComponent<TMP_Text>("UI_LiuHaiLeft/UI_Info/mask/MoveSpeed/noChange/Text_Speed01");
|
|
window.Text_Speed02 = window.GetComponent<TMP_Text>("UI_LiuHaiLeft/UI_Info/mask/MoveSpeed/Change/Text_Speed02");
|
|
window.Text_RankLevel01 = window.GetComponent<TMP_Text>("Image_BG/UI_RankLevel/Text_RankLevel01");
|
|
window.Text_RankLevel02 = window.GetComponent<TMP_Text>("Image_BG/UI_RankLevel/Text_RankLevel02");
|
|
window.Image_Red = window.GetComponent<Image>("Image_BG/UI_Materals/1/Image_Red");
|
|
window.Image_Green02 = window.GetComponent<Image>("Image_BG/UI_Materals/1/Image_Green02");
|
|
window.Image_Red = window.GetComponent<Image>("Image_BG/UI_Materals/2/Image_Red");
|
|
window.Image_Green02 = window.GetComponent<Image>("Image_BG/UI_Materals/2/Image_Green02");
|
|
window.Image_Red = window.GetComponent<Image>("Image_BG/UI_Materals/3/Image_Red");
|
|
window.Image_Green02 = window.GetComponent<Image>("Image_BG/UI_Materals/3/Image_Green02");
|
|
window.Button_Cannot = window.GetComponent<Button>("Image_BG/UI_ComfirmAndCancel/Button_Cannot");
|
|
window.Text_Cannot_Confirm = window.GetComponent<TMP_Text>("Image_BG/UI_ComfirmAndCancel/Button_Cannot/Text_Cannot_Confirm");
|
|
window.Button_Confirm = window.GetComponent<Button>("Image_BG/UI_ComfirmAndCancel/Button_Confirm");
|
|
window.Text_Confirm = window.GetComponent<TMP_Text>("Image_BG/UI_ComfirmAndCancel/Button_Confirm/Text_Confirm");
|
|
window.Button_Cancel = window.GetComponent<Button>("Image_BG/UI_ComfirmAndCancel/Button_Cancel");
|
|
window.Image_Skill_01 = window.GetComponent<Image>("Image_BG/UI_SkillInfo/Image_Skill_01");
|
|
window.Text_SkillName01 = window.GetComponent<TMP_Text>("Image_BG/UI_SkillInfo/Image_Skill_01/Text_SkillName01");
|
|
window.Text_SkillInfo01 = window.GetComponent<TMP_Text>("Image_BG/UI_SkillInfo/Image_Skill_01/Text_SkillInfo01");
|
|
window.Image_Arrow = window.GetComponent<Image>("Image_BG/UI_SkillInfo/Image_Arrow");
|
|
window.Image_Skill_02 = window.GetComponent<Image>("Image_BG/UI_SkillInfo/Image_Skill_02");
|
|
window.Text_SkillName02 = window.GetComponent<TMP_Text>("Image_BG/UI_SkillInfo/Image_Skill_02/Text_SkillName02");
|
|
window.Text_SkillInfo02 = window.GetComponent<TMP_Text>("Image_BG/UI_SkillInfo/Image_Skill_02/Text_SkillInfo02");
|
|
|
|
}
|
|
|
|
/****** 定义变量语句 ******
|
|
public Image Image_BG;
|
|
public Image Image_Poster;
|
|
public Button Button_Back;
|
|
public TMP_Text Text_Back;
|
|
public Button Button_Home;
|
|
public TMP_Text Text_Hp01;
|
|
public TMP_Text Text_Hp02;
|
|
public TMP_Text Text_Morale01;
|
|
public TMP_Text Text_Morale02;
|
|
public TMP_Text Text_Defense01;
|
|
public TMP_Text Text_Defense02;
|
|
public TMP_Text Text_Armor01;
|
|
public TMP_Text Text_Armor02;
|
|
public TMP_Text Text_Attack01;
|
|
public TMP_Text Text_Attack02;
|
|
public TMP_Text Text_Speed01;
|
|
public TMP_Text Text_Speed02;
|
|
public TMP_Text Text_RankLevel01;
|
|
public TMP_Text Text_Rank_Value01;
|
|
public Image Image_ArrowToRight;
|
|
public TMP_Text Text_RankLevel02;
|
|
public TMP_Text Text_Rank_Value02;
|
|
public Image Image_Red;
|
|
public Image Image_Green02;
|
|
public Image Image_Red;
|
|
public Image Image_Green02;
|
|
public Image Image_Red;
|
|
public Image Image_Green02;
|
|
public Button Button_Cannot;
|
|
public TMP_Text Text_Cannot_Confirm;
|
|
public Button Button_Confirm;
|
|
public TMP_Text Text_Confirm;
|
|
public Button Button_Cancel;
|
|
public Image Image_AdvanceLogo_Dark;
|
|
public Image Image_AdvanceLogo;
|
|
public Image Image_Skill_01;
|
|
public TMP_Text Text_SkillName01;
|
|
public TMP_Text Text_SkillInfo01;
|
|
public Image Image_Arrow;
|
|
public Image Image_Skill_02;
|
|
public TMP_Text Text_SkillName02;
|
|
public TMP_Text Text_SkillInfo02;
|
|
|
|
****** End ******/
|
|
} |