2024-12-10 07:32:01 +08:00
|
|
|
|
using System.Collections;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
using UnityEngine.UI;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using DG.Tweening;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public class charainfoPanel : Base
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
[Header("<22><><EFBFBD><EFBFBD><EFBFBD>Ǹ<EFBFBD><C7B8><EFBFBD><EFBFBD><EFBFBD>,<2C><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Լ<EFBFBD><D4BC><EFBFBD>:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>")]public GameObject _panel;
|
|
|
|
|
[Header("<22>رհ<D8B1>ť")] public Button closeBtn;
|
|
|
|
|
[Header("<22>رյ<D8B1><D5B5><EFBFBD><EFBFBD><EFBFBD>")] public GameObject _closePanel;
|
|
|
|
|
|
2024-12-13 22:29:17 +08:00
|
|
|
|
[Header("<22><><EFBFBD><EFBFBD>")]
|
2024-12-13 08:48:10 +08:00
|
|
|
|
public Text LeveText;
|
|
|
|
|
public Text NameText;
|
|
|
|
|
public Text InfoText;
|
|
|
|
|
public Text AttackText;
|
|
|
|
|
public Text AttackFanweiText;
|
|
|
|
|
public Text AttackCD;
|
|
|
|
|
|
2024-12-13 22:29:17 +08:00
|
|
|
|
[Header(("<22><><EFBFBD><EFBFBD>"))] public List<Text> textList = new List<Text>();
|
|
|
|
|
public Image HpImage;
|
2024-12-12 17:05:28 +08:00
|
|
|
|
public virtual void Start()
|
2024-12-10 07:32:01 +08:00
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
//await PanelminTobig(_panel);
|
2024-12-12 17:05:28 +08:00
|
|
|
|
PanelminTobig(_panel);
|
2024-12-10 07:32:01 +08:00
|
|
|
|
|
|
|
|
|
closeBtn.onClick.AddListener(() => {
|
|
|
|
|
Destroy(_closePanel);
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public virtual void PanelminTobig(GameObject _panel)
|
|
|
|
|
{
|
|
|
|
|
_panel.transform.localScale = new Vector3(0.5f, 0.5f, 0.5f);
|
|
|
|
|
_panel.transform.DOScale(1f, 0.5f);
|
|
|
|
|
|
|
|
|
|
}
|
2024-12-13 08:48:10 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void UpDateShow(string LeveText, string NameText, string InfoText, string AttackText, string AttackFanweiText,string AttackCD)
|
|
|
|
|
{
|
2024-12-13 22:29:17 +08:00
|
|
|
|
this.LeveText.text= "Lv."+LeveText;
|
2024-12-13 08:48:10 +08:00
|
|
|
|
this.NameText.text= NameText;
|
|
|
|
|
this.InfoText.text= InfoText;
|
|
|
|
|
this.AttackText.text = AttackText;
|
|
|
|
|
this.AttackFanweiText.text= AttackFanweiText;
|
2024-12-13 22:29:17 +08:00
|
|
|
|
this.AttackCD.text= "<color=#00FF00>"+ AttackCD+"</color>";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void UpDateShow(string eveText,string name,string def,string speed,string shanghai,string info,float hp,float maxHp)
|
|
|
|
|
{
|
|
|
|
|
textList[0].text = "lv." + eveText;
|
|
|
|
|
textList[1].text = name;
|
|
|
|
|
textList[2].text = def;
|
|
|
|
|
textList[3].text = speed;
|
|
|
|
|
textList[4].text = shanghai;
|
|
|
|
|
textList[5].text = info;
|
|
|
|
|
textList[6].text = hp+"/"+maxHp;
|
|
|
|
|
HpImage.fillAmount = hp/ maxHp;
|
2024-12-13 08:48:10 +08:00
|
|
|
|
}
|
2024-12-10 07:32:01 +08:00
|
|
|
|
}
|