68 lines
3.3 KiB
C#
68 lines
3.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 UIPassGameBinder
|
|
{
|
|
|
|
public static void GetComponents(UIPassGameController window)
|
|
{
|
|
window.Image_WinBG = window.GetComponent<Image>("Image_WinBG");
|
|
window.Image_PosterLu = window.GetComponent<Image>("Image_WinBG/Image_PosterLu");
|
|
window.Image_TextRect = window.GetComponent<Image>("Image_WinBG/Image_PosterLu/Image_ActorLineBG");
|
|
window.Text_Win = window.GetComponent<TMP_Text>("Image_WinBG/Text_Win");
|
|
window.Image_BlueBar = window.GetComponent<Image>("Image_WinBG/Text_Win/Image_BlueBar");
|
|
window.Text_LevelNum = window.GetComponent<TMP_Text>("Image_WinBG/MapDetail/Text_LevelNum");
|
|
window.Text_LevelName = window.GetComponent<TMP_Text>("Image_WinBG/MapDetail/Text_LevelName");
|
|
window.Text_FightTime = window.GetComponent<TMP_Text>("Image_WinBG/MapDetail/Text_FightTime");
|
|
window.Image_Clock = window.GetComponent<Image>("Image_WinBG/MapDetail/Text_FightTime/Image_Clock");
|
|
window.Text_Time = window.GetComponent<TMP_Text>("Image_WinBG/MapDetail/Text_FightTime/Text_Time");
|
|
window.Text_CharacterID = window.GetComponent<TMP_Text>("Image_WinBG/CharacterDetail/Text_CharacterID");
|
|
window.Text_CharacterLV = window.GetComponent<TMP_Text>("Image_WinBG/CharacterDetail/Text_CharacterLV");
|
|
window.Image_EXEmpty = window.GetComponent<Image>("Image_WinBG/CharacterDetail/Image_EXEmpty");
|
|
window.Image_EXFull = window.GetComponent<Image>("Image_WinBG/CharacterDetail/Image_EXEmpty/Image_EXFull");
|
|
window.Text_EX = window.GetComponent<TMP_Text>("Image_WinBG/CharacterDetail/Image_EXEmpty/Text_EX");
|
|
window.Text_LVUp = window.GetComponent<TMP_Text>("Image_WinBG/CharacterDetail/Image_EXEmpty/Text_LVUp");
|
|
window.Text_Target = window.GetComponent<TMP_Text>("Image_WinBG/MissionDetail/Text_Target");
|
|
window.Image_DownShadow = window.GetComponent<Image>("Image_WinBG/HeroLevelUp/Image_DownShadow");
|
|
window.Text_GeneralEX = window.GetComponent<TMP_Text>("Image_WinBG/HeroLevelUp/Image_DownShadow/Text_GeneralEX");
|
|
window.Image_ELogo = window.GetComponent<Image>("Image_WinBG/HeroLevelUp/Image_DownShadow/Text_GeneralEX/Image_ELogo");
|
|
window.Text_EXPHave = window.GetComponent<TMP_Text>("Image_WinBG/HeroLevelUp/Image_DownShadow/Text_GeneralEX/Text_EXPHave");
|
|
window.Text_EXPGet = window.GetComponent<TMP_Text>("Image_WinBG/HeroLevelUp/Image_DownShadow/Text_GeneralEX/Text_EXPGet");
|
|
|
|
}
|
|
|
|
/****** 定义变量语句 ******
|
|
public Image Image_WinBG;
|
|
public Image Image_PosterLu;
|
|
public Image Image_TextRect;
|
|
public TMP_Text Text_Win;
|
|
public Image Image_BlueBar;
|
|
public TMP_Text Text_LevelNum;
|
|
public TMP_Text Text_LevelName;
|
|
public TMP_Text Text_FightTime;
|
|
public Image Image_Clock;
|
|
public TMP_Text Text_Time;
|
|
public TMP_Text Text_CharacterID;
|
|
public TMP_Text Text_CharacterLV;
|
|
public Image Image_EXEmpty;
|
|
public Image Image_EXFull;
|
|
public TMP_Text Text_EX;
|
|
public TMP_Text Text_LVUp;
|
|
public TMP_Text Text_Target;
|
|
public Image Image_DownShadow;
|
|
public TMP_Text Text_GeneralEX;
|
|
public Image Image_ELogo;
|
|
public TMP_Text Text_EXPHave;
|
|
public TMP_Text Text_EXPGet;
|
|
|
|
****** End ******/
|
|
} |