123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104 |
- using UI.RechargeStore;
- using UI.CommonGame;
- using FairyGUI;
- using System.Collections.Generic;
- using ET;
- namespace GFGGame
- {
- public class StoreView : BaseWindow
- {
- private Dictionary<int, Dictionary<int, List<string>>> _tabDic = new Dictionary<int, Dictionary<int, List<string>>>();
- private Dictionary<int, List<string>> _subTabChargeDic = new Dictionary<int, List<string>>();
- private Dictionary<int, List<string>> _subTabGiftBagDic = new Dictionary<int, List<string>>();
- private Dictionary<int, List<string>> _subTabMonthCardDic = new Dictionary<int, List<string>>();
- private Dictionary<int, List<string>> _subTabExchangeDic = new Dictionary<int, List<string>>();
- private Dictionary<int, List<string>> _subTabArenaDic = new Dictionary<int, List<string>>();
- private UI_StoreUI _ui;
- private ValueBarController _valueBarController;
- public override void Dispose()
- {
- if (_valueBarController != null)
- {
- _valueBarController.Dispose();
- _valueBarController = null;
- }
- if (_ui != null)
- {
- _ui.Dispose();
- }
- _ui = null;
- base.Dispose();
- }
- protected override void OnInit()
- {
- base.OnInit();
- packageName = UI_StoreUI.PACKAGE_NAME;
- _ui = UI_StoreUI.Create();
- this.viewCom = _ui.target;
- isfullScreen = true;
- _tabDic[0] = _subTabChargeDic;
- _tabDic[1] = _subTabGiftBagDic;
- _tabDic[2] = _subTabMonthCardDic;
- _tabDic[3] = _subTabExchangeDic;
- _tabDic[4] = _subTabArenaDic;
- _subTabChargeDic[0] = new List<string>() { "充值", "累计充值" };//充值
- _subTabGiftBagDic[0] = new List<string>() { "活动", "限时", "精选", "热销" };//礼包
- _subTabMonthCardDic[0] = new List<string>() { "金卡", "黑金卡" };//月卡
- _subTabExchangeDic[0] = new List<string>() { "画廊商城" };//兑换
- _subTabArenaDic[0] = new List<string>() { "道具" };//竞技场
- _subTabChargeDic[1] = new List<string>() { "RechargeStoreView" };//充值
- _subTabGiftBagDic[1] = new List<string>() { "GiftBagBuyView" };//礼包
- _subTabMonthCardDic[1] = new List<string>() { };//月卡
- _subTabExchangeDic[1] = new List<string>() { "ItemExchangeView" };//兑换
- _subTabArenaDic[1] = new List<string>() { "" };//竞技场
- _ui.m_btnBack.onClick.Add(OnClickBtnBack);
- _valueBarController = new ValueBarController(_ui.m_valueBar);
- _ui.m_loaBg.url = ResPathUtil.GetBgImgPath("scsc_bjbj");
- }
- protected override void AddEventListener()
- {
- base.AddEventListener();
- }
- protected override void OnShown()
- {
- base.OnShown();
- _valueBarController.OnShown();
- }
- protected override void OnHide()
- {
- base.OnHide();
- _valueBarController.OnHide();
- }
- protected override void RemoveEventListener()
- {
- base.RemoveEventListener();
- }
- private void OnClickBtnBack()
- {
- this.Hide();
- }
- private void UpdateRedDot()
- {
- }
- }
- }
|