using System.Collections.Generic; using FairyGUI; using UI.FieldGuide; namespace GFGGame { public class TravelGuideView : BaseWindow { private UI_TravelGuideUI _ui; public override void Dispose() { if (_ui != null) { _ui.Dispose(); _ui = null; } base.Dispose(); } protected override void OnInit() { base.OnInit(); packageName = UI_TravelGuideUI.PACKAGE_NAME; _ui = UI_TravelGuideUI.Create(); this.viewCom = _ui.target; isfullScreen = true; _ui.m_btnBack.onClick.Add(OnClickBtnBack); _ui.m_list.itemRenderer = RenderListItem; _ui.m_list.onClickItem.Add(OnListItemClick); _ui.m_loaBg.url = ResPathUtil.GetBgImgPath("hc_bj_1"); } protected override void AddEventListener() { base.AddEventListener(); } protected override void OnShown() { base.OnShown(); } protected override void OnHide() { base.OnHide(); } protected override void RemoveEventListener() { base.RemoveEventListener(); } private void OnClickBtnBack() { ViewManager.GoBackFrom(typeof(TravelGuideView).FullName); } private void RenderListItem(int index, GObject obj) { } private void OnListItemClick(EventContext context) { } } }