1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- using System.Collections.Generic;
- using FairyGUI;
- using UI.Studio;
- namespace GFGGame
- {
- //金属副本
- public class StudioMetalView : StudioBaseView
- {
- public override void Dispose()
- {
- base.Dispose();
- }
- protected override void OnInit()
- {
- base.OnInit();
- _ui.m_btnBack.onClick.Add(OnClickBtnBack);
- }
- protected override void OnShown()
- {
- GComponent com = UIPackage.CreateObject(UI_StudioUI.PACKAGE_NAME, "ComFabric").asCom;
- AddChildCom(com);
- StudioDataManager.Instance.VIEW_NAME = typeof(StudioMetalView).FullName;
- this.studioCfg = StudioCfgArray.Instance.GetCfgsByfunId(typeof(StudioMetalView).Name)[0];
- this.studioData = StudioDataManager.Instance.GetStudioDataById(this.studioCfg.id);
- this.storyLevelCfgs = StoryLevelCfgArray.Instance.GetCfgsBytypeAndsubTypeAndchapterId(this.studioCfg.type, this.studioCfg.subType, this.studioCfg.id);
- list.numItems = this.storyLevelCfgs.Count;
- list.ScrollToView(curIndex);
- base.OnShown();
- }
- protected override void OnHide()
- {
- base.OnHide();
- }
- private void OnClickBtnBack()
- {
- ViewManager.GoBackFrom(typeof(StudioMetalView).FullName);
- }
- }
- }
|