|
@@ -127,6 +127,7 @@ namespace GFGGame
|
|
_ui.m_btnTravel.target.onClick.Add(OnClickBtnTravel);
|
|
_ui.m_btnTravel.target.onClick.Add(OnClickBtnTravel);
|
|
_ui.m_btnDailyWelfare.target.onClick.Add(OnClickBtnDailyWelfare);
|
|
_ui.m_btnDailyWelfare.target.onClick.Add(OnClickBtnDailyWelfare);
|
|
_ui.m_btnActivityLuckyBox.target.onClick.Add(OnClickBtnActivityLuckyBox);
|
|
_ui.m_btnActivityLuckyBox.target.onClick.Add(OnClickBtnActivityLuckyBox);
|
|
|
|
+ _ui.m_btnLimitedRechargeDBGift.target.onClick.Add(OnClickBtnLimitedRechargeDBGift);
|
|
_btnLeague.onClick.Add(OnClickBtnLeague);
|
|
_btnLeague.onClick.Add(OnClickBtnLeague);
|
|
_btnStore.onClick.Add(OnClickBtnStore);
|
|
_btnStore.onClick.Add(OnClickBtnStore);
|
|
_btnTuJian.onClick.Add(OnClickBtnTuJian);
|
|
_btnTuJian.onClick.Add(OnClickBtnTuJian);
|
|
@@ -412,7 +413,7 @@ namespace GFGGame
|
|
// _ui.m_btnMain.m_holder1.visible = false;
|
|
// _ui.m_btnMain.m_holder1.visible = false;
|
|
// this.Hide();
|
|
// this.Hide();
|
|
ViewManager.Show<StoryChapterListView>(null,
|
|
ViewManager.Show<StoryChapterListView>(null,
|
|
- new object[] { ViewName.MAINUI_VIEW, this.viewData });
|
|
|
|
|
|
+ new object[] { typeof(MainUIView).FullName, this.viewData });
|
|
isOpen = false;
|
|
isOpen = false;
|
|
;
|
|
;
|
|
|
|
|
|
@@ -430,7 +431,7 @@ namespace GFGGame
|
|
// {
|
|
// {
|
|
_ui.m_btnHuanZhuang.m_holder1.visible = false;
|
|
_ui.m_btnHuanZhuang.m_holder1.visible = false;
|
|
this.Hide();
|
|
this.Hide();
|
|
- ViewManager.Show<DressUpView>(null, new object[] { ViewName.MAINUI_VIEW, this.viewData });
|
|
|
|
|
|
+ ViewManager.Show<DressUpView>(null, new object[] { typeof(MainUIView).FullName, this.viewData });
|
|
isOpen = false;
|
|
isOpen = false;
|
|
|
|
|
|
|
|
|
|
@@ -460,60 +461,34 @@ namespace GFGGame
|
|
if (isOpen) return;
|
|
if (isOpen) return;
|
|
isOpen = true;
|
|
isOpen = true;
|
|
_ui.m_btnXiuFang.m_holder1.visible = true;
|
|
_ui.m_btnXiuFang.m_holder1.visible = true;
|
|
- // Timers.inst.Add(effectTime, 1, (param) =>
|
|
|
|
- // {
|
|
|
|
_ui.m_btnXiuFang.m_holder1.visible = false;
|
|
_ui.m_btnXiuFang.m_holder1.visible = false;
|
|
- ViewManager.Show<XiuFangView>(null, new object[] { ViewName.MAINUI_VIEW, this.viewData });
|
|
|
|
|
|
+ ViewManager.Show<XiuFangView>(null, new object[] { typeof(MainUIView).FullName, this.viewData });
|
|
isOpen = false;
|
|
isOpen = false;
|
|
-
|
|
|
|
-
|
|
|
|
- // });
|
|
|
|
}
|
|
}
|
|
|
|
|
|
private void OnClickBtnDailyLogin()
|
|
private void OnClickBtnDailyLogin()
|
|
{
|
|
{
|
|
- // if (isOpen) return;
|
|
|
|
- // isOpen = true;
|
|
|
|
- // _ui.m_btnDailyLogin.m_holder.visible = true;
|
|
|
|
- // Timers.inst.Add(effectTime, 1, (param) =>
|
|
|
|
- // {
|
|
|
|
- // _ui.m_btnDailyLogin.m_holder.visible = false;
|
|
|
|
- // List<string> list = new List<string>();
|
|
|
|
- // list.Add("StudioView");
|
|
|
|
- // list.Add("XiuFangView");
|
|
|
|
- // ViewManager.Show<FunctionOpenView>(list);
|
|
|
|
LogServerHelper.SendPlayParticipationLog((int)PlayParticipationEnum.MEI_RI_DNEG_LU, 1);
|
|
LogServerHelper.SendPlayParticipationLog((int)PlayParticipationEnum.MEI_RI_DNEG_LU, 1);
|
|
|
|
|
|
- ViewManager.Show<SevenDayLoginView>(null, new object[] { ViewName.MAINUI_VIEW, this.viewData });
|
|
|
|
- // isOpen = false;
|
|
|
|
- // });
|
|
|
|
|
|
+ ViewManager.Show<SevenDayLoginView>(null, new object[] { typeof(MainUIView).FullName, this.viewData });
|
|
}
|
|
}
|
|
|
|
|
|
private void OnClickBtnDailyWelfare()
|
|
private void OnClickBtnDailyWelfare()
|
|
{
|
|
{
|
|
- // if (isOpen) return;
|
|
|
|
- // isOpen = true;
|
|
|
|
- // _ui.m_btnDailyLogin.m_holder.visible = true;
|
|
|
|
- // Timers.inst.Add(effectTime, 1, (param) =>
|
|
|
|
- // {
|
|
|
|
- // _ui.m_btnDailyLogin.m_holder.visible = false;
|
|
|
|
- // List<string> list = new List<string>();
|
|
|
|
- // list.Add("StudioView");
|
|
|
|
- // list.Add("XiuFangView");
|
|
|
|
- // ViewManager.Show<FunctionOpenView>(list);
|
|
|
|
- // LogServerHelper.SendPlayParticipationLog((int)PlayParticipationEnum.MEI_RI_DNEG_LU, 1);
|
|
|
|
-
|
|
|
|
- ViewManager.Show<DailyWelfareView>(null, new object[] { ViewName.MAINUI_VIEW, this.viewData });
|
|
|
|
- // isOpen = false;
|
|
|
|
- // });
|
|
|
|
|
|
+ ViewManager.Show<DailyWelfareView>(null, new object[] { typeof(MainUIView).FullName, this.viewData });
|
|
}
|
|
}
|
|
|
|
|
|
private void OnClickBtnActivityLuckyBox()
|
|
private void OnClickBtnActivityLuckyBox()
|
|
{
|
|
{
|
|
- ViewManager.Show<ActivityThemeLuckyBoxView>(null, new object[] { ViewName.MAINUI_VIEW, this.viewData },
|
|
|
|
|
|
+ ViewManager.Show<ActivityThemeLuckyBoxView>(null, new object[] { typeof(MainUIView).FullName, this.viewData },
|
|
true);
|
|
true);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ private void OnClickBtnLimitedRechargeDBGift()
|
|
|
|
+ {
|
|
|
|
+ ViewManager.Show<LimitedRechargeDBGiftView>(null, new object[] { typeof(MainUIView).FullName, this.viewData });
|
|
|
|
+ }
|
|
|
|
+
|
|
private void OnClickBtnCiPai()
|
|
private void OnClickBtnCiPai()
|
|
{
|
|
{
|
|
LogServerHelper.SendPlayParticipationLog((int)PlayParticipationEnum.CI_PAI, 1);
|
|
LogServerHelper.SendPlayParticipationLog((int)PlayParticipationEnum.CI_PAI, 1);
|
|
@@ -521,34 +496,31 @@ namespace GFGGame
|
|
if (isOpen) return;
|
|
if (isOpen) return;
|
|
isOpen = true;
|
|
isOpen = true;
|
|
_ui.m_btnCiPai.m_holder1.visible = true;
|
|
_ui.m_btnCiPai.m_holder1.visible = true;
|
|
- // Timers.inst.Add(effectTime, 1, (param) =>
|
|
|
|
- // {
|
|
|
|
_ui.m_btnCiPai.m_holder1.visible = false;
|
|
_ui.m_btnCiPai.m_holder1.visible = false;
|
|
|
|
|
|
CardDataManager.isFilter = false;
|
|
CardDataManager.isFilter = false;
|
|
- ViewManager.Show<CardDetailView>(null, new object[] { ViewName.MAINUI_VIEW, this.viewData });
|
|
|
|
|
|
+ ViewManager.Show<CardDetailView>(null, new object[] { typeof(MainUIView).FullName, this.viewData });
|
|
isOpen = false;
|
|
isOpen = false;
|
|
|
|
|
|
- // });
|
|
|
|
}
|
|
}
|
|
|
|
|
|
private void OnClickBtnStudio()
|
|
private void OnClickBtnStudio()
|
|
{
|
|
{
|
|
- ViewManager.Show<StudioView>(null, new object[] { ViewName.MAINUI_VIEW, this.viewData });
|
|
|
|
|
|
+ ViewManager.Show<StudioView>(null, new object[] { typeof(MainUIView).FullName, this.viewData });
|
|
}
|
|
}
|
|
|
|
|
|
private void OnClickBtnField()
|
|
private void OnClickBtnField()
|
|
{
|
|
{
|
|
LogServerHelper.SendPlayParticipationLog((int)PlayParticipationEnum.TIAN_YE_DIAO_CHA, 1);
|
|
LogServerHelper.SendPlayParticipationLog((int)PlayParticipationEnum.TIAN_YE_DIAO_CHA, 1);
|
|
|
|
|
|
- ViewManager.Show<FieldView>(null, new object[] { ViewName.MAINUI_VIEW, this.viewData });
|
|
|
|
|
|
+ ViewManager.Show<FieldView>(null, new object[] {typeof(MainUIView).FullName, this.viewData });
|
|
}
|
|
}
|
|
|
|
|
|
private void OnClickBtnPoem()
|
|
private void OnClickBtnPoem()
|
|
{
|
|
{
|
|
// LogServerHelper.SendNodeLog((int)PlayParticipationEnum.TIAN_YE_DIAO_CHA, 1);
|
|
// LogServerHelper.SendNodeLog((int)PlayParticipationEnum.TIAN_YE_DIAO_CHA, 1);
|
|
|
|
|
|
- ViewManager.Show<PoemView>(null, new object[] { ViewName.MAINUI_VIEW, this.viewData });
|
|
|
|
|
|
+ ViewManager.Show<PoemView>(null, new object[] { typeof(MainUIView).FullName, this.viewData });
|
|
}
|
|
}
|
|
|
|
|
|
private void OnClickBtnArena()
|
|
private void OnClickBtnArena()
|
|
@@ -564,7 +536,7 @@ namespace GFGGame
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
|
|
- ViewManager.Show<ArenaView>(null, new object[] { ViewName.MAINUI_VIEW, this.viewData }, true);
|
|
|
|
|
|
+ ViewManager.Show<ArenaView>(null, new object[] { typeof(MainUIView).FullName, this.viewData }, true);
|
|
ViewManager.Show<ArenaLoadingView>();
|
|
ViewManager.Show<ArenaLoadingView>();
|
|
|
|
|
|
}
|
|
}
|
|
@@ -573,12 +545,12 @@ namespace GFGGame
|
|
{
|
|
{
|
|
// LogServerHelper.SendNodeLog((int)PlayParticipationEnum.TIAN_YE_DIAO_CHA, 1);
|
|
// LogServerHelper.SendNodeLog((int)PlayParticipationEnum.TIAN_YE_DIAO_CHA, 1);
|
|
|
|
|
|
- ViewManager.Show<TravelView>(null, new object[] { ViewName.MAINUI_VIEW, this.viewData });
|
|
|
|
|
|
+ ViewManager.Show<TravelView>(null, new object[] { typeof(MainUIView).FullName, this.viewData });
|
|
}
|
|
}
|
|
|
|
|
|
private void OnClickBtnBag()
|
|
private void OnClickBtnBag()
|
|
{
|
|
{
|
|
- ViewManager.Show<BagView>(null, new object[] { ViewName.MAINUI_VIEW, this.viewData });
|
|
|
|
|
|
+ ViewManager.Show<BagView>(null, new object[] { typeof(MainUIView).FullName, this.viewData });
|
|
}
|
|
}
|
|
|
|
|
|
private void OnClickBtnLeague()
|
|
private void OnClickBtnLeague()
|
|
@@ -604,13 +576,13 @@ namespace GFGGame
|
|
{
|
|
{
|
|
LogServerHelper.SendPlayParticipationLog((int)PlayParticipationEnum.SHANG_CHENG, 1);
|
|
LogServerHelper.SendPlayParticipationLog((int)PlayParticipationEnum.SHANG_CHENG, 1);
|
|
|
|
|
|
- ViewManager.Show<StoreView>(null, new object[] { ViewName.MAINUI_VIEW, this.viewData });
|
|
|
|
|
|
+ ViewManager.Show<StoreView>(null, new object[] { typeof(MainUIView).FullName, this.viewData });
|
|
}
|
|
}
|
|
|
|
|
|
private void OnClickBtnTuJian()
|
|
private void OnClickBtnTuJian()
|
|
{
|
|
{
|
|
LogServerHelper.SendPlayParticipationLog((int)PlayParticipationEnum.TU_JIAN, 1);
|
|
LogServerHelper.SendPlayParticipationLog((int)PlayParticipationEnum.TU_JIAN, 1);
|
|
- ViewManager.Show<FieldGuideView>(null, new object[] { ViewName.MAINUI_VIEW, this.viewData });
|
|
|
|
|
|
+ ViewManager.Show<FieldGuideView>(null, new object[] { typeof(MainUIView).FullName, this.viewData });
|
|
}
|
|
}
|
|
|
|
|
|
private void OnClickBtnYouJian()
|
|
private void OnClickBtnYouJian()
|
|
@@ -620,26 +592,25 @@ namespace GFGGame
|
|
|
|
|
|
private void OnClickBtnHaoYou()
|
|
private void OnClickBtnHaoYou()
|
|
{
|
|
{
|
|
- ViewManager.Show<FriendView>(null, new object[] { ViewName.MAINUI_VIEW, this.viewData }, true);
|
|
|
|
|
|
+ ViewManager.Show<FriendView>(null, new object[] { typeof(MainUIView).FullName, this.viewData }, true);
|
|
}
|
|
}
|
|
|
|
|
|
private void OnClickBtnGongGao()
|
|
private void OnClickBtnGongGao()
|
|
{
|
|
{
|
|
- // /null, new object[] { ViewName.MAINUI_VIEW, this.viewData }
|
|
|
|
ViewManager.Show<NoticeView>();
|
|
ViewManager.Show<NoticeView>();
|
|
}
|
|
}
|
|
|
|
|
|
private void OnClickBtnRenWu()
|
|
private void OnClickBtnRenWu()
|
|
{
|
|
{
|
|
- ViewManager.Show<TaskView>(null, new[] { ViewName.MAINUI_VIEW, this.viewData });
|
|
|
|
- // ViewManager.Show<ActivityDay7View>(null, new[] { ViewName.MAINUI_VIEW, this.viewData });
|
|
|
|
|
|
+ ViewManager.Show<TaskView>(null, new[] { typeof(MainUIView).FullName, this.viewData });
|
|
|
|
+ // ViewManager.Show<ActivityDay7View>(null, new[] { typeof(MainUIView).FullName, this.viewData });
|
|
// LogServerHelper.SendPlayParticipationLog((int)PlayParticipationEnum.MEI_RI_REN_WU, 1);
|
|
// LogServerHelper.SendPlayParticipationLog((int)PlayParticipationEnum.MEI_RI_REN_WU, 1);
|
|
// ViewManager.Show<DailyTaskView>();
|
|
// ViewManager.Show<DailyTaskView>();
|
|
}
|
|
}
|
|
|
|
|
|
private void OnClickBtnDay7()
|
|
private void OnClickBtnDay7()
|
|
{
|
|
{
|
|
- ViewManager.Show<ActivityDay7View>(null, new[] { ViewName.MAINUI_VIEW, this.viewData });
|
|
|
|
|
|
+ ViewManager.Show<ActivityDay7View>(null, new[] { typeof(MainUIView).FullName, this.viewData });
|
|
}
|
|
}
|
|
|
|
|
|
private void OnClickBtnFirstRecharge()
|
|
private void OnClickBtnFirstRecharge()
|
|
@@ -775,6 +746,7 @@ namespace GFGGame
|
|
_ui.m_btnGiftBag1.target.visible = true;
|
|
_ui.m_btnGiftBag1.target.visible = true;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
private void Update(object param)
|
|
private void Update(object param)
|
|
@@ -940,6 +912,9 @@ namespace GFGGame
|
|
}
|
|
}
|
|
private void CheckFunOpen()
|
|
private void CheckFunOpen()
|
|
{
|
|
{
|
|
|
|
+ _ui.m_btnGiftBag1.target.visible = false;
|
|
|
|
+ _ui.m_btnGiftBag2.target.visible = false;
|
|
|
|
+
|
|
_ui.m_btnXiuFang.m_loaLockIcons.visible = !FunctionOpenDataManager.Instance.CheckIsFunOpenById(typeof(XiuFangView).Name, false);
|
|
_ui.m_btnXiuFang.m_loaLockIcons.visible = !FunctionOpenDataManager.Instance.CheckIsFunOpenById(typeof(XiuFangView).Name, false);
|
|
_ui.m_btnHuanZhuang.m_loaLockIcons.visible = !FunctionOpenDataManager.Instance.CheckIsFunOpenById(typeof(DressUpView).Name, false);
|
|
_ui.m_btnHuanZhuang.m_loaLockIcons.visible = !FunctionOpenDataManager.Instance.CheckIsFunOpenById(typeof(DressUpView).Name, false);
|
|
_ui.m_btnCiPai.m_loaLockIcons.visible = !FunctionOpenDataManager.Instance.CheckIsFunOpenById(typeof(CardDetailView).Name, false);
|
|
_ui.m_btnCiPai.m_loaLockIcons.visible = !FunctionOpenDataManager.Instance.CheckIsFunOpenById(typeof(CardDetailView).Name, false);
|