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

122 lines
7.5 KiB
C#

using TMPro;
using Button = UnityEngine.UI.Button;
using Image = UnityEngine.UI.Image;
public class UILevelUpBinder
{
public static void GetComponents(UILevelUpController window)
{
window.Image_BG = window.GetComponent<Image>("Image_BG");
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.Image_PointBG = window.GetComponent<Image>("UI_LiuHaiLeft/Image_PointBG");
window.Text_ExpPoint = window.GetComponent<TMP_Text>("UI_LiuHaiLeft/Image_PointBG/Text_ExpPoint");
window.Text_UniversalExp = window.GetComponent<TMP_Text>("UI_LiuHaiLeft/Image_PointBG/Text_ExpPoint/Text_UniversalExp");
window.Text_Exp_Value = window.GetComponent<TMP_Text>("UI_LiuHaiLeft/Image_PointBG/Text_Exp_Value");
window.Image_LevelUPBar = window.GetComponent<Image>("Image_BG/Image_LevelUPBar");
window.Image_Poster = window.GetComponent<Image>("Image_BG/Image_LevelUPBar/Image_Poster");
window.Text_Level_Now = window.GetComponent<TMP_Text>("Image_BG/Image_LevelUPBar/ExpDashBoard/UI_LevelPlusAndMinus/Text_Level_Now");
window.Text_Level_Max = window.GetComponent<TMP_Text>("Image_BG/Image_LevelUPBar/ExpDashBoard/UI_LevelPlusAndMinus/Text_Level_Max");
window.Image_Hp = window.GetComponent<Image>("UI_LiuHaiLeft/UI_Info/Image_Hp");
window.Text_Hp = window.GetComponent<TMP_Text>("UI_LiuHaiLeft/UI_Info/Image_Hp/Text_Hp");
window.Text_Hp_Value = window.GetComponent<TMP_Text>("UI_LiuHaiLeft/UI_Info/Image_Hp/Text_Hp_Value");
window.Text_Change_Hp = window.GetComponent<TMP_Text>("UI_LiuHaiLeft/UI_Info/Image_Hp/Text_Change_Hp");
window.Image_Morale = window.GetComponent<Image>("UI_LiuHaiLeft/UI_Info/Image_Morale");
window.Text_Cultivate_Morale = window.GetComponent<TMP_Text>("UI_LiuHaiLeft/UI_Info/Image_Morale/Text_Cultivate_Morale");
window.Text_Morale_Value = window.GetComponent<TMP_Text>("UI_LiuHaiLeft/UI_Info/Image_Morale/Text_Morale_Value");
window.Text_Change_Morale = window.GetComponent<TMP_Text>("UI_LiuHaiLeft/UI_Info/Image_Morale/Text_Change_Morale");
window.Image_Defense = window.GetComponent<Image>("UI_LiuHaiLeft/UI_Info/Image_Defense");
window.Text_Cultivate_Defense = window.GetComponent<TMP_Text>("UI_LiuHaiLeft/UI_Info/Image_Defense/Text_Cultivate_Defense");
window.Text_Defense_Value = window.GetComponent<TMP_Text>("UI_LiuHaiLeft/UI_Info/Image_Defense/Text_Defense_Value");
window.Text_Change_Defanse = window.GetComponent<TMP_Text>("UI_LiuHaiLeft/UI_Info/Image_Defense/Text_Change_Defanse");
window.Image_Armor = window.GetComponent<Image>("UI_LiuHaiLeft/UI_Info/Image_Armor");
window.Text_Cultivate_Armor = window.GetComponent<TMP_Text>("UI_LiuHaiLeft/UI_Info/Image_Armor/Text_Cultivate_Armor");
window.Text_Armor_Value = window.GetComponent<TMP_Text>("UI_LiuHaiLeft/UI_Info/Image_Armor/Text_Armor_Value");
window.Text_Change_Armor = window.GetComponent<TMP_Text>("UI_LiuHaiLeft/UI_Info/Image_Armor/Text_Change_Armor");
window.Image_Attack = window.GetComponent<Image>("UI_LiuHaiLeft/UI_Info/Image_Attack");
window.Text_Cultivate_Attack = window.GetComponent<TMP_Text>("UI_LiuHaiLeft/UI_Info/Image_Attack/Text_Cultivate_Attack");
window.Text_Attack_Value = window.GetComponent<TMP_Text>("UI_LiuHaiLeft/UI_Info/Image_Attack/Text_Attack_Value");
window.Text_Change_Attack = window.GetComponent<TMP_Text>("UI_LiuHaiLeft/UI_Info/Image_Attack/Text_Change_Attack");
window.Image_Speed = window.GetComponent<Image>("UI_LiuHaiLeft/UI_Info/Image_Speed");
window.Text_Cultivate_Speed = window.GetComponent<TMP_Text>("UI_LiuHaiLeft/UI_Info/Image_Speed/Text_Cultivate_Speed");
window.Text_Speed_Value = window.GetComponent<TMP_Text>("UI_LiuHaiLeft/UI_Info/Image_Speed/Text_Speed_Value");
window.Text_Change_Speed = window.GetComponent<TMP_Text>("UI_LiuHaiLeft/UI_Info/Image_Speed/Text_Change_Speed");
window.Text_ExpBefore = window.GetComponent<TMP_Text>("UI_LiuHaiLeft/UI_Info/Text_ExpBefore");
window.Text_EXP = window.GetComponent<TMP_Text>("UI_LiuHaiLeft/UI_Info/Text_ExpBefore/Text_EXP");
window.Text_ExpNeed = window.GetComponent<TMP_Text>("UI_LiuHaiLeft/UI_Info/Text_ExpNeed");
window.Text_Level_Value = window.GetComponent<TMP_Text>("UI_LiuHaiLeft/UI_Info/Text_Level_Value");
window.Text_LV = window.GetComponent<TMP_Text>("UI_LiuHaiLeft/UI_Info/Text_Level_Value/Text_LV");
window.Text_LevelUpTo = window.GetComponent<TMP_Text>("UI_LiuHaiLeft/UI_Info/Text_Level_Value/Text_LevelUpTo");
window.Button_MAX = window.GetComponent<Button>("Image_BG/Image_LevelUPBar/ExpDashBoard/UI_LevelPlusAndMinus/Button_MAX");
window.Button_Plus = window.GetComponent<Button>("Image_BG/Image_LevelUPBar/ExpDashBoard/UI_LevelPlusAndMinus/Button_Plus");
window.Button_Minus = window.GetComponent<Button>("Image_BG/Image_LevelUPBar/ExpDashBoard/UI_LevelPlusAndMinus/Button_Minus");
window.Image_LevelBar = window.GetComponent<Image>("Image_BG/Image_LevelUPBar/ExpDashBoard/UI_LevelPlusAndMinus/Image_LevelBar");
window.Image_LevelArrow = window.GetComponent<Image>("Image_BG/Image_LevelUPBar/ExpDashBoard/UI_LevelPlusAndMinus/Image_LevelBar/Image_LevelArrow");
window.Text_Level = window.GetComponent<TMP_Text>("Image_BG/Image_LevelUPBar/ExpDashBoard/UI_LevelPlusAndMinus/Image_LevelBar/Text_Level");
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");
}
/****** 定义变量语句 ******
public Image Image_BG;
public Button Button_Back;
public TMP_Text Text_Back;
public Button Button_Home;
public Image Image_PointBG;
public TMP_Text Text_ExpPoint;
public TMP_Text Text_UniversalExp;
public TMP_Text Text_Exp_Value;
public Image Image_LevelUPBar;
public Image Image_Poster;
public TMP_Text Text_Level_Now;
public TMP_Text Text_Level_Max;
public Image Image_Hp;
public TMP_Text Text_Hp;
public TMP_Text Text_Hp_Value;
public TMP_Text Text_Change_Hp;
public Image Image_Morale;
public TMP_Text Text_Cultivate_Morale;
public TMP_Text Text_Morale_Value;
public TMP_Text Text_Change_Morale;
public Image Image_Defense;
public TMP_Text Text_Cultivate_Defense;
public TMP_Text Text_Defense_Value;
public TMP_Text Text_Change_Defanse;
public Image Image_Armor;
public TMP_Text Text_Cultivate_Armor;
public TMP_Text Text_Armor_Value;
public TMP_Text Text_Change_Armor;
public Image Image_Attack;
public TMP_Text Text_Cultivate_Attack;
public TMP_Text Text_Attack_Value;
public TMP_Text Text_Change_Attack;
public Image Image_Speed;
public TMP_Text Text_Cultivate_Speed;
public TMP_Text Text_Speed_Value;
public TMP_Text Text_Change_Speed;
public TMP_Text Text_ExpBefore;
public TMP_Text Text_EXP;
public TMP_Text Text_Plus;
public TMP_Text Text_ExpNeed;
public TMP_Text Text_Level_Value;
public TMP_Text Text_LV;
public TMP_Text Text_LevelUpTo;
public Button Button_MAX;
public Button Button_Plus;
public Button Button_Minus;
public Image Image_LevelBar;
public Image Image_LevelArrow;
public TMP_Text Text_Level;
public Button Button_Cannot;
public TMP_Text Text_Cannot_Confirm;
public Button Button_Confirm;
public TMP_Text Text_Confirm;
public Button Button_Cancel;
****** End ******/
}