1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- using System.Collections;
- using UnityEngine;
- using UI.XiuFang;
- using FairyGUI;
- namespace GFGGame
- {
- public class XiuFangView : BaseWindow
- {
- private UI_XiuFangUI _ui;
- public override void Dispose()
- {
- base.Dispose();
- }
- protected override void OnInit()
- {
- base.OnInit();
- packageName = UI_XiuFangUI.PACKAGE_NAME;
- _ui = UI_XiuFangUI.Create();
- this.viewCom = _ui.target;
- isfullScreen = true;
- _ui.m_btnBack.onClick.Add(OnClickBtnBack);
- _ui.m_btnClothingShop.onClick.Add(OnClickBtnClothingShop);
- _ui.m_btnSuitSynthetic.onClick.Add(OnClickBtnSuitSynthetic);
- _ui.m_btnClothingUpgrade.onClick.Add(OnClickBtnClothingUpgrade);
- }
- protected override void OnShown()
- {
- base.OnShown();
- GuideController.TryGuideSuitSyntheticView(_ui.m_btnSuitSynthetic);
- }
- protected override void OnHide()
- {
- base.OnHide();
- }
- private void OnClickBtnBack()
- {
- this.Hide();
- ViewManager.GoBackFrom(ViewName.XIU_FANG_VIEW);
- }
- private void OnClickBtnClothingShop()
- {
- ViewManager.Show(ViewName.CLOTHING_SHOP_VIEW, null, null, false, true);
- }
- private void OnClickBtnSuitSynthetic()
- {
- ViewManager.Show(ViewName.SUIT_SYNTHETIC_LIST_VIEW, null, new object[] { ViewName.XIU_FANG_VIEW, this.viewData });
- }
- private void OnClickBtnClothingUpgrade()
- {
- PromptController.Instance.ShowFloatTextPrompt("暂未开放", MessageType.WARNING);
- }
- }
- }
|