1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- using Fort23.Core;
- namespace Fort23.Mono
- {
- [UIBinding(prefab = "HeroBreakthroughFailPanel")]
- public partial class HeroBreakthroughFailPanel : UIPanel
- {
- private void Init()
- {
- }
- protected override void AddEvent()
- {
- }
- protected override void DelEvent()
- {
- }
- public override void AddButtonEvent()
- {
- }
- public void CustomInit(int type, int xw)
- {
- if (type == 2)
- {
- Icon_Tu.gameObject.SetActive(true);
- Icon_Dj.gameObject.SetActive(false);
- }
- else if (type == 3)
- {
- Icon_Tu.gameObject.SetActive(false);
- Icon_Dj.gameObject.SetActive(true);
- }
- Text_Xw.text = "修为-" + xw;
- }
- public static async CTask<HeroBreakthroughFailPanel> OpenPanel(int type, int xw)
- {
- HeroBreakthroughFailPanel heroBreakthroughFailPanel = await UIManager.Instance.LoadAndOpenPanel<HeroBreakthroughFailPanel>(null, UILayer.Top);
- heroBreakthroughFailPanel.CustomInit(type,xw);
- return heroBreakthroughFailPanel;
- }
- }
- }
|