/** 显示奖励信息 */ private void HandleShowAward(GameObject gameObj) { UiManager.Instance.openWindow <LucklyActivityAwardWindow> ((win) => { win.init(notice.sid, integral, StringKit.toInt(luckySample.idsType)); win.descInfo = luckySample.luckyPoints[1].Replace('~', '\n'); }); }
/** 装备提升 */ private void HandleRemakeEvent(GameObject gameObj) { if (checkEquipIndex() == IN_TAMP_STORE) { UiManager.Instance.openDialogWindow <MessageLineWindow> ((winn) => { winn.Initialize(LanguageConfigManager.Instance.getLanguage ("notice_equipRemake_button_remake1")); }); return; } if (checkEquipIndex() == IN_MAIL) { UiManager.Instance.openDialogWindow <MessageLineWindow> ((winn) => { winn.Initialize(LanguageConfigManager.Instance.getLanguage ("notice_equipRemake_button_remake2")); }); return; } if ((StorageManagerment.Instance.getAllEquip().Count + 1) > StorageManagerment.Instance.getEquipStorageMaxSpace()) { MessageWindow.ShowAlert(LanguageConfigManager.Instance.getLanguage("storeFull_equip")); return; } if (UserManager.Instance.self.getVipLevel() < noticeContent.getUsedVipLevel()) { MessageWindow.ShowAlert(LanguageConfigManager.Instance.getLanguage("notice_equipRemake_er01", noticeContent.getUsedVipLevel().ToString())); return; } else if (!isHaveEquip) { MessageWindow.ShowAlert(LanguageConfigManager.Instance.getLanguage("notice_equipRemake_er02")); return; } Prop tmpProp = PropManagerment.Instance.createProp(noticeContent.getExchangePropSid()); int noticeSid = equipReamkeNotice.sid; UiManager.Instance.openDialogWindow <RemakeBuyWindow> ((win) => { win.init(tmpProp, noticeContent.getExchangePropRate(), noticeContent.getConsumRmbValue(), remakeBack); }); }
private void onClickGo(GameObject obj) { switch (mSample.windowLinkSid) { case 90090: //炼金术界面 { if (UserManager.Instance.self.getUserLevel() >= mSample.showLv) { if (UserManager.Instance.self.getVipLevel() < mSample.condition.conditions[Mathf.Min((task.index - 1) * 2 + 1, mSample.condition.conditions.Length - 1)]) { UiManager.Instance.createMessageLintWindow(LanguageConfigManager.Instance.getLanguage("notice_dailyRebate_07", mSample.condition.conditions[(task.index - 1) * 2 + 1].ToString())); return; } if (TaskManagerment.Instance.isComplete(task) || (task.condition >= mSample.condition.conditions[mSample.condition.conditions.Length - 2])) { UiManager.Instance.createMessageLintWindow(LanguageConfigManager.Instance.getLanguage("notice_dailyRebate_05")); return; } win.entranceId = NoticeSampleManager.Instance.getNoticeSampleBySid(NoticeType.ALCHEMY_SID).entranceId; win.updateSelectButton(NoticeType.ALCHEMY_SID); win.initTopButton(); MaskWindow.UnlockUI(); } else { showTip(mSample.showLv); } break; } case 90091: //钻石召唤界面 { if (UserManager.Instance.self.getUserLevel() >= mSample.showLv) { if (UserManager.Instance.self.getVipLevel() < mSample.condition.conditions[Mathf.Min((task.index - 1) * 2 + 1, mSample.condition.conditions.Length - 1)]) { UiManager.Instance.createMessageLintWindow(LanguageConfigManager.Instance.getLanguage("notice_dailyRebate_07", mSample.condition.conditions[(task.index - 1) * 2 + 1].ToString())); return; } if (TaskManagerment.Instance.isComplete(task) || (task.condition >= mSample.condition.conditions[mSample.condition.conditions.Length - 2])) { UiManager.Instance.createMessageLintWindow(LanguageConfigManager.Instance.getLanguage("notice_dailyRebate_05")); return; } UiManager.Instance.openWindow <LuckyDrawDetailWindow> ((win) => { win.setLuckyDraw(LuckyDrawManagerment.Instance.getLuckyDrawBySid(81001)); }); } else { showTip(mSample.showLv); } break; } case 90092: //女神摇一摇界面 { if (UserManager.Instance.self.getUserLevel() >= mSample.showLv) { if (UserManager.Instance.self.getVipLevel() < mSample.condition.conditions[Mathf.Min((task.index - 1) * 2 + 1, mSample.condition.conditions.Length - 1)]) { UiManager.Instance.createMessageLintWindow(LanguageConfigManager.Instance.getLanguage("notice_dailyRebate_07", mSample.condition.conditions[(task.index - 1) * 2 + 1].ToString())); return; } if (TaskManagerment.Instance.isComplete(task) || (task.condition >= mSample.condition.conditions[mSample.condition.conditions.Length - 2])) { UiManager.Instance.createMessageLintWindow(LanguageConfigManager.Instance.getLanguage("notice_dailyRebate_05")); return; } win.entranceId = NoticeSampleManager.Instance.getNoticeSampleBySid(NoticeType.GODDNESS_SHAKE_SID).entranceId; win.updateSelectButton(NoticeType.GODDNESS_SHAKE_SID); win.initTopButton(); MaskWindow.UnlockUI(); } else { showTip(mSample.showLv); } break; } case 90093: //讨伐界面 { if (UserManager.Instance.self.getUserLevel() >= mSample.showLv && UserManager.Instance.self.getVipLevel() >= 3) { //Mathf.Min((task.index-1)*2+1,mSample.condition.conditions.Length -1) if (UserManager.Instance.self.getVipLevel() < mSample.condition.conditions[Mathf.Min((task.index - 1) * 2 + 1, mSample.condition.conditions.Length - 1)]) { UiManager.Instance.createMessageLintWindow(LanguageConfigManager.Instance.getLanguage("notice_dailyRebate_07", mSample.condition.conditions[(task.index - 1) * 2 + 1].ToString())); return; } if (TaskManagerment.Instance.isComplete(task) || (task.condition >= mSample.condition.conditions[mSample.condition.conditions.Length - 2])) { UiManager.Instance.createMessageLintWindow(LanguageConfigManager.Instance.getLanguage("notice_dailyRebate_05")); return; } FuBenGetCurrentFPort port = FPortManager.Instance.getFPort("FuBenGetCurrentFPort") as FuBenGetCurrentFPort; port.getInfo((bool b) => { if (b) { UiManager.Instance.createMessageLintWindow(LanguageConfigManager.Instance.getLanguage("notice_dailyRebate_03")); return; } else { UiManager.Instance.openWindow <WarChooseWindow> (); return; } }); } else { showTip(mSample.showLv, 3); } break; } case 90094: //高级裂魂界面 { if (UserManager.Instance.self.getVipLevel() < mSample.condition.conditions[Mathf.Min((task.index - 1) * 2 + 1, mSample.condition.conditions.Length - 1)]) { UiManager.Instance.createMessageLintWindow(LanguageConfigManager.Instance.getLanguage("notice_dailyRebate_07", mSample.condition.conditions[(task.index - 1) * 2 + 1].ToString())); return; } if (TaskManagerment.Instance.isComplete(task) || (task.condition >= mSample.condition.conditions[mSample.condition.conditions.Length - 2])) { UiManager.Instance.createMessageLintWindow(LanguageConfigManager.Instance.getLanguage("notice_dailyRebate_05")); return; } if (UserManager.Instance.self.getUserLevel() >= mSample.showLv && UserManager.Instance.self.getVipLevel() >= CommonConfigSampleManager.Instance.getSampleBySid <DailyRebateSample>(6).getTimesInt(1)) { UiManager.Instance.openWindow <StarSoulWindow> ((win) => { win.init(1); }); } else { showTip(mSample.showLv, 4); } break; } case 90095: //神秘商店 { if (UserManager.Instance.self.getVipLevel() < mSample.condition.conditions[Mathf.Min((task.index - 1) * 2 + 1, mSample.condition.conditions.Length - 1)]) { UiManager.Instance.createMessageLintWindow(LanguageConfigManager.Instance.getLanguage("notice_dailyRebate_07", mSample.condition.conditions[(task.index - 1) * 2 + 1].ToString())); return; } if (TaskManagerment.Instance.isComplete(task) || (task.condition >= mSample.condition.conditions[mSample.condition.conditions.Length - 2])) { UiManager.Instance.createMessageLintWindow(LanguageConfigManager.Instance.getLanguage("notice_dailyRebate_05")); return; } if (UserManager.Instance.self.getUserLevel() >= mSample.showLv) { UiManager.Instance.openWindow <ShopWindow> ((win) => { win.setTitle(LanguageConfigManager.Instance.getLanguage("shop_mystical")); win.init(ShopWindow.TAP_MYSTICAL_CONTENT); }); } else { showTip(mSample.showLv); } break; } case 90096: //神魔宝库 { if (UserManager.Instance.self.getVipLevel() < mSample.condition.conditions[Mathf.Min((task.index - 1) * 2 + 1, mSample.condition.conditions.Length - 1)]) { UiManager.Instance.createMessageLintWindow(LanguageConfigManager.Instance.getLanguage("notice_dailyRebate_07", mSample.condition.conditions[(task.index - 1) * 2 + 1].ToString())); return; } if (TaskManagerment.Instance.isComplete(task) || (task.condition >= mSample.condition.conditions[mSample.condition.conditions.Length - 2])) { UiManager.Instance.createMessageLintWindow(LanguageConfigManager.Instance.getLanguage("notice_dailyRebate_05")); return; } FuBenGetCurrentFPort port = FPortManager.Instance.getFPort("FuBenGetCurrentFPort") as FuBenGetCurrentFPort; port.getInfo((bool b) => { if (b) { UiManager.Instance.openDialogWindow <MessageWindow> ((win) => { win.initWindow(2, LanguageConfigManager.Instance.getLanguage("s0094"), LanguageConfigManager.Instance.getLanguage("teamEdit_err03"), LanguageConfigManager.Instance.getLanguage("winLinkErr01"), (msgHandle) => { if (msgHandle.buttonID == MessageHandle.BUTTON_RIGHT) { UiManager.Instance.clearWindows(UiManager.Instance.getWindow <MainWindow> ()); FuBenManagerment.Instance.inToFuben(); } }); }); } else { if (UserManager.Instance.self.getUserLevel() >= mSample.showLv) { FuBenInfoFPort _port = FPortManager.Instance.getFPort("FuBenInfoFPort") as FuBenInfoFPort; _port.info(intoTowerFuben, ChapterType.TOWER_FUBEN); } else { showTip(mSample.showLv); } return; } }); break; } } }