1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- using System;
- using System.Collections.Generic;
- using ET;
- using FairyGUI;
- using UI.CommonGame;
- using UI.ClothingUpgrade;
- using UnityEngine;
- namespace GFGGame
- {
- public class ClothingUpgradeView : BaseWindow
- {
- private UI_ClothingUpgradeUI _ui;
- private int _partIndex;
- public override void Dispose()
- {
- base.Dispose();
- }
- protected override void OnInit()
- {
- base.OnInit();
- packageName = UI_ClothingSelectUI.PACKAGE_NAME;
- _ui = UI_ClothingUpgradeUI.Create();
- this.viewCom = _ui.target;
- isfullScreen = true;
- modal = true;
- _ui.m_btnBack.onClick.Add(OnClickBtnBack);
- }
- protected override void OnShown()
- {
- base.OnShown();
- if (this.viewData != null)
- {
- _partIndex = (int)(this.viewData as object[])[0];
- }
- UpdateItems();
- }
- protected override void OnHide()
- {
- base.OnHide();
- }
- private void UpdateItems()
- {
- _ui.m_c1.selectedIndex = 4;
- }
- private void OnClickBtnBack()
- {
- ViewManager.GoBackFrom(typeof(ClothingUpgradeView).FullName);
- }
- }
- }
|