public override void SetComponent() { this.m_BG = (base.GetControl("Main_BG") as DrawTexture); this.m_BG.SetTextureFromBundle("UI/Exploration/MainBG"); this.m_Continue = (base.GetControl("Continue_Btn") as Button); this.m_Continue.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickContinue)); this.m_Continue.EffectAni = false; this.m_Close = (base.GetControl("End_Btn") as Button); this.m_Close.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickClose)); this.m_Skip = (base.GetControl("Skip_Btn") as Button); this.m_Skip.SetSize(GUICamera.width, GUICamera.height); this.m_Skip.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickSkip)); this.m_Skip.Visible = false; this.m_BG = (base.GetControl("DrawTexture_will1") as DrawTexture); this.m_lb_WillNum = (base.GetControl("Label_WillNum") as Label); this.m_lbActivityTime = (base.GetControl("Will_Time_Label") as Label); this.m_ResultText = (base.GetControl("Result_Label") as Label); this.m_ResultText.Visible = false; base.ShowLayer(1); base.SetScreenCenter(); string str = string.Format("{0}", "UI/Exploration/fx_direct_exploere" + NrTSingleton <UIDataManager> .Instance.AddFilePath); WWWItem wWWItem = Holder.TryGetOrCreateBundle(str + Option.extAsset, NkBundleCallBack.UIBundleStackName); wWWItem.SetItemType(ItemType.USER_ASSETB); wWWItem.SetCallback(new PostProcPerItem(this.ExplorationPlay1), null); TsImmortal.bundleService.RequestDownloadCoroutine(wWWItem, DownGroup.RUNTIME, true); string str2 = string.Format("{0}", "UI/Exploration/fx_direct_treasurebox" + NrTSingleton <UIDataManager> .Instance.AddFilePath); WWWItem wWWItem2 = Holder.TryGetOrCreateBundle(str2 + Option.extAsset, NkBundleCallBack.UIBundleStackName); wWWItem2.SetItemType(ItemType.USER_ASSETB); wWWItem2.SetCallback(new PostProcPerItem(this.ExplorationPlay2), null); TsImmortal.bundleService.RequestDownloadCoroutine(wWWItem2, DownGroup.RUNTIME, true); UIDataManager.MuteSound(true); }
public override void OnClose() { UIDataManager.MuteSound(false); TsAudioManager.Instance.AudioContainer.RemoveUI("CHAOSTOWER_START"); base.OnClose(); NrTSingleton <FormsManager> .Instance.CloseForm(G_ID.CHALLENGE_DLG); }
public override void OnClose() { this.HideUIGuide(); NrTSingleton <FormsManager> .Instance.CloseForm(G_ID.BABELTOWERSUB_DLG); NrTSingleton <FormsManager> .Instance.CloseForm(G_ID.BABELTOWER_OPENROOMLIST_DLG); NrTSingleton <FormsManager> .Instance.Main_UI_Show(FormsManager.eMAIN_UI_VISIBLE_MODE.COMMON); UIDataManager.MuteSound(false); if (null != BugFixAudio.PlayOnceRoot) { int childCount = BugFixAudio.PlayOnceRoot.transform.childCount; for (int i = 0; i < childCount; i++) { Transform child = BugFixAudio.PlayOnceRoot.transform.GetChild(i); if (child != null) { UnityEngine.Object.Destroy(child.gameObject); } } } base.OnClose(); NrTSingleton <ChallengeManager> .Instance.ShowNotice(); NrTSingleton <ChallengeManager> .Instance.CalcContinueRewardNoticeCount(); NrTSingleton <ChallengeManager> .Instance.CalcDayRewardNoticeCount(); NrTSingleton <FormsManager> .Instance.CloseForm(G_ID.CHALLENGE_DLG); }
public override void SetComponent() { this.m_Title1 = (base.GetControl("Label_Text01") as Label); this.m_Title2 = (base.GetControl("Label_Text02") as Label); this.m_Title1.Visible = false; this.m_Title2.Visible = false; UIDataManager.MuteSound(true); base.SetScreenCenter(); }
public override void OnClose() { UIDataManager.MuteSound(false); if (null != this.rootGameObject) { UnityEngine.Object.Destroy(this.rootGameObject); } Resources.UnloadUnusedAssets(); }
public void RequestBabelMacroStopAndAutoBattle(object a_oObject) { if (NrTSingleton <NkBabelMacroManager> .Instance.IsMacro()) { NrTSingleton <NkBabelMacroManager> .Instance.SetStatus(eBABEL_MACRO_STATUS.eBABEL_MACRO_STATUS_NONE, 0f); UIDataManager.MuteSound(false); NrTSingleton <NkBabelMacroManager> .Instance.SetStop(false); } }
public void RestoreDailyDungeonDlg() { if (this.m_goPlayAni != null) { this.m_goPlayAni.SetActive(false); } this.m_bRestoreReserve = false; base.SetShowLayer(1, true); this.SetBasicData(this.m_nDayOfWeek, false); UIDataManager.MuteSound(false); }
public override void SetComponent() { this.m_btRepeatStop = (base.GetControl("Button_RepeatStop") as Button); Button expr_1C = this.m_btRepeatStop; expr_1C.Click = (EZValueChangedDelegate)Delegate.Combine(expr_1C.Click, new EZValueChangedDelegate(this.OnStopBabelRepeat)); this.m_dtBack = (base.GetControl("Main_BG") as DrawTexture); UIDataManager.MuteSound(true); this.m_dtBack.SetTextureFromBundle(this.m_LoadingImg); this._SetDialogPos(); }
public override void SetComponent() { base.SetSize(GUICamera.width, GUICamera.height); string str = string.Format("{0}", "UI/ETC/fx_direct_credit" + NrTSingleton <UIDataManager> .Instance.AddFilePath); WWWItem wWWItem = Holder.TryGetOrCreateBundle(str + Option.extAsset, NkBundleCallBack.UIBundleStackName); wWWItem.SetItemType(ItemType.USER_ASSETB); wWWItem.SetCallback(new PostProcPerItem(this.ShowCredit), null); TsImmortal.bundleService.RequestDownloadCoroutine(wWWItem, DownGroup.RUNTIME, true); UIDataManager.MuteSound(true); }
public override void SetComponent() { this.bgImage = (base.GetControl("DrawTexture_BG01") as DrawTexture); Texture2D texture2D = CResources.Load(NrTSingleton <UIDataManager> .Instance.FilePath + "Texture/bg_solcompose") as Texture2D; if (null != texture2D) { this.bgImage.SetSize(GUICamera.width, GUICamera.height); this.bgImage.SetTexture(texture2D); } this.lbExtractItemCount = (base.GetControl("Label_Extract_Result") as Label); this.lbExtractItemCount.SetLocation(GUICamera.width / 2f - this.lbExtractItemCount.GetSize().x / 2f, this.lbExtractItemCount.GetLocationY(), -90f); this.lbExtractItemCount.Visible = false; this.btnOk = (base.GetControl("Button_Confirm") as Button); Button expr_E1 = this.btnOk; expr_E1.Click = (EZValueChangedDelegate)Delegate.Combine(expr_E1.Click, new EZValueChangedDelegate(this.BtnClickOk)); this.btnOk.SetLocation(GUICamera.width / 2f - this.btnOk.GetSize().x / 2f, this.btnOk.GetLocationY(), -90f); this.btnOk.Hide(true); SolComposeMainDlg solComposeMainDlg = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.SOLCOMPOSE_MAIN_DLG) as SolComposeMainDlg; if (solComposeMainDlg == null) { solComposeMainDlg = (NrTSingleton <FormsManager> .Instance.GetForm(G_ID.SOLCOMPOSE_MAIN_CHALLENGEQUEST_DLG) as SolComposeMainDlg); } if (solComposeMainDlg != null) { this.m_SolComposeMainType = solComposeMainDlg.GetSolComposeType(); if (this.m_SolComposeMainType == SOLCOMPOSE_TYPE.EXTRACT) { this.bgImage.SetTextureKey("Win_T_WH"); string str = string.Empty; str = string.Format("effect/instant/fx_direct_extraction{0}", NrTSingleton <UIDataManager> .Instance.AddFilePath); WWWItem wWWItem = Holder.TryGetOrCreateBundle(str + Option.extAsset, NkBundleCallBack.UIBundleStackName); wWWItem.SetItemType(ItemType.USER_ASSETB); wWWItem.SetCallback(new PostProcPerItem(this.SolComposeExtract), null); TsImmortal.bundleService.RequestDownloadCoroutine(wWWItem, DownGroup.RUNTIME, true); } else { string str2 = string.Empty; str2 = string.Format("UI/Soldier/fx_direct_solcompose{0}", NrTSingleton <UIDataManager> .Instance.AddFilePath); WWWItem wWWItem2 = Holder.TryGetOrCreateBundle(str2 + Option.extAsset, NkBundleCallBack.UIBundleStackName); wWWItem2.SetItemType(ItemType.USER_ASSETB); wWWItem2.SetCallback(new PostProcPerItem(this.SolComposeSuccess), null); TsImmortal.bundleService.RequestDownloadCoroutine(wWWItem2, DownGroup.RUNTIME, true); } } UIDataManager.MuteSound(true); this.SetSize(); base.DonotDepthChange(360f); this.Hide(); }
public override void SetComponent() { this.m_dtEffect = (base.GetControl("DrawTexture_Effect") as DrawTexture); this.m_lbFloor = (base.GetControl("NewListBox_floor") as NewListBox); this.m_lbFloor.AddRightMouseDelegate(new EZValueChangedDelegate(this.BtClickFloor)); this.m_lbFloor.Reserve = false; this.m_lbFloor.SelectStyle = "Com_B_Transparent"; this.m_lbFloor.AutoScroll = true; this.upButton = (base.GetControl("Button_slideup") as Button); this.downButton = (base.GetControl("Button_slidedown") as Button); BoxCollider boxCollider = (BoxCollider)this.upButton.gameObject.GetComponent(typeof(BoxCollider)); if (boxCollider != null) { boxCollider.size = new Vector3(0f, 0f, 0f); } boxCollider = (BoxCollider)this.downButton.gameObject.GetComponent(typeof(BoxCollider)); if (boxCollider != null) { boxCollider.size = new Vector3(0f, 0f, 0f); } this.up = (base.GetControl("DrawTexture_SlideBG01") as DrawTexture); this.down = (base.GetControl("DrawTexture_SlideBG02") as DrawTexture); this.downButton.SetLocation(this.downButton.GetLocation().x, this.down.GetLocationY() + 36f, this.downButton.GetLocation().z - 1.1f); this.upButton.Visible = false; this.up.Visible = false; this.m_btClose = (base.GetControl("Button_close") as Button); this.m_btClose.AddValueChangedDelegate(new EZValueChangedDelegate(this.BtClickClose)); this.m_btDlgClose = (base.GetControl("CloseButton") as Button); this.m_btDlgClose.AddValueChangedDelegate(new EZValueChangedDelegate(this.BtClickClose)); this.m_dtNotice = (base.GetControl("DT_Notice") as DrawTexture); this.m_dtNotice.Visible = false; this.m_bReward = (base.GetControl("Button_reward") as Button); this.m_bReward.AddValueChangedDelegate(new EZValueChangedDelegate(this.BtnClickReward)); this.m_bBabelTower = (base.GetControl("Button_BabelTower") as Button); this.m_bBabelTower.AddValueChangedDelegate(new EZValueChangedDelegate(this.BtnClickBabelTower)); base.SetScreenCenter(); UIDataManager.MuteSound(true); TsAudioManager.Instance.AudioContainer.RequestAudioClip("BGM", "CHAOSTOWER", "START", new PostProcPerItem(NrAudioClipDownloaded.OnEventAudioClipDownloadedImmedatePlay)); NrTSingleton <FormsManager> .Instance.AttachEffectKey("FX_BABEL_MAIN", this.m_dtEffect, this.m_dtEffect.GetSize()); NrTSingleton <NewGuildManager> .Instance.Send_GS_NEWGUILD_INFO_REQ(0); base.SetLayerZ(1, -3f); base.SetLayerZ(2, -4f); base.SetLayerZ(3, -5f); base.SetLayerZ(4, -6f); this.m_btDlgClose.SetLocationZ(this.m_btDlgClose.GetLocation().z - 6.5f); this.dlgOpenTime = PublicMethod.GetCurTime(); }
public override void OnClose() { UIDataManager.MuteSound(false); if (null != this.rootEffectGameObject) { UnityEngine.Object.Destroy(this.rootEffectGameObject); } Resources.UnloadUnusedAssets(); if (this._closeCallback != null) { this._closeCallback(); } base.OnClose(); }
public override void Show() { UIDataManager.MuteSound(false); TsAudio.StoreMuteAllAudio(); TsAudio.SetExceptMuteAllAudio(EAudioType.SFX, true); TsAudio.RefreshAllMuteAudio(); if (this.cardOpen == SolRecruitSuccess_RenewalDlg.eCardOpen.ONE) { TsAudioManager.Instance.AudioContainer.RequestAudioClip("UI_SFX", "SOULCARD", "ONECARD", new PostProcPerItem(NrAudioClipDownloaded.OnEventAudioClipDownloadedImmedatePlay), string.Empty, false); } else { TsAudioManager.Instance.AudioContainer.RequestAudioClip("UI_SFX", "SOULCARD", "MANYCARD", new PostProcPerItem(NrAudioClipDownloaded.OnEventAudioClipDownloadedImmedatePlay), string.Empty, false); } base.Show(); }
public void OnBattleOK(object a_oObject) { if (this.m_bAniPlay) { return; } if (this.m_goPlayAni == null) { return; } this.m_goPlayAni.SetActive(true); this.m_goAnimation.animation.Play(); UIDataManager.MuteSound(true); this.m_bAniPlay = true; base.SetShowLayer(1, false); }
public override void SetComponent() { this.m_btRepeatStop = (base.GetControl("Button_RepeatStop") as Button); Button expr_1C = this.m_btRepeatStop; expr_1C.Click = (EZValueChangedDelegate)Delegate.Combine(expr_1C.Click, new EZValueChangedDelegate(this.OnStopRepeat)); this.m_dtBack = (base.GetControl("Main_BG") as DrawTexture); UIDataManager.MuteSound(true); this.m_dtBack.SetTextureFromBundle(this.m_LoadingImg); base.SetLocation(0f, 0f); if (this.m_dtBack != null) { this.m_dtBack.SetSize(GUICamera.width, GUICamera.height); this.m_btRepeatStop.SetSize(GUICamera.width, GUICamera.height); } this.m_fOpenTime = Time.realtimeSinceStartup; }
public override void Update() { base.Update(); MyCharInfoDlg myCharInfoDlg = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.MYCHARINFO_DLG) as MyCharInfoDlg; if (myCharInfoDlg != null) { myCharInfoDlg.Update(); } if (this.m_bAniPlay && !this.m_goAnimation.animation.isPlaying) { SoldierBatch.DailyDungeonDifficulty = this.m_nDifficult; SoldierBatch.SOLDIER_BATCH_MODE = eSOLDIER_BATCH_MODE.MODE_DAILYDUNGEON; FacadeHandler.PushStage(Scene.Type.SOLDIER_BATCH); this.m_bAniPlay = false; this.m_bRestoreReserve = true; UIDataManager.MuteSound(false); } }
public override void OnClose() { if (null != this.m_EffectDirection) { UnityEngine.Object.Destroy(this.m_EffectDirection); } if (this.m_direction_type == DirectionDLG.eDIRECTIONTYPE.eDIRECTION_BABEL) { if (!NrTSingleton <FormsManager> .Instance.IsShow(G_ID.BABELTOWERMAIN_DLG)) { BabelTowerMainDlg babelTowerMainDlg = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.BABELTOWERMAIN_DLG) as BabelTowerMainDlg; if (babelTowerMainDlg != null) { babelTowerMainDlg.FloorType = this.m_nBabel_FloorType; babelTowerMainDlg.ShowList(); } } } else if (this.m_direction_type == DirectionDLG.eDIRECTIONTYPE.eDIRECTION_MINETUTORIAL) { MineTutorialStepDlg mineTutorialStepDlg = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.MINE_TUTORIAL_STEP_DLG) as MineTutorialStepDlg; if (mineTutorialStepDlg != null) { mineTutorialStepDlg.SetStep(1L); } UIDataManager.MuteSound(false); } else if (this.m_direction_type == DirectionDLG.eDIRECTIONTYPE.eDIRECTION_EXPLORATION) { NrTSingleton <FormsManager> .Instance.ShowForm(G_ID.EXPLORATION_DLG); } else if (this.m_direction_type == DirectionDLG.eDIRECTIONTYPE.eDIRECTION_MYTHRAID) { NrTSingleton <FormsManager> .Instance.ShowForm(G_ID.MYTHRAID_MODESELECT_DLG); } else { UIDataManager.MuteSound(false); } NrTSingleton <FormsManager> .Instance.CloseForm(G_ID.CHALLENGE_DLG); }
public override void OnClose() { SolMilitaryGroupDlg solMilitaryGroupDlg = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.SOLMILITARYGROUP_DLG) as SolMilitaryGroupDlg; if (solMilitaryGroupDlg != null) { solMilitaryGroupDlg.RefreshSolList(); } UIDataManager.MuteSound(false); if (null != this.rootGameObject) { UnityEngine.Object.Destroy(this.rootGameObject); } if (null != this.walkGameObject) { UnityEngine.Object.Destroy(this.walkGameObject); } Resources.UnloadUnusedAssets(); NrTSingleton <FormsManager> .Instance.ShowForm(G_ID.EXPLORATION_REWARD_DLG); }
public override void OnClose() { if (!this.m_bIsShowedReward) { this.ShowReward(); } base.OnClose(); UIDataManager.MuteSound(false); if (null != this.m_rootGameObject) { UnityEngine.Object.Destroy(this.m_rootGameObject); this.m_rootGameObject = null; } if (this.m_audioGO != null) { UnityEngine.Object.Destroy(this.m_audioGO); this.m_audioGO = null; } Resources.UnloadUnusedAssets(); }
public override void OnClose() { if (null != this.rootGameObject) { UnityEngine.Object.DestroyObject(this.rootGameObject.gameObject); } if (null != this.ExtractResultrootGameObject) { UnityEngine.Object.DestroyObject(this.ExtractResultrootGameObject.gameObject); } if (this.m_SolComposeMainType != SOLCOMPOSE_TYPE.EXTRACT) { NrTSingleton <FormsManager> .Instance.ShowForm(G_ID.SOLCOMPOSE_SUCCESS_DLG); if (this.m_ComposeType == 1) { SolComposeSuccessDlg solComposeSuccessDlg = (SolComposeSuccessDlg)NrTSingleton <FormsManager> .Instance.GetForm(G_ID.SOLCOMPOSE_SUCCESS_DLG); if (solComposeSuccessDlg != null) { solComposeSuccessDlg.LoadSolComposeSuccessBundle(); } } else if (this.m_ComposeType == 3) { SolComposeSuccessDlg solComposeSuccessDlg2 = (SolComposeSuccessDlg)NrTSingleton <FormsManager> .Instance.GetForm(G_ID.SOLCOMPOSE_SUCCESS_DLG); if (solComposeSuccessDlg2 != null) { solComposeSuccessDlg2.LoadSolLevelSuccessBundle(); } } NrSound.ImmedatePlay("UI_SFX", "MERCENARY-COMPOSE", "SUCCESS"); } UIDataManager.MuteSound(false); if (this._closeCallback != null) { this._closeCallback(); } base.OnClose(); }
public override void SetComponent() { this.lb_Title = (base.GetControl("LB_Title") as Label); this.nlb_CardArea1 = (base.GetControl("NLB_CardArea1") as NewListBox); this.nlb_CardArea2 = (base.GetControl("NLB_CardArea2") as NewListBox); this.dt_Back = (base.GetControl("DT_Back") as DrawTexture); this.dt_Back.SetTextureFromBundle("ui/soldier/background"); this.bt_TouchArea = (base.GetControl("BT_TouchArea") as Button); this.bt_TouchArea.Click = new EZValueChangedDelegate(this.ClickClose); this.lb_Touch = (base.GetControl("LB_Touch") as Label); Texture2D texture = NrTSingleton <UIImageBundleManager> .Instance.GetTexture("UI/pvp/cardback"); if (null != texture) { this._backBG = texture; } else { NrTSingleton <UIImageBundleManager> .Instance.RequestBundleImage("UI/pvp/cardback", new PostProcPerItem(this.SetImage)); } this.IsCloseTouch = false; UIDataManager.MuteSound(false); }
public override void OnClose() { UIDataManager.MuteSound(false); NrTSingleton <UIImageBundleManager> .Instance.DeleteTexture(this.m_LoadingImg); }
public override void SetComponent() { this.m_dtEffect = (base.GetControl("DrawTexture_Effect") as DrawTexture); this.m_lbFloor = (base.GetControl("NewListBox_floor") as NewListBox); this.m_lbFloor.SelectStyle = "Com_B_Transparent"; this.m_lbFloor.AddRightMouseDelegate(new EZValueChangedDelegate(this.BtClickFloor)); this.m_lbFloor.AddScrollDelegate(new EZScrollDelegate(this.ChangeFloorInfo)); this.m_lbFloor.AddMakeCompleteDelegate(new EZValueChangedDelegate(this.ScrollFloor)); this.m_lbFloor.Reserve = false; this.m_lbFloor.AutoScroll = true; this.m_btOpenRoomList = (base.GetControl("Button_roomlist") as Button); this.m_btOpenRoomList.AddValueChangedDelegate(new EZValueChangedDelegate(this.BtClickOpenRoomList)); this.upButton = (base.GetControl("Button_slideup") as Button); this.downButton = (base.GetControl("Button_slidedown") as Button); this.m_btInventory = (base.GetControl("BT_Inventory") as Button); this.m_btInventory.AddValueChangedDelegate(new EZValueChangedDelegate(this.OnClickInventoyOpen)); BoxCollider boxCollider = (BoxCollider)this.upButton.gameObject.GetComponent(typeof(BoxCollider)); if (boxCollider != null) { boxCollider.size = new Vector3(0f, 0f, 0f); } boxCollider = (BoxCollider)this.downButton.gameObject.GetComponent(typeof(BoxCollider)); if (boxCollider != null) { boxCollider.size = new Vector3(0f, 0f, 0f); } this.up = (base.GetControl("DrawTexture_SlideBG01") as DrawTexture); this.down = (base.GetControl("DrawTexture_SlideBG02") as DrawTexture); this.downButton.SetLocation(this.downButton.GetLocation().x, this.down.GetLocationY() + 36f, this.downButton.GetLocation().z - 1.1f); this.upButton.Visible = false; this.up.Visible = false; this.m_btClose = (base.GetControl("Button_close") as Button); this.m_btClose.AddValueChangedDelegate(new EZValueChangedDelegate(this.BtClickClose)); this.m_btGuildBoss = (base.GetControl("Button_GuildBoss") as Button); Button expr_282 = this.m_btGuildBoss; expr_282.Click = (EZValueChangedDelegate)Delegate.Combine(expr_282.Click, new EZValueChangedDelegate(this.OnClickGuildBoss)); this.m_btRepeat = (base.GetControl("Button_Repeat") as Button); Button expr_2BF = this.m_btRepeat; expr_2BF.Click = (EZValueChangedDelegate)Delegate.Combine(expr_2BF.Click, new EZValueChangedDelegate(this.OnClickRepeat)); this.m_laSolInfo = (base.GetControl("Label_soldierinfo") as Label); this.m_laSolInfo.SetLocation(this.m_laSolInfo.GetLocationX(), this.m_laSolInfo.GetLocationY(), this.m_laSolInfo.GetLocation().z - 1.7f); this.m_btSolInfo = (base.GetControl("Button_soldierinfo") as Button); Button expr_34D = this.m_btSolInfo; expr_34D.Click = (EZValueChangedDelegate)Delegate.Combine(expr_34D.Click, new EZValueChangedDelegate(this.OnClickSolInfo)); this.m_bGuildBoosicon = (base.GetControl("Box_Notice") as Box); this.m_bGuildBoosicon.Hide(true); this.m_dtLock = (base.GetControl("DT_Lock") as DrawTexture); this.m_dtLock.Visible = false; if (!NrTSingleton <ContentsLimitManager> .Instance.IsGuildBoss()) { this.m_bGuildBoosicon.Visible = false; this.m_btGuildBoss.Visible = false; } else { this.m_bGuildBoosicon.Visible = true; this.m_btGuildBoss.Visible = true; } this.m_laTitle = (base.GetControl("Label_title") as Label); this.m_dwTitleBar = (base.GetControl("DrawTexture_TitleBar") as DrawTexture); this.m_btReSelectMode = (base.GetControl("Button_Back") as Button); this.m_btReSelectMode.AddValueChangedDelegate(new EZValueChangedDelegate(this.ReSelectMode)); this.m_btReSelectMode.Visible = false; this.GuildBossCheck(); base.SetScreenCenter(); UIDataManager.MuteSound(true); NrTSingleton <FiveRocksEventManager> .Instance.Placement("babeltower_enter"); base.SetLayerZ(1, -1f); base.SetLayerZ(2, -1.2f); base.SetLayerZ(3, -1.4f); base.SetLayerZ(4, -1.6f); this.closeButton.SetLocationZ(this.m_dwTitleBar.GetLocation().z - 0.01f); NrMyCharInfo kMyCharInfo = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo; if (kMyCharInfo == null) { return; } int value = COMMON_CONSTANT_Manager.GetInstance().GetValue(eCOMMON_CONSTANT.eCOMMON_CONSTANT_BABEL_HARD_LEVEL); int level = kMyCharInfo.GetLevel(); if (level > value && kMyCharInfo.GetBabelSubFloorRankInfo(100, 4, 1) > 0) { this.m_btReSelectMode.Visible = true; } NrTSingleton <FormsManager> .Instance.CloseForm(G_ID.GUILDCOLLECT_DLG); }
public void ShowDirection(DirectionDLG.eDIRECTIONTYPE type, int sub_data = 0) { this.m_direction_type = type; if (!this.CheckDirection()) { this.Close(); return; } UIDataManager.MuteSound(true); string arg = string.Empty; this.SetDirection(this.m_direction_type); switch (this.m_direction_type) { case DirectionDLG.eDIRECTIONTYPE.eDIRECTION_COMMUNITY: arg = string.Format("{0}", "UI/Etc/fx_helpfriend" + NrTSingleton <UIDataManager> .Instance.AddFilePath); this.m_EffectShowTime = 32f; break; case DirectionDLG.eDIRECTIONTYPE.eDIRECTION_BABEL: this.m_nBabel_FloorType = (short)sub_data; if (PlayerPrefs.GetInt("BabelTowerMainDLG Effect") == 0) { arg = "Effect/Instant/fx_direct_chaostower" + NrTSingleton <UIDataManager> .Instance.AddFilePath; this.m_EffectShowTime = 17f; } else { arg = "Effect/Instant/fx_towerloading" + NrTSingleton <UIDataManager> .Instance.AddFilePath; this.m_EffectShowTime = 2.5f; } break; case DirectionDLG.eDIRECTIONTYPE.eDIRECTION_PLUNDER: { arg = string.Format("{0}", "UI/Etc/fx_herobattle" + NrTSingleton <UIDataManager> .Instance.AddFilePath); this.m_EffectShowTime = 32f; Vector3 position = new Vector3(0f, 0f, 0f); position.z = 200f; position.x = this.m_lSkip.transform.position.x; position.y = this.m_lSkip.transform.position.y; this.m_lSkip.transform.position = position; break; } case DirectionDLG.eDIRECTIONTYPE.eDIRECTION_ITEMSKILL: arg = string.Format("{0}", "UI/item/fx_direct_improvemagic" + NrTSingleton <UIDataManager> .Instance.AddFilePath); this.m_EffectShowTime = 22.2f; break; case DirectionDLG.eDIRECTIONTYPE.eDIRECTION_MINESEARCH: { if (sub_data == 1) { arg = "UI/Mine/fx_direct_forestroad" + NrTSingleton <UIDataManager> .Instance.AddFilePath; this.m_EffectShowTime = 5f; } else if (sub_data == 2) { arg = "UI/Mine/fx_direct_iceroad" + NrTSingleton <UIDataManager> .Instance.AddFilePath; this.m_EffectShowTime = 5f; } else if (sub_data == 3) { arg = "UI/Mine/fx_direct_goldroad" + NrTSingleton <UIDataManager> .Instance.AddFilePath; this.m_EffectShowTime = 5f; } else if (sub_data == 4) { arg = "UI/Mine/fx_direct_goldroad" + NrTSingleton <UIDataManager> .Instance.AddFilePath; this.m_EffectShowTime = 5f; } else if (sub_data == 5) { arg = "UI/Mine/fx_direct_goldroad" + NrTSingleton <UIDataManager> .Instance.AddFilePath; this.m_EffectShowTime = 5f; } Vector3 position2 = new Vector3(0f, 0f, 0f); position2.z = 200f; position2.x = this.m_lSkip.transform.position.x; position2.y = this.m_lSkip.transform.position.y; this.m_lSkip.transform.position = position2; break; } case DirectionDLG.eDIRECTIONTYPE.eDIRECTION_MINETUTORIAL: arg = string.Format("{0}{1}{2}", "UI/Mine/", "fx_direct_minewar", NrTSingleton <UIDataManager> .Instance.AddFilePath); this.m_EffectShowTime = 15f; break; case DirectionDLG.eDIRECTIONTYPE.eDIRECTION_EXPLORATION: arg = string.Format("{0}{1}{2}", "UI/Exploration/", "fx_direct_exploreloding", NrTSingleton <UIDataManager> .Instance.AddFilePath); this.m_EffectShowTime = 3f; break; case DirectionDLG.eDIRECTIONTYPE.eDIRECTION_MYTHRAID: UIDataManager.MuteSound(false); TsAudio.StoreMuteAllAudio(); TsAudio.SetExceptMuteAllAudio(EAudioType.UI, true); TsAudio.RefreshAllMuteAudio(); TsAudioManager.Instance.AudioContainer.RequestAudioClip("BGM", "MYTH", "START", new PostProcPerItem(NrAudioClipDownloaded.OnEventAudioClipDownloadedImmedatePlay), string.Empty, true); arg = string.Format("{0}{1}{2}", "ui/mythicraid/", "fx_direct_mythraid", NrTSingleton <UIDataManager> .Instance.AddFilePath); this.m_EffectShowTime = 3f; break; } string str = string.Format("{0}", arg); WWWItem wWWItem = Holder.TryGetOrCreateBundle(str + Option.extAsset, NkBundleCallBack.UIBundleStackName); wWWItem.SetItemType(ItemType.USER_ASSETB); wWWItem.SetCallback(new PostProcPerItem(this.SetActionDirection), null); TsImmortal.bundleService.RequestDownloadCoroutine(wWWItem, DownGroup.RUNTIME, true); }
public void OnClickClose(IUIObject obj) { UIDataManager.MuteSound(false); this.Close(); }