// 初始化 public override bool Init(IUISubWnd wnd) { base.Init(wnd); searchInputPlaceHolder.text = ULocalizationService.Instance.Get("UIView", "ClanList", "ClanSearchDesc"); createClanText.text = ULocalizationService.Instance.Get("UIView", "ClanList", "ClanCreateBtn"); requestClanText.text = ULocalizationService.Instance.Get("UIView", "ClanList", "ClanRequestBtn"); returnClanText.text = ULocalizationService.Instance.Get("UIView", "ClanList", "ClanReturnBtn"); pageText.text = "0/0"; clanIconText.text = ULocalizationService.Instance.Get("UIView", "ClanList", "ClanIconDesc"); clanNameText.text = ULocalizationService.Instance.Get("UIView", "ClanList", "ClanNameDesc"); clanLeaderText.text = ULocalizationService.Instance.Get("UIView", "ClanList", "ClanLeaderDesc"); clanKinCountText.text = ULocalizationService.Instance.Get("UIView", "ClanList", "ClanKinCountDesc"); clanMemberNumText.text = ULocalizationService.Instance.Get("UIView", "ClanList", "ClanMemberNumDesc"); clanDescText.text = ULocalizationService.Instance.Get("UIView", "ClanList", "ClanDescDesc"); clanRequestStatusText.text = ULocalizationService.Instance.Get("UIView", "ClanList", "ClanRequestDesc"); m_curSelectClanID = -1; for (int i = 0; i < listClanItem.Length; ++i) { listClanItem[i].SetWndView(this); } prevPageBtn.onClick.AddListener(OnPrevPageBtn); nextPageBtn.onClick.AddListener(OnNextPageBtn); searchInput = SerchTI.GetComponent <InputField>(); m_LastSerch = ""; m_bSerchChange = false; m_curPageNum = 1; return(true); }
protected override void PostSetVisible(bool _bVisible) { base.PostSetVisible(_bVisible); if (!_bVisible && m_wndView != null) { //目前只有宝石界面单独了出来,非UIBaseSubWnd,所以特殊处理下 PlayerSubWndType currentSubWndType = m_wndView.GetCurSubWnd(); if (currentSubWndType == PlayerSubWndType.WND_CROWN) { //IUIWnd subWnd = GetSubUIWnd(currentSubWndType); //subWnd.SetVisible(false); } else { IUISubWnd subWnd = GetSubWnd(currentSubWndType); subWnd.SetVisible(false); } //UISystem.Instance.SendWndMessage(WndMsgID.WND_MSG_PLAYERFRAME_CLOSE, null); } UCommonPopupWndVisible msgData = new UCommonPopupWndVisible(); msgData.msgID = (int)WndMsgID.WND_MSG_COMMON_POPUPWND_VISIBLE; msgData.nWndID = (int)GetID(); msgData.isVisible = _bVisible; UISystem.Instance.SendWndMessage(WndMsgID.WND_MSG_COMMON_POPUPWND_VISIBLE, msgData); }
// 初始化 public override bool Init(IUISubWnd wnd) { base.Init(wnd); issueBtnText.text = ULocalizationService.Instance.Get("UIView", "PrenticeIssueList", "PIssueBtnDesc"); changeIssueBtnText.text = ULocalizationService.Instance.Get("UIView", "PrenticeIssueList", "PChangeIssueBtnDesc"); internPrenticeBtnText.text = ULocalizationService.Instance.Get("UIView", "PrenticeIssueList", "PInternPrenticeBtnDesc"); nameText.text = ULocalizationService.Instance.Get("UIView", "PrenticeIssueList", "PNameDesc"); levelText.text = ULocalizationService.Instance.Get("UIView", "PrenticeIssueList", "PLeveDesc"); sexText.text = ULocalizationService.Instance.Get("UIView", "PrenticeIssueList", "PSexDesc"); corpsText.text = ULocalizationService.Instance.Get("UIView", "PrenticeIssueList", "PCorpsNameDesc"); clanText.text = ULocalizationService.Instance.Get("UIView", "PrenticeIssueList", "PClanNameDesc"); issueText.text = ULocalizationService.Instance.Get("UIView", "PrenticeIssueList", "PIssueDesc"); m_curIndex = 0; m_curSelPersonPDBID = 0; for (int i = 0; i < listIssueItem.Length; ++i) { listIssueItem[i].SetWndView(this, i); listIssueItem[i].Clear(); } return(true); }
public override bool Init(IUISubWnd wnd) { mailContentFrame.Init(this); EmptyShowObj.SetActive(true); EmptyDesc.text = ULocalizationService.Instance.Get("UIView", "Mail", "EmptyDesc"); return(base.Init(wnd)); }
public override bool Init(IUISubWnd wnd) { base.Init(wnd); RestData(); PrevPageBtn.onClick.AddListener(OnPrevBtnClick); NextPageBtn.onClick.AddListener(OnNextBtnClick); return(true); }
public override bool Init(IUISubWnd wnd) { LockStateDesc[(int)EMouseLockModelType.EMLMT_OFF] = ULocalizationService.Instance.Get("UIView", "SystemGameView", "Off"); LockStateDesc[(int)EMouseLockModelType.EMLMT_INWAR] = ULocalizationService.Instance.Get("UIView", "SystemGameView", "WarMap"); LockStateDesc[(int)EMouseLockModelType.EMLMT_INALL] = ULocalizationService.Instance.Get("UIView", "SystemGameView", "AllMap"); MouseLockDesc.text = ULocalizationService.Instance.Get("UIView", "SystemGameView", "MouseLockDesc"); InitDisplayData(); return(base.Init(wnd)); }
public override bool Init(IUISubWnd wnd) { base.Init(wnd); EntityView curHeroView = EntityFactory.MainHeroView; InitSpellSlotConfigCsv(ViewConfigManager.GetConfigFullPath("SpellSlot.csv", true)); //SettingKeyCodeInfo(curHeroView); return(true); }
public override bool Init(IUISubWnd wnd) { string sClanTip = ClanConfig.Instance.tClanConfig.sClanTip; if (!sClanTip.Equals(string.Empty)) { UBB.toHtml(ref sClanTip, UBB_FORMAT_TYPE.UGUI); ClanTip.text = sClanTip; } return(base.Init(wnd)); }
public override bool Init(IUISubWnd wnd) { base.Init(wnd); RestData(); PrevPageBtn.onClick.AddListener(OnPrevBtnClick); NextPageBtn.onClick.AddListener(OnNextBtnClick); SortTypeDropdown.onValueChanged.AddListener(OnSortTypeChanged); CollectionChartBtnGroup.onButtonGroupSelectedChange.AddListener(OnPageBtnChanged); return(true); }
public override bool Init(IUISubWnd wnd) { for (int i = 0; i < cardInfoDesc.Length; ++i) { cardInfoDesc[i].text = ULocalizationService.Instance.Get("UIView", "ClanRequestCard", "CardInfoDesc" + (i + 1)); } requestBtn.GetComponent <UTooltipTrigger>().SetText(UTooltipParamName.BodyText, ULocalizationService.Instance.Get("UIView", "ClanRequestCard", "HeroStarTooltip")); selfLogText.text = ULocalizationService.Instance.Get("UIView", "ClanRequestCard", "SelfLogDesc"); requestBtnText.text = ULocalizationService.Instance.Get("UIView", "ClanRequestCard", "RequestCardBtn"); cooldownTimeText.text = ""; requestBtnEffect.color = Color.clear; return(base.Init(wnd)); }
public override bool Init(IUISubWnd wnd) { bool result = base.Init(wnd); if (CancelBtn != null) { CancelBtn.onClick.AddListener(OnCancelBtnClick); } if (ConfirmBtn != null) { ConfirmBtn.onClick.AddListener(OnConfirmBtnClick); } return(result); }
public IUISubWnd GetSubWnd(PlayerSubWndType wndType) { IUISubWnd subWnd = null; foreach (IUISubWnd wnd in m_SubWndList) { if (wnd.GetWndType() == (int)wndType) { subWnd = wnd; break; } } return(subWnd); }
public override bool Init(IUISubWnd wnd) { listNameDesc.text = ULocalizationService.Instance.Get("UIView", "ClanDetail", "ListName"); listJobDesc.text = ULocalizationService.Instance.Get("UIView", "ClanDetail", "ListJob"); listGaveThisWeekDesc.text = ULocalizationService.Instance.Get("UIView", "ClanDetail", "ListGaveThisWeek"); listPowerDesc.text = ULocalizationService.Instance.Get("UIView", "ClanDetail", "ListPower"); listRankDesc.text = ULocalizationService.Instance.Get("UIView", "ClanDetail", "ListRank"); listGradeDesc.text = ULocalizationService.Instance.Get("UIView", "ClanDetail", "ListGrade"); listStatusDesc.text = ULocalizationService.Instance.Get("UIView", "ClanDetail", "ListStatus"); listKinDesc.text = ULocalizationService.Instance.Get("UIView", "ClanDetail", "ListKin"); autoShowLeaveTog.isOn = true; return(base.Init(wnd)); }
public override bool Init(IUISubWnd wnd) { base.Init(wnd); musicOn.text = ULocalizationService.Instance.Get("UIView", "SystemAudioView", "musicOn"); mainMusic.text = ULocalizationService.Instance.Get("UIView", "SystemAudioView", "mainMusic"); bgmMusic.text = ULocalizationService.Instance.Get("UIView", "SystemAudioView", "bgmMusic"); skillMusic.text = ULocalizationService.Instance.Get("UIView", "SystemAudioView", "skillMusic"); systemMusic.text = ULocalizationService.Instance.Get("UIView", "SystemAudioView", "systemMusic"); speechMusic.text = ULocalizationService.Instance.Get("UIView", "SystemAudioView", "speechMusic"); //xmlNode = GameSettingsXmlManager.Instance.GameSettingsModel; InitAudioData(); return(true); }
//public override void Awake() //{ // base.Awake(); // runePageWnd = (RunePageWnd)m_wnd; // SetAllButtonRightListen(); // RuneComboboxList.OnSelect.AddListener(ComboboxSelect); // SetButtonState(false); // RuneTypeTree.DefaultColor = Color.white; // RuneTypeTree.SelectedColor = Color.white; // RuneTypeTree.HighlightedColor = Color.white; // RuneTypeTree.Start(); // ListRuneWaysInit(); //} public override bool Init(IUISubWnd wnd) { base.Init(wnd); runePageWnd = (RunePageWnd)m_wnd; SetAllButtonRightListen(); RuneComboboxList.OnSelect.AddListener(ComboboxSelect); SetButtonState(false); RuneTypeTree.DefaultColor = Color.white; RuneTypeTree.SelectedColor = Color.white; RuneTypeTree.HighlightedColor = Color.white; RuneTypeTree.Start(); ListRuneWaysInit(); return(true); }
// 初始化 public override bool Init(IUISubWnd wnd) { base.Init(wnd); masterTitleText.text = ULocalizationService.Instance.Get("UIView", "MentorshipPerson", "MasterTitleDesc"); awardTitleText.text = ULocalizationService.Instance.Get("UIView", "MentorshipPerson", "AwardTitleDesc"); prenticeFWinTitleText.text = ULocalizationService.Instance.Get("UIView", "MentorshipPerson", "PFWinTitleDesc"); prenticeFWinDescText.text = "--" + ULocalizationService.Instance.Get("UIView", "MentorshipPerson", "PFWinAwardDesc"); masterFWinTitleText.text = ULocalizationService.Instance.Get("UIView", "MentorshipPerson", "MFWinTitleDesc"); masterFWinDescText.text = "--" + ULocalizationService.Instance.Get("UIView", "MentorshipPerson", "MFWinAwardDesc"); fPrenticeTitleText.text = ULocalizationService.Instance.Get("UIView", "MentorshipPerson", "MyFPrenticeTitleDesc"); iPrenticeTitleText.text = ULocalizationService.Instance.Get("UIView", "MentorshipPerson", "MyIPrenticeTitleDesc"); masterItemSelectImage.enabled = false; OnShipValDropdownChanged(); ShowMentorshipAwardData(); UpdateBtnState(true); m_curSelMasterShipID = 0; m_curSelMasterName = ""; for (int i = 0; i < listMasterItem.Length; ++i) { listMasterItem[i].SetWndView(this, i); listMasterItem[i].Clear(); } for (int i = 0; i < listFPrenticeItem.Length; ++i) { listFPrenticeItem[i].SetWndView(this); listFPrenticeItem[i].Clear(); } for (int i = 0; i < listIPrenticeItem.Length; ++i) { listIPrenticeItem[i].SetWndView(this); listIPrenticeItem[i].Clear(); } return(true); }
public override bool Init(IUISubWnd wnd) { ClanDetailWnd clanDetailWnd = wnd as ClanDetailWnd; if (clanDetailWnd != null) { clanDetailWnd.InitSubWndContainer(confineFrame); } acceptMemberBtnText.text = ULocalizationService.Instance.Get("UIView", "ClanDetail", "AcceptMemberBtn"); giveCardBtnText.text = ULocalizationService.Instance.Get("UIView", "ClanDetail", "GiveCardBtn"); quitClanBtnText.text = ULocalizationService.Instance.Get("UIView", "ClanDetail", "QuitBtn"); clanListBtnText.text = ULocalizationService.Instance.Get("UIView", "ClanList", "ClanListTitle"); clanInfoTitleText.text = ULocalizationService.Instance.Get("UIView", "ClanDetail", "ClanInfoTitle"); clanInfoName.text = ULocalizationService.Instance.Get("UIView", "ClanDetail", "ClanInfoName"); clanInfoLeader.text = ULocalizationService.Instance.Get("UIView", "ClanDetail", "ClanInfoLeader"); clanInfoTotalFight.text = ULocalizationService.Instance.Get("UIView", "ClanDetail", "ClanInfoTotalFight"); clanInfoRank.text = ULocalizationService.Instance.Get("UIView", "ClanDetail", "ClanInfoRank"); clanInfoMemberCount.text = ULocalizationService.Instance.Get("UIView", "ClanDetail", "ClanInfoMemberCount"); clanInfoKinCount.text = ULocalizationService.Instance.Get("UIView", "ClanDetail", "ClanInfoKinCount"); clanInfoWeekActivity.text = ULocalizationService.Instance.Get("UIView", "ClanDetail", "ClanInfoWeekActivity"); clanInfoWeekActivity.GetComponentInParent <UTooltipTrigger>().SetText(UTooltipParamName.BodyText, ULocalizationService.Instance.Get("UIView", "ClanDetail", "ClanInfoWeekActivityTooltip")); selfInfoTitleText.text = ULocalizationService.Instance.Get("UIView", "ClanDetail", "SelfInfoTitle"); selfInfoJob.text = ULocalizationService.Instance.Get("UIView", "ClanDetail", "SelfInfoJob"); selfInfoGaveThisWeek.text = ULocalizationService.Instance.Get("UIView", "ClanDetail", "SelfInfoGaveThisWeek"); selfInfoGaveTotal.text = ULocalizationService.Instance.Get("UIView", "ClanDetail", "SelfInfoGaveTotal"); clanNoticeTitleText.text = ULocalizationService.Instance.Get("UIView", "ClanDetail", "ClanNoticeTitle"); dismissCountdown.GetComponent <UTooltipTrigger>().SetText(UTooltipParamName.BodyText, ULocalizationService.Instance.Get("UIView", "ClanDetail", "DismissCountdownTip")); //legendCupBtnText.text = "联盟杯赛"; String CreateCupDesc = ULocalizationService.Instance.Get("UIView", "ClanDetail", "CreateLegendCupDes"); UBB.toHtml(ref CreateCupDesc, UBB_FORMAT_TYPE.UGUI); CreateCupText.text = CreateCupDesc; CreateCupText.gameObject.SetActive(false); NoticeInputField.enabled = false; NoticeEditBtn.gameObject.SetActive(false); NoticeSaveBtn.gameObject.SetActive(false); m_curButtonIndex = ClanListFrameButtonType.BTN_CLAN_MEMBER; SetTailFrameButtonVisible(m_curButtonIndex); return(base.Init(wnd)); }
public override bool Init(IUISubWnd wnd) { base.Init(wnd); if (mentorshipWnd != null) { mentorshipWnd.InitSubWndContainer(contentFrame); } personBtnText.text = ULocalizationService.Instance.Get("UIView", "MentorshipWnd", "PersonBtnDes"); masterIssueBtnText.text = ULocalizationService.Instance.Get("UIView", "MentorshipWnd", "MasterIssueBtnDes"); prenticeIssueBtnText.text = ULocalizationService.Instance.Get("UIView", "MentorshipWnd", "PrenticeIssueBtnDes"); masterLevelTitleText.text = String.Format(ULocalizationService.Instance.Get("UIView", "MentorshipWnd", "MasterLevelTitleDes"), MentorshipConfig.Instance.tMentorshipConfig.nMasterNeedLevel); return(true); }
public override bool Init(IUISubWnd wnd) { switchDis[0] = ULocalizationService.Instance.Get("UIView", "SystemDisplayView", "switchOn"); switchDis[1] = ULocalizationService.Instance.Get("UIView", "SystemDisplayView", "switchOff"); obViewUILabel[0] = ULocalizationService.Instance.Get("UIView", "SystemDisplayView", "obViewUIAll"); obViewUILabel[1] = ULocalizationService.Instance.Get("UIView", "SystemDisplayView", "obViewUIPart"); obViewUILabel[2] = ULocalizationService.Instance.Get("UIView", "SystemDisplayView", "obViewUINone"); roleName.text = ULocalizationService.Instance.Get("UIView", "SystemDisplayView", "roleName"); kinName.text = ULocalizationService.Instance.Get("UIView", "SystemDisplayView", "kinName"); clanName.text = ULocalizationService.Instance.Get("UIView", "SystemDisplayView", "clanName"); selfBlood.text = ULocalizationService.Instance.Get("UIView", "SystemDisplayView", "selfBlood"); bloodInfo.text = ULocalizationService.Instance.Get("UIView", "SystemDisplayView", "bloodInfo"); obTopInfo.text = ULocalizationService.Instance.Get("UIView", "SystemDisplayView", "obTopInfo"); obViewUI.text = ULocalizationService.Instance.Get("UIView", "SystemDisplayView", "obViewUI"); InitDisplayData(); return(base.Init(wnd)); }
public override bool Init(IUISubWnd wnd) { levelDis[0] = ""; levelDis[1] = ULocalizationService.Instance.Get("UIView", "SystemVedioView", "LevelFast"); levelDis[2] = ULocalizationService.Instance.Get("UIView", "SystemVedioView", "LevelGood"); levelDis[3] = ULocalizationService.Instance.Get("UIView", "SystemVedioView", "LevelHigh"); levelDis[4] = ULocalizationService.Instance.Get("UIView", "SystemVedioView", "LevelBest"); adjustLabel.text = ULocalizationService.Instance.Get("UIView", "SystemVedioView", "adjustLabel"); adjustDesc.text = ULocalizationService.Instance.Get("UIView", "SystemVedioView", "adjustDesc"); fullScreenLabel.text = ULocalizationService.Instance.Get("UIView", "SystemVedioView", "fullScreenLabel"); //lowLevel.text = ULocalizationService.Instance.Get("UIView", "SystemVedioView", "lowLevel"); //middleLevel.text = ULocalizationService.Instance.Get("UIView", "SystemVedioView", "middleLevel"); //highLevel.text = ULocalizationService.Instance.Get("UIView", "SystemVedioView", "highLevel"); //bestLevel.text = ULocalizationService.Instance.Get("UIView", "SystemVedioView", "bestLevel"); imageLabel.text = ULocalizationService.Instance.Get("UIView", "SystemVedioView", "imageLabel"); shadowLabel.text = ULocalizationService.Instance.Get("UIView", "SystemVedioView", "shadowLabel"); sceneLabel.text = ULocalizationService.Instance.Get("UIView", "SystemVedioView", "sceneLabel"); effectLabel.text = ULocalizationService.Instance.Get("UIView", "SystemVedioView", "effectLabel"); textureLabel.text = ULocalizationService.Instance.Get("UIView", "SystemVedioView", "textureLabel"); //pixelLightLabel.text = ULocalizationService.Instance.Get("UIView", "SystemVedioView", "pixelLightLabel"); //waterLabel.text = ULocalizationService.Instance.Get("UIView", "SystemVedioView", "waterLabel"); tips.text = ULocalizationService.Instance.Get("UIView", "SystemVedioView", "tips"); SSAODesc.text = ULocalizationService.Instance.Get("UIView", "SystemVedioView", "SSAODesc"); FXAADesc.text = ULocalizationService.Instance.Get("UIView", "SystemVedioView", "FXAADesc"); bloomAndFlaresDesc.text = ULocalizationService.Instance.Get("UIView", "SystemVedioView", "bloomAndFlaresDesc"); shadowDesc.text = ULocalizationService.Instance.Get("UIView", "SystemVedioView", "shadowDesc"); textureDesc.text = ULocalizationService.Instance.Get("UIView", "SystemVedioView", "textureDesc"); AdvanceImangeEffectDesc.text = ULocalizationService.Instance.Get("UIView", "SystemVedioView", "AdvanceImangeEffectDesc"); ModifyGameBrightnessDesc.text = ULocalizationService.Instance.Get("UIView", "SystemVedioView", "ModifyGameBrightnessDesc"); ResetGameBrightnessBtnDesc.text = ULocalizationService.Instance.Get("UIView", "SystemVedioView", "ResetGameBrightnessBtnDesc"); foreach (Text txt in normalDesc) { txt.text = ULocalizationService.Instance.Get("UIView", "SystemVedioView", "normalDesc"); } //不需要自动调整了 AutoSetting.gameObject.SetActive(false); SetResolutionData(); SetVedioData(); return(base.Init(wnd)); }
public override bool Init(IUISubWnd wnd) { base.Init(wnd); KeyCodeTree.Start(); keycodeGroupLabel = ULocalizationService.Instance.Get("UIView", "SystemOBControlView", "GroupLabel").Split(';'); Dictionary <int, List <SchemeOBControl.SchemeOBCtrlKeyCodeNode> > nodeList = SchemeOBControl.Instance.SchemeOBCtrlKeyCodeNodeMap; var treeRoot = new ObservableList <TreeNode <UOBKeyCodeCtrlTreeItemData> >(); foreach (KeyValuePair <int, List <SchemeOBControl.SchemeOBCtrlKeyCodeNode> > kvp in nodeList) { if (kvp.Value == null || kvp.Value.Count == 0) { continue; } string szGroupName = keycodeGroupLabel.Length >= kvp.Key ? keycodeGroupLabel[kvp.Key - 1] : ""; var node = new UOBKeyCodeCtrlTreeItemData(kvp.Key.ToString(), null); node.nGroupID = kvp.Key; node.szGroupName = szGroupName; TreeNode <UOBKeyCodeCtrlTreeItemData> tree_node = new TreeNode <UOBKeyCodeCtrlTreeItemData>(node, new ObservableList <TreeNode <UOBKeyCodeCtrlTreeItemData> >(), true); foreach (SchemeOBControl.SchemeOBCtrlKeyCodeNode schemeNode in kvp.Value) { var leaf = new UOBKeyCodeCtrlTreeItemData(schemeNode.nGroup.ToString(), null); leaf.nGroupID = schemeNode.nGroup; leaf.szGroupName = szGroupName; leaf.szLabel = schemeNode.szLabel; leaf.szKeyCode = schemeNode.szKeyCode; TreeNode <UOBKeyCodeCtrlTreeItemData> tree_leaf = new TreeNode <UOBKeyCodeCtrlTreeItemData>(leaf, new ObservableList <TreeNode <UOBKeyCodeCtrlTreeItemData> >(), false); tree_node.Nodes.Add(tree_leaf); } treeRoot.Add(tree_node); } KeyCodeTree.Nodes = treeRoot; return(true); }
// 接受消息 public override void OnMessage(WndMsgID msgID, UIMsgData msgData) { UIMsgCmdData data = msgData as UIMsgCmdData; switch (msgID) { case WndMsgID.WND_MSG_COMMOM_STATICGAMESTATE_LEAVE: { SetVisible(false); } break; case WndMsgID.WND_MSG_MAILBOX_OPEN: { UpdateMailBox(); } break; case WndMsgID.WND_MSG_COMMON_LOGINMOBA: { this.UnloadView(); } break; // WND_MAIL case WndMsgID.WND_MSG_MAIL_REQUESTMAILBASELIST: case WndMsgID.WND_MSG_MAIL_DETAILINFO: case WndMsgID.WND_MSG_MAIL_REQFASTRECVPLUS: case WndMsgID.WND_MSG_MAIL_RECVPLUSSUCCESS: { IUISubWnd mailWnd = GetSubWnd(MailBoxSubWndType.WND_MAIL); if (mailWnd != null) { mailWnd.OnMessage(msgID, msgData); } } break; default: break; } }
public override bool Init(IUISubWnd wnd) { m_timeAxisMap = new List <string>(); m_timeAxisItemList = new List <GloryMomentTimeAxisItem>(); m_videoDataList = new List <CaptureVideoData>(); m_ImgDataList = new List <CaptureImgData>(); m_currentPageType = EMGloryMomentPageType.EMPage_Image; m_currentDataShowType = EMGloryMomentDataShowType.EMType_All; //侦听列表滚动事件,不能用 OnEndScrolling 因为这个是在延迟一定时间后发出的,数据对不上 GloryMomentList.OnStartScrolling.AddListener(OnGloryMomentListStartScrolling); TimeAxisHandle.Init(this); ImgShareView.Init(this); VideoPlayView.Init(this); LogicDataCenter.screenCaptureDataManager.ReLoad(); bRecOpen = GameSettingConfig.Instance.GetGameSettingBoolValue(GameSettingIndex.OpenScrenRec); RecToggle.isOn = bRecOpen; SliderObj.SetActive(!bRecOpen); if (PageBtnList.Count() >= 2) { imgRedPoint = URedPointTip.CreateRedPointObject(PageBtnList[(int)EMGloryMomentPageType.EMPage_Image], RedPointOffset_x, RedPointOffset_y); if (imgRedPoint != null) { imgRedPoint.SetTipCount(CaptureScreen.GetInstance().WarImgCount); } videoRedPoint = URedPointTip.CreateRedPointObject(PageBtnList[(int)EMGloryMomentPageType.EMPage_Video], RedPointOffset_x, RedPointOffset_y); if (videoRedPoint != null) { videoRedPoint.SetTipCount(ScreenREC.GetInstance().WarVideoCount); } } RefreshTimeAxis(); RefreshDataList(); RefreshTipPart(); return(base.Init(wnd)); }
public virtual void OnTimer(int nTimerID) { switch (nTimerID) { case (int)SocialTimerID.TimerID_RequestClanList: { IUISubWnd clanListWnd = GetSubWnd(SocialSubWndType.WND_CLANLIST); if (clanListWnd == null || !clanListWnd.IsVisible()) { break; } (clanListWnd as ClanListWnd).OnTimer(nTimerID); } break; default: break; } }
public override bool Init(IUISubWnd wnd) { SerchInfo = SerchTI.GetComponent <InputField>(); HeadName.text = ULocalizationService.Instance.Get("UIView", "KinList", "HeadName"); HeadCount.text = ULocalizationService.Instance.Get("UIView", "KinList", "HeadCount"); HeadMasterName.text = ULocalizationService.Instance.Get("UIView", "KinList", "HeadMasterName"); HeadJoinedDes.text = ULocalizationService.Instance.Get("UIView", "KinList", "HeadJoinedDes"); HeadApplyDes.text = ULocalizationService.Instance.Get("UIView", "KinList", "HeadApplyDes"); KinCreateBtnDes.text = ULocalizationService.Instance.Get("UIView", "KinList", "KinCreateBtnDes"); KinApplayBtnDes.text = ULocalizationService.Instance.Get("UIView", "KinList", "KinApplayBtnDes"); searchPlaceHolder.text = ULocalizationService.Instance.Get("UIView", "KinList", "searchPlaceHolder"); prevPageBtn.onClick.AddListener(OnPrevPageBtn); nextPageBtn.onClick.AddListener(OnNextPageBtn); pageText.text = ""; m_nMaxPage = 0; m_nCurPage = 0; return(base.Init(wnd)); }
// 接受消息 public override void OnMessage(WndMsgID msgID, UIMsgData msgData) { UIMsgCmdData data = msgData as UIMsgCmdData; switch (msgID) { case WndMsgID.WND_MSG_CLAN_UPDATEMEMBER: { IUISubWnd clanMemberWnd = GetSubWnd(ClanListFrameWndType.WND_CLAN_MEMBER); if (clanMemberWnd != null) { clanMemberWnd.OnMessage(msgID, msgData); } } break; case WndMsgID.WND_MSG_CLAN_UPDATE_REQUESTCARDTIP: { if (m_wndView != null) { m_wndView.OnUpdateRequestcardTip(); } } break; case WndMsgID.WND_MSG_CLAN_BASEDATA: { if (m_wndView != null) { m_wndView.OnUpdateClanBaseData(); } } break; case WndMsgID.WND_MSG_CLAN_APPLY_MEMBER_TIP: { if (m_wndView != null) { m_wndView.OnUpdateAcceptMemberTip(); } } break; case WndMsgID.WND_MSG_CLAN_REQUESTCARD: { if (m_wndView != null) { m_wndView.OnGroupClanDonateBtnClick(true); } } break; case WndMsgID.WND_MSG_CLAN_REQUEST_CARDLIST: case WndMsgID.WND_MSG_CLAN_REQUEST_CARDLIST_INFO: case WndMsgID.WND_MSG_CLAN_UPDATE_CARDLIST: case WndMsgID.WND_MSG_CLAN_UPDATE_DONATELOG: { IUISubWnd clanDonateWnd = GetSubWnd(ClanListFrameWndType.WND_CLAN_DONATE); if (clanDonateWnd != null) { clanDonateWnd.OnMessage(msgID, msgData); } } break; case WndMsgID.WND_MSG_CLAN_RECV_EVENTLIST: { IUISubWnd clanEventWnd = GetSubWnd(ClanListFrameWndType.WND_CLAN_EVENT); if (clanEventWnd != null) { clanEventWnd.OnMessage(msgID, msgData); } } break; case WndMsgID.WND_MSG_CLAN_STATE_NOTICE: { if (m_wndView != null) { m_wndView.OnClanStateChange(); } } break; default: break; } }
public override void OnMessage(WndMsgID msgID, UIMsgData data) { switch (msgID) { case WndMsgID.WND_MSG_COMMOM_STATICGAMESTATE_LEAVE: { } break; case WndMsgID.WND_MSG_REFRESHCHARTRANKINGDATA: { if (m_wndView != null) { UChartRankingMsgData msgData = data as UChartRankingMsgData; m_wndView.RefreshRanking(msgData.nRanking, msgData.bShow); } } break; case WndMsgID.WND_MSG_RECVREQUESTROLERANKDATA: case WndMsgID.WND_MSG_RECVREQUESTKILLRANKDATA: { IUISubWnd roleChartWnd = GetSubWnd(EMChartSubWndType.EMWNDTYPE_ROLE); if (roleChartWnd != null) { roleChartWnd.OnMessage(msgID, data); } } break; case WndMsgID.WND_MSG_RECVREQUEST_KING_OF_HERO_CHARTDATA: case WndMsgID.WND_MSG_RECVREQUESTHERORANKDATA: case WndMsgID.WND_MSG_RECVREQUESTHEROTYPECHARTDATA: { IUISubWnd heroChartWnd = GetSubWnd(EMChartSubWndType.EMWNDTYPE_HERO); if (heroChartWnd != null) { heroChartWnd.OnMessage(msgID, data); } } break; case WndMsgID.WND_MSG_RECVREQUESTCLANCHARTDATA: { IUISubWnd clanChartWnd = GetSubWnd(EMChartSubWndType.EMWNDTYPE_CLAN); if (clanChartWnd != null) { clanChartWnd.OnMessage(msgID, data); } } break; case WndMsgID.WND_MSG_RECVREQUESTKINCHARTDATA: { IUISubWnd kinChartWnd = GetSubWnd(EMChartSubWndType.EMWNDTYPE_KIN); if (kinChartWnd != null) { kinChartWnd.OnMessage(msgID, data); } } break; case WndMsgID.WND_MSG_RECVREQUESTCURWEEKMASTERCHARTDATA: case WndMsgID.WND_MSG_RECVREQUESTCURWEEKPRENTICECHARTDATA: case WndMsgID.WND_MSG_RECVREQUESTLASTWEEKMASTERCHARTDATA: case WndMsgID.WND_MSG_RECVREQUESTLASTWEEKPRENTICECHARTDATA: { IUISubWnd kinChartWnd = GetSubWnd(EMChartSubWndType.EMWNDTYPE_MENTEROSHIP); if (kinChartWnd != null) { kinChartWnd.OnMessage(msgID, data); } } break; case WndMsgID.WND_MSG_RECVREQUESTDONATECHARTDATA: { IUISubWnd donateChartWnd = GetSubWnd(EMChartSubWndType.EMWNDTYPE_DONATIONCARD); if (donateChartWnd != null) { donateChartWnd.OnMessage(msgID, data); } } break; case WndMsgID.WND_MSG_RECVREQUESTHEROCOUNTCHARTDATA: case WndMsgID.WND_MSG_RECVREQUESTSKINCHARTDATA: case WndMsgID.WND_MSG_RECVREQUESTGEMSTONECHARTDATA: { IUISubWnd donateChartWnd = GetSubWnd(EMChartSubWndType.EMWNDTYPE_COLLECTION); if (donateChartWnd != null) { donateChartWnd.OnMessage(msgID, data); } } break; case WndMsgID.WND_MSG_RECVREQUSETSEARCHDATA: { foreach (IUISubWnd wnd in m_SubWndList) { wnd.OnMessage(msgID, data); } } break; default: break; } }
public override void OnMessage(WndMsgID msgID, UIMsgData data) { switch (msgID) { case WndMsgID.WND_MSG_PLAYERBUTTONFRAME_OPENFRAME: { //UISystem.Instance.ShowWnd(WndID.WND_ID_SOCIALCONTACT, false); //UISystem.Instance.ShowWnd(WndID.WND_ID_CHART, false); SetVisible(true); if (m_wndView != null) { OnMsgOpenFrame(data); } } break; case WndMsgID.WND_MSG_COMMOM_STATICGAMESTATE_ENTER: { LoadView(); } break; case WndMsgID.WND_MSG_COMMOM_STATICGAMESTATE_LEAVE: { //SetVisible(false); UnloadView(); } break; case WndMsgID.WND_MSG_PLAYERINFO_INITINFO: { IUISubWnd playerInfoWnd = GetSubWnd(PlayerSubWndType.WND_PLAYER); if (playerInfoWnd != null) { playerInfoWnd.OnMessage(msgID, data); } } break; case WndMsgID.WND_MSG_PLAYERWARSTATISTIC_UPDATEWAR: case WndMsgID.WND_MSG_PLAYERWARSTATISTIC_VIEWSINGLEWAR: { IUISubWnd playerWarWnd = GetSubWnd(PlayerSubWndType.WND_WAR); if (playerWarWnd != null) { playerWarWnd.OnMessage(msgID, data); } } break; case WndMsgID.WND_MSG_HEROPREVIEWFRAME_GETHEROINFO: case WndMsgID.WND_MSG_HERODETAIL_UPDATEGOLD: { IUISubWnd playerHeroWnd = GetSubWnd(PlayerSubWndType.WND_HERO); if (playerHeroWnd != null) { playerHeroWnd.OnMessage(msgID, data); } } break; case WndMsgID.WND_MSG_RUNEPAGE_INITRUNEDATA: case WndMsgID.WND_MSG_RUNEPAGE_INITOTHERRUNEDATA: case WndMsgID.WND_MSG_RUNEPAGE_PUTRUNE: case WndMsgID.WND_MSG_RUNEPAGE_CHANGEPAGE: case WndMsgID.WND_MSG_WAR_MAIN_OPEN: { IUISubWnd playerRuneWnd = GetSubWnd(PlayerSubWndType.WND_RUNE); if (playerRuneWnd != null) { playerRuneWnd.OnMessage(msgID, data); } } break; case WndMsgID.WND_MSG_PLAYERWARSTATISTIC_UPDATETOTAL: { IUISubWnd playerInfoWnd = GetSubWnd(PlayerSubWndType.WND_PLAYER); if (playerInfoWnd != null) { playerInfoWnd.OnMessage(msgID, data); } IUISubWnd playerWarWnd = GetSubWnd(PlayerSubWndType.WND_WAR); if (playerWarWnd != null) { playerWarWnd.OnMessage(msgID, data); } } break; case WndMsgID.WND_MSG_PLAYERWARSTATISTIC_VIEWACTORWAR: { IUISubWnd playerWarWnd = GetSubWnd(PlayerSubWndType.WND_WAR); if (playerWarWnd != null) { playerWarWnd.OnMessage(msgID, data); } } break; case WndMsgID.WND_MSG_PLAYERINFO_REANMERESULT: { IUISubWnd playerInfoWnd = GetSubWnd(PlayerSubWndType.WND_PLAYER); if (playerInfoWnd != null) { playerInfoWnd.OnMessage(msgID, data); } } break; case WndMsgID.WND_MSG_CROWNPAGE_UPDATEVIEW: case WndMsgID.WND_MSG_CROWNPAGE_OTHERUPDATEVIEW: case WndMsgID.WND_MSG_CROWNPAGE_OTHERPAGESINGLESHOW: case WndMsgID.WND_MSG_CROWNPAGE_SELFPAGESINGLESHOW: case WndMsgID.WND_MSG_CROWNPAGE_APPRAISALRET: case WndMsgID.WND_MSG_CROWNPAGE_ACTIVEGEMMODEL: { //IUISubWnd crownInfoWnd = GetSubWnd(PlayerSubWndType.WND_CROWN); IUIWnd crownInfoWnd = GetSubUIWnd(PlayerSubWndType.WND_CROWN); if (crownInfoWnd != null) { crownInfoWnd.OnMessage(msgID, data); } } break; case WndMsgID.WND_MSG_OPEN_SOCIALSHARE_FRAME: case WndMsgID.WND_MSG_OPEN_GLORYMOMENT_VIDEO_FRAME: case WndMsgID.WND_MSG_OPEN_GLORYMOMENT_WARDATA: { if (m_wndView != null && m_wndView.GetCurSubWnd() != PlayerSubWndType.WND_MOMENT) { if (EntityFactory.MainHeroView != null) { UIButtonType ButtonType = new UIButtonType((int)PlayerSubWndType.WND_MOMENT); ButtonType.bIsRequestSelf = true; ButtonType.nRequestPDBID = EntityFactory.MainHeroView.Property.GetNumProp(ENTITY_PROPERTY.PROPERTY_ID); OnMsgOpenFrame(ButtonType); } } IUISubWnd playerMomentWnd = GetSubWnd(PlayerSubWndType.WND_MOMENT); if (playerMomentWnd != null) { playerMomentWnd.OnMessage(msgID, data); } } break; default: break; } }
public override bool Init(IUISubWnd wnd) { return(base.Init(wnd)); }
// 初始化 public virtual bool Init(IUISubWnd wnd) { m_wnd = wnd; return(true); }