public override void SetComponent() { this.m_ListBox = (base.GetControl("NLB_FaceBooK") as NewListBox); this.m_btnBack = (base.GetControl("BT_Back") as Button); this.m_btnBack.AddValueChangedDelegate(new EZValueChangedDelegate(this.OnClickPrev)); this.m_btnNext = (base.GetControl("BT_Next") as Button); this.m_btnNext.AddValueChangedDelegate(new EZValueChangedDelegate(this.OnClickNext)); this.m_bxPage = (base.GetControl("Box_Page") as Box); MsgHandler.Handle("FacebookFriendDataArrage", new object[0]); this.m_InviteList = new List <FacebookUserData>(NmFacebookManager.instance.FriendsData.Values); if (this.m_InviteList != null && this.m_InviteList.Count > 0) { this.m_InviteList.Sort(new Comparison <FacebookUserData>(this.ComparerData)); } TsLog.LogWarning("m_InviteList Count = {0} NmFacebookManager.instance.FriendsData.Count = {1}", new object[] { this.m_InviteList.Count, NmFacebookManager.instance.FriendsData.Count }); this.m_nCurPage = 1; this.m_nMaxPage = this.m_InviteList.Count / 4 + 1; this.PageView(); this.RequestData(); this.UpdateList(); }
public override void SetComponent() { this.m_bEquip = (base.GetControl("Button_Button1") as Button); this.m_bEquip.AddValueChangedDelegate(new EZValueChangedDelegate(this.OnClickEquipItem)); this.m_bClose = (base.GetControl("Button_Button2") as Button); this.m_bClose.AddValueChangedDelegate(new EZValueChangedDelegate(this.OnClickClose)); ItemTooltipDlg_Second itemTooltipDlg_Second = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.ITEMTOOLTIP_SECOND_DLG) as ItemTooltipDlg_Second; TsLog.LogWarning("ItemTooltipDlg_Second GetLocation() = {0}", new object[] { itemTooltipDlg_Second.GetLocation() }); base.SetLocation(GUICamera.width - base.GetSizeX(), GUICamera.height - base.GetSizeY(), itemTooltipDlg_Second.GetLocation().z - 2f); TsLog.LogWarning("This GetLocation() = {0}", new object[] { base.GetLocation() }); ItemEvolution_Dlg itemEvolution_Dlg = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.ITEMEVOLUTION_DLG) as ItemEvolution_Dlg; if (itemEvolution_Dlg != null) { this.m_bEquip.SetEnabled(false); this.m_bEquip.Visible = false; this.m_bEquip.RemoveValueChangedDelegate(new EZValueChangedDelegate(this.OnClickEquipItem)); } base.InteractivePanel.twinFormID = G_ID.ITEMTOOLTIP_SECOND_DLG; }
public static EventTriggerInfo.EventTriggerATB ParseATB(string strATB) { string[] array = strATB.Split(new char[] { '+' }); EventTriggerInfo.EventTriggerATB eventTriggerATB = EventTriggerInfo.EventTriggerATB.None; string[] array2 = array; for (int i = 0; i < array2.Length; i++) { string text = array2[i]; if (!string.IsNullOrEmpty(text)) { if (!(text == "null")) { try { object obj = Enum.Parse(typeof(EventTriggerInfo.EventTriggerATB), text); if (obj is EventTriggerInfo.EventTriggerATB) { eventTriggerATB |= (EventTriggerInfo.EventTriggerATB)((int)obj); } } catch (Exception ex) { TsLog.LogWarning(ex.Message, new object[0]); TsLog.LogWarning(string.Format("EventTriggerInfo Parse Error : {0}", strATB), new object[0]); } } } } return(eventTriggerATB); }
private int RequestData() { int num = 0; GS_FACEBOOK_FRIENDINFO_GET_REQ gS_FACEBOOK_FRIENDINFO_GET_REQ = new GS_FACEBOOK_FRIENDINFO_GET_REQ(); for (int i = 0; i < 4; i++) { int num2 = 4 * (this.m_nCurPage - 1) + i; if (num2 < this.m_InviteList.Count && this.m_InviteList[num2].m_Installed && this.m_InviteList[num2].Level == 0) { char[] array = new char[65]; TKString.StringChar(this.m_InviteList[num2].m_ID, ref array); for (int j = 0; j < 65; j++) { gS_FACEBOOK_FRIENDINFO_GET_REQ.FaceBookID[i, j] = array[j]; } TsLog.LogWarning("RequestData SetData ID = {0}", new object[] { this.m_InviteList[num2].m_ID }); num++; } } if (num > 0) { SendPacket.GetInstance().SendObject(eGAME_PACKET_ID.GS_FACEBOOK_FRIENDINFO_GET_REQ, gS_FACEBOOK_FRIENDINFO_GET_REQ); } return(num); }
public void Add(E_CHAR_SELECT_STEP NextStep, Action <object> a_EndEvent, float _fEventFixTime, params object[] _states) { for (int i = 0; i < _states.Length; i++) { object obj = _states[i]; try { E_CAMARA_STATE_ANI e_CAMARA_STATE_ANI = (E_CAMARA_STATE_ANI)((int)obj); AniKeyPair data = this.m_aniKeyManager.GetData(e_CAMARA_STATE_ANI); if (data != null) { this.m_PlayAniQue.Enqueue(data); } else { TsLog.LogWarning("STATE ITEM == NULL : {0}", new object[] { e_CAMARA_STATE_ANI }); } } catch (Exception ex) { TsLog.LogError("Error State : {0} , Message : {1}", new object[] { obj.ToString(), ex.Message }); } } this.m_fFixTime = _fEventFixTime; this.m_bSendEvent = false; this.m_NextStep = NextStep; this.m_PlayAniEndEvent = a_EndEvent; }
public void SetArrowStyle(SortedButtonManager.ARROW_INVERSE _Style) { if (this.m_eArrowState != _Style) { if (this.m_eArrowState == SortedButtonManager.ARROW_INVERSE.INVERSE) { this.m_button.Inverse(INVERSE_MODE.TOP_TO_BOTTOM); } switch (_Style) { case SortedButtonManager.ARROW_INVERSE.NONE: this.m_button.SetButtonTextureKey(this.m_strNormalStyle); break; case SortedButtonManager.ARROW_INVERSE.NORMAL: this.m_button.SetButtonTextureKey(this.m_strArrowStyle); break; case SortedButtonManager.ARROW_INVERSE.INVERSE: TsLog.LogWarning("KKIComment2011/9/7/ : SetArrowStyle ", new object[0]); this.m_button.SetButtonTextureKey(this.m_strArrowStyle); this.m_button.Inverse(INVERSE_MODE.TOP_TO_BOTTOM); break; } this.m_eArrowState = _Style; } }
public Texture2D RequestDownloads(string strAssetPath, PostProcPerItem callbackDelegate, object objs) { Texture2D texture2D = null; WWWItem wWWItem = Holder.TryGetOrCreateBundle(strAssetPath + Option.extAsset, null); if (wWWItem != null && (wWWItem.isCanceled || !wWWItem.canAccessAssetBundle)) { wWWItem.SetItemType(ItemType.TEXTURE2D); wWWItem.SetCallback(callbackDelegate, objs); TsImmortal.bundleService.RequestDownloadCoroutine(wWWItem, DownGroup.RUNTIME, true); } if (wWWItem.mainAsset == null) { TsLog.LogWarning("wItem.mainAsset is null -> Path = {0}", new object[] { wWWItem.assetPath }); } else { texture2D = (wWWItem.mainAsset as Texture2D); DrawTexture[] array = objs as DrawTexture[]; DrawTexture[] array2 = array; for (int i = 0; i < array2.Length; i++) { DrawTexture drawTexture = array2[i]; if (drawTexture != null) { drawTexture.SetTexture(texture2D); } } } return(texture2D); }
public void OnEventAudioClip(IDownloadedItem wItem, object obj) { if (wItem != null && !wItem.isCanceled) { TsAudio.RequestData requestData = obj as TsAudio.RequestData; requestData.baseData.Tag = TsAudioManager.MINI_SOUND; TsAudio tsAudio = TsAudioCreator.Create(requestData.baseData); if (tsAudio != null) { if (wItem.mainAsset == null) { TsLog.LogWarning("wItem.mainAsset is null -> Path = {0}", new object[] { wItem.assetPath }); } else { tsAudio.RefAudioClip = (wItem.mainAsset as AudioClip); wItem.unloadImmediate = true; this.m_TalkSecond = tsAudio.RefAudioClip.length; } tsAudio.PlayClipAtPoint(Vector3.zero); } else { TsAudioManager.Container.RequestAudioClip("TRIGGER", "COMMON", "Trigger_SpeechBubble", new PostProcPerItem(NrAudioClipDownloaded.OnEventAudioClipDownloadedImmedatePlay)); } } this._StartTime = Time.time; NrTSingleton <EventTriggerMiniDrama> .Instance.ShowCaption(this.m_ActorName, this.m_TalkKey, this.m_TalkSecond); }
private void ReqWebImageCallback(Texture2D txtr, object _param) { CharNameBillboardSprite component = this.m_pkGuildSprite.GetComponent <CharNameBillboardSprite>(); if (component == null) { TsLog.LogWarning("!!!!!!!!!!!!!!!!!!!!! _GuildNameSprite GuildID NOT ", new object[0]); return; } Transform transform = component.transform.FindChild("CharRank"); if (transform != null) { DrawTexture drawTexture = (DrawTexture)transform.GetComponent(typeof(DrawTexture)); if (txtr == null) { drawTexture.SetTexture(NrTSingleton <NewGuildManager> .Instance.GetGuildDefualtTexture()); } else { drawTexture.SetTexture(txtr); } component.ShowTextAndPlane(true, false, true); } else { component.ShowTextAndPlane(true, false, false); } }
public void ConfirmCharName(bool bCheckSuccess) { if (bCheckSuccess) { this.m_strUserName = this.m_strLocalName; if (NrTSingleton <ContentsLimitManager> .Instance.IsSupporter()) { if (this.m_bCharCreate) { SupporterDlg supporterDlg = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.SUPPORTER_DLG) as SupporterDlg; if (supporterDlg == null) { TsLog.LogWarning("!!!!!!!!!!!!!!!!!! Not SUPPORTER_DLG ", new object[0]); this.SetCharacterCustomNext(string.Empty); } else { supporterDlg.SetType(this.m_strUserName, true); } } } else if (this.m_bCharCreate) { this._AgreementCharacterCustomNext(string.Empty); } } else { this.m_strUserName = string.Empty; } }
public void RequestExpeditionReplay(long nExpeditionID) { if (this.m_bRequestWebReplay) { return; } this.m_bRequestWebReplay = true; string text = (nExpeditionID / 1000L).ToString(); string text2 = string.Format("http://{0}/replay/{1}/{2}/{3}_Expedition_replay.zip", new object[] { NrGlobalReference.strWebPageDomain, NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo.m_szWorldType, text.ToString(), nExpeditionID.ToString() }); TsLog.LogWarning("!!!! replay {0}", new object[] { text2 }); Helper.RequestDownloadWebFile(text2, true, new PostProcPerItem(this.OnDownLoadReplayDataZip), null); GS_CHAR_STATE_SET_REQ gS_CHAR_STATE_SET_REQ = new GS_CHAR_STATE_SET_REQ(); gS_CHAR_STATE_SET_REQ.nSet = 3; SendPacket.GetInstance().SendObject(eGAME_PACKET_ID.GS_CHAR_STATE_SET_REQ, gS_CHAR_STATE_SET_REQ); }
public static T DispatchReturn <T>(object objHandler, Type typeHandler, string functionName, params object[] Params) { Type type = null; MethodInfo methodInfo = Dispatcher._GetMethodInfo(objHandler, typeHandler, functionName, out type); if (methodInfo == null) { TsLog.LogError("MSGHANDLE DispatchReturn<T> --- Missing! Message Handler not found! {0}.{1}", new object[] { (type != null) ? type.Name : "null", functionName }); } else { try { return((T)((object)methodInfo.Invoke(objHandler, Params))); } catch (NullReferenceException) { TsLog.LogWarning(string.Format("MSGHANDLE DispatchReturn<T> --- Invalid return type! {0}.{1}", type.Name, functionName), new object[0]); } catch (Exception ex) { TsLog.LogError("MSGHANDLE DispatchReturn<T> --- Invalid invoke! {0}.{1} - {2}", new object[] { type.Name, functionName, ex }); } } return(default(T)); }
private void OnSelectSolSlot(IUIObject obj) { if (obj == null) { return; } int num = (int)obj.Data; SolSlotData slotListData = this.GetSlotListData(num); if (slotListData == null) { TsLog.LogWarning(" Sol Guide Slot Not Data Button {0}", new object[] { num }); return; } if (!NrTSingleton <FormsManager> .Instance.IsShow(G_ID.SOLDETAIL_DLG) && slotListData != null && slotListData.i32KindInfo != 0) { SolDetail_Info_Dlg solDetail_Info_Dlg = (SolDetail_Info_Dlg)NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.SOLDETAIL_DLG); if (!solDetail_Info_Dlg.Visible) { solDetail_Info_Dlg.Show(); } solDetail_Info_Dlg.SetSolKind(slotListData); } }
public bool _StartGame() { long num; if (this.m_SelectPersonID != 0L) { num = this.m_SelectPersonID; } else if (NrTSingleton <NrMainSystem> .Instance.GetLatestPersonID() != 0L) { num = NrTSingleton <NrMainSystem> .Instance.GetLatestPersonID(); } else { num = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo.m_PersonID; } if (num == 0L) { MsgBoxUI msgBoxUI = (MsgBoxUI)NrTSingleton <FormsManager> .Instance.LoadGroupForm(G_ID.MSGBOX_DLG); if (msgBoxUI != null) { msgBoxUI.SetMsg(new YesDelegate(this._OnMessageBoxOK_QuitGame), null, "경고", "personid가 0이다,,...\r\n어플을 재실행해주세요.", eMsgType.MB_OK, 2); } TsLog.LogWarning("_StartGame personid == 0", new object[0]); } GS_AUTH_SESSION_REQ gS_AUTH_SESSION_REQ = new GS_AUTH_SESSION_REQ(); gS_AUTH_SESSION_REQ.UID = NrTSingleton <NkCharManager> .Instance.m_kCharAccountInfo.m_UID; gS_AUTH_SESSION_REQ.SessionKey = NrTSingleton <NkCharManager> .Instance.m_kCharAccountInfo.m_siAuthSessionKey; gS_AUTH_SESSION_REQ.PersonID = num; gS_AUTH_SESSION_REQ.nMode = 500; SendPacket.GetInstance().SendObject(eGAME_PACKET_ID.GS_AUTH_SESSION_REQ, gS_AUTH_SESSION_REQ); return(true); }
public bool SetFlashLabel(string str) { if (this == null) { TsLog.LogWarning("UIListItemContainer NULL", new object[0]); return(false); } this.DeleteListItemContainer(); bool result = MsgHandler.Handle("ParseEmoticonFlashLabel", new object[] { this, str, this.width, this.height, (int)base.FontSize, this.lineSpacing, this.anchor, this.FontColor }); if (this.bAutoAlpha) { this.fTotalApha = 0f; base.SetAlpha(this.fTotalApha); } this.FindOuterEdges(); this.realHight = Mathf.Abs(this.BottomRightEdge().y - this.TopLeftEdge().y); return(result); }
private void ClickRankList(IUIObject obj) { if (null == this.m_nlbRankList || null == this.m_nlbRankList.SelectedItem) { return; } if (this.m_nlbRankList.SelectedItem.Data != null) { long num = (long)this.m_nlbRankList.SelectedItem.Data; TsLog.LogWarning("!!!!!!! {0}", new object[] { num }); NrPersonInfoUser charPersonInfo = NrTSingleton <NkCharManager> .Instance.GetCharPersonInfo(1); if (num != 0L && charPersonInfo != null) { this.m_btPractice.SetEnabled(true); for (int i = 0; i < this.m_RankInfoList.Count; i++) { if (this.m_RankInfoList[i].i64PersonID == num) { charPersonInfo.InfiBattlePersonID = this.m_RankInfoList[i].i64PersonID; charPersonInfo.InfiBattleRank = this.m_RankInfoList[i].i32Rank; return; } } } } }
private static void _ReadCacheList() { string path = string.Format("{0}cachelist.txt", CustomCaching._locRoot); CustomCaching._cacheList.Clear(); if (File.Exists(path)) { try { using (Stream stream = File.Open(path, FileMode.Open)) { using (BinaryReader binaryReader = new BinaryReader(stream, Encoding.UTF8)) { while (binaryReader.PeekChar() != -1) { CustomCaching.CacheItem cacheItem = new CustomCaching.CacheItem(); cacheItem.url = binaryReader.ReadString().ToLower(); cacheItem.version = binaryReader.ReadInt32(); cacheItem.size = binaryReader.ReadInt64(); CustomCaching._spaceOccupied += cacheItem.size; CustomCaching._cacheList.Add(cacheItem.url, cacheItem); } } } } catch (Exception obj) { TsLog.LogWarning(obj); } TsLog.Log("CustomCaching. Read cache item list. ({0})", new object[] { CustomCaching._cacheList.Count }); } }
public AudioListener SearchAndEnable_CurrentAudioListener() { bool flag = false; AudioListener audioListener = null; AudioListener[] array = UnityEngine.Object.FindObjectsOfType(typeof(AudioListener)) as AudioListener[]; AudioListener[] array2 = array; for (int i = 0; i < array2.Length; i++) { AudioListener audioListener2 = array2[i]; if (this.IsAudioListenerOfAudioManager(audioListener2)) { audioListener2.enabled = false; } else if (!flag) { if (audioListener2.enabled && audioListener2.gameObject.activeInHierarchy) { audioListener = audioListener2; flag = true; } } else if (audioListener2.enabled) { audioListener2.enabled = false; TsLog.LogWarning("audioListener.enabled == true..... It must be false~! GOName= " + audioListener2.name, new object[0]); } } if (audioListener == null) { TsLog.LogWarning("TsAudioManager.SearchCurrentAudioListener()~! Cannot Found Current AudioListener~!!!", new object[0]); return(null); } return(audioListener); }
public bool IsVaildValue() { EventTriggerItem[] componentsInChildren = base.transform.GetComponentsInChildren <EventTriggerItem>(); if (componentsInChildren == null) { return(true); } bool result = true; EventTriggerItem[] array = componentsInChildren; for (int i = 0; i < array.Length; i++) { EventTriggerItem eventTriggerItem = array[i]; if (!eventTriggerItem.IsVaildValue()) { if (EventTrigger.m_DebugMode) { TsLog.LogWarning("[{0}] [{1}]의 [{2}] 값이 잘못 들어가 있습니다.", new object[] { base.GetType().Name, base.name, eventTriggerItem.name }); } result = false; } } return(result); }
public void AddServerEventHero(EVENT_HEROINFO _EventHero) { EVENT_HERODATA eVENT_HERODATA = new EVENT_HERODATA(); eVENT_HERODATA.szCharCode = TKString.NEWString(_EventHero.szCharCode); eVENT_HERODATA.i8Rank = _EventHero.i8Rank; eVENT_HERODATA.i32Attack = _EventHero.i32Attack; eVENT_HERODATA.i32Hp = _EventHero.i32Hp; DateTime dueDate = PublicMethod.GetDueDate(_EventHero.i64StartTime); eVENT_HERODATA.tStartTime = dueDate; DateTime dueDate2 = PublicMethod.GetDueDate(_EventHero.i64EndTime); eVENT_HERODATA.tEndTime = dueDate2; eVENT_HERODATA.i32CharKind = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindByCode(TKString.NEWString(_EventHero.szCharCode)); if (eVENT_HERODATA.i32CharKind != 0) { EVENT_HERODATA eventHeroCheck = this.GetEventHeroCheck(eVENT_HERODATA.i32CharKind, eVENT_HERODATA.i8Rank); if (eventHeroCheck != null) { this.SetEventHeroCheck(eVENT_HERODATA); } else { this.m_EventHeroList.Add(eVENT_HERODATA); } } else { TsLog.LogWarning("TableEventHero - > CharCode Error", new object[0]); } }
public void FinishDownloadWeaponTrail(IDownloadedItem wItem, object kParamObj) { try { if (!(this.m_kBaseObject == null)) { if (!wItem.isCanceled) { if (wItem.GetSafeBundle() == null) { TsLog.LogWarning("wItem.mainAsset is null -> Path = {0}", new object[] { wItem.assetPath }); } else { GameObject original = wItem.GetSafeBundle().mainAsset as GameObject; this.m_kWeaponTrailObject = (GameObject)UnityEngine.Object.Instantiate(original); this.m_kWeaponTrailObject.transform.parent = this.m_kBaseObject.transform; this.m_kWeaponTrailObject.transform.localPosition = Vector3.zero; this.m_kWeaponTrailObject.SetActive(true); NkUtil.SetAllChildActive(this.m_kWeaponTrailObject, false, true); } } } } catch (Exception obj) { TsLog.LogError(obj); } }
public void OnDownloaded_Sound(IDownloadedItem wItem, object obj) { if (base.IsDestroy()) { return; } if (wItem.mainAsset == null) { TsLog.LogWarning("wItem.mainAsset is null -> Path = {0}", new object[] { wItem.assetPath }); } else { TsAudio.RequestData requestData = obj as TsAudio.RequestData; TsAudio tsAudio = TsAudioCreator.Create(requestData.baseData); if (tsAudio != null) { this.m_audioGO = new GameObject("@Audio : RandomBox_Audio", new Type[] { typeof(AudioSource) }); tsAudio.RefAudioClip = (wItem.mainAsset as AudioClip); tsAudio.RefAudioSource = this.m_audioGO.audio; tsAudio.Play(); wItem.unloadImmediate = true; } } }
private static void _UnloadAssetBundle(WWWItem wItem, bool clearMemory) { if (wItem.isCreated) { try { if (wItem.canAccessAssetBundle) { wItem.UnloadSafeBundle(clearMemory); } else if (Option.EnableTrace) { TsLog.Log("[TsBundle] www unload (<<No-AssetBundle>> AssetPath=\"{0}\", Stack=\"{1}\", Type={2})", new object[] { wItem.assetPath, wItem.stackName, wItem.itemType }); } wItem.Dispose(); } catch (Exception obj) { TsLog.LogWarning(obj); } } wItem._InternalOnly_ChangeStateCancel(); }
public bool AnimateUpdate() { if (this.m_iMaxSwitchingValues != 0) { if (this.m_isSwitchComplete) { return(false); } if (this.m_iAccumSwitch >= this.m_iMaxSwitchingValues) { this.m_isSwitchComplete = true; TsLog.LogWarning("KKIComment2011/9/7/ : {0} ", new object[] { this.m_iAccumSwitch }); return(false); } } bool result = false; if (this.m_bStarted && this.m_fNextUpdateTime <= Time.time) { this.m_isSwitch = !this.m_isSwitch; this.m_iAccumSwitch++; result = true; this.m_fNextUpdateTime = Time.time + this.m_UPDATE_INTERVAL; } return(result); }
public static void OnEventAudioClipDownloadedImmedatePlay(IDownloadedItem wItem, object obj) { if (wItem.isCanceled) { return; } if (wItem.canAccessAssetBundle) { TsAudio.RequestData requestData = obj as TsAudio.RequestData; TsAudio tsAudio = TsAudioCreator.Create(requestData.baseData); if (tsAudio != null) { if (wItem.mainAsset == null) { TsLog.LogWarning("wItem.mainAsset is null -> Path = {0}", new object[] { wItem.assetPath }); } else { tsAudio.RefAudioClip = (wItem.mainAsset as AudioClip); wItem.unloadImmediate = true; } tsAudio.PlayClipAtPoint(Vector3.zero); } } }
private void _funcUIEffectDownloaded(IDownloadedItem wItem, object obj) { Main_UI_SystemMessage.CloseUI(); if (null == wItem.mainAsset) { TsLog.LogWarning("wItem.mainAsset is null -> Path = {0}", new object[] { wItem.assetPath }); return; } GameObject gameObject = wItem.mainAsset as GameObject; if (null == gameObject) { return; } if (null != this.m_SlotEffect) { UnityEngine.Object.Destroy(this.m_SlotEffect); } this.m_SlotEffect = (GameObject)UnityEngine.Object.Instantiate(gameObject, Vector3.zero, Quaternion.identity); if (null == this.m_SlotEffect) { return; } Vector2 screenPos = new Vector2((float)(Screen.width / 2), (float)(Screen.height / 2)); Vector3 effectUIPos = base.GetEffectUIPos(screenPos); effectUIPos.z = 300f; this.m_SlotEffect.transform.position = effectUIPos; NkUtil.SetAllChildLayer(this.m_SlotEffect, GUICamera.UILayer); if (this.m_bSuccess) { GameObject gameObject2 = NkUtil.GetChild(this.m_SlotEffect.transform, "fx_sucess").gameObject; if (null != gameObject2) { gameObject2.SetActive(true); } effectUIPos.x += 2.8f; effectUIPos.y += 26f; this.m_SlotEffect.transform.position = effectUIPos; TsAudioManager.Container.RequestAudioClip("UI_SFX", "EQUIPMENT-UP", "SUCCESS", new PostProcPerItem(NrAudioClipDownloaded.OnEventAudioClipDownloadedImmedatePlay)); } else { GameObject gameObject3 = NkUtil.GetChild(this.m_SlotEffect.transform, "fx_fail").gameObject; if (null != gameObject3) { gameObject3.SetActive(true); } TsAudioManager.Container.RequestAudioClip("UI_SFX", "EQUIPMENT-UP", "FAIL", new PostProcPerItem(NrAudioClipDownloaded.OnEventAudioClipDownloadedImmedatePlay)); } if (TsPlatform.IsMobile && TsPlatform.IsEditor) { NrTSingleton <NkClientLogic> .Instance.SetEditorShaderConvert(ref this.m_SlotEffect); } this.m_fStartTime = Time.realtimeSinceStartup; }
public void Release() { this.cntRequest--; if (this.cntRequest < 0) { TsLog.LogWarning("ResourceCache.LifeSaver reference count is invalid.", new object[0]); } }
public void _InternalOnly_ChangeStateServerError(string error) { this.wiState = WWWItem.StateWI.SERVER_ERR; TsLog.LogWarning("{0}", new object[] { error }); }
private void SetList(WhisperRoom Room) { List <WhisperUser> users = Room.GetUsers(); if (users == null) { return; } this.m_InviteList.Clear(); foreach (WhisperUser current in users) { ListItem listItem = new ListItem(); NrCharKindInfo charKindInfo = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindInfo(current.nFaceKind); if (charKindInfo == null) { TsLog.LogError("WhisperUser NrCharKindInfo == NULL FaceKind = {0}", new object[] { current.nFaceKind }); } listItem.SetColumnGUIContent(0, charKindInfo.GetCharKind(), false); listItem.SetColumnStr(1, current.Name, NrTSingleton <CTextParser> .Instance.GetTextColor("1101")); string text = string.Empty; string strTextKey = string.Empty; switch (current.byPlayState) { case 0: strTextKey = "2142"; break; case 1: strTextKey = "2143"; break; case 2: strTextKey = "2144"; break; default: TsLog.LogWarning("byPlayState = {0}", new object[] { current.byPlayState }); strTextKey = "2142"; break; } text = string.Format("({0})", NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface(strTextKey)); TsLog.LogWarning("UserState = {0}", new object[] { text }); listItem.SetColumnStr(2, text, NrTSingleton <CTextParser> .Instance.GetTextColor("1101")); listItem.Key = current; this.m_InviteList.Add(listItem); } this.m_InviteList.RepositionItems(); }
private static void MemoryCleanUpReserved() { if (AutoMemoryCleanUp.m_bEnableMemoryClean && AutoMemoryCleanUp.m_bReservedMemoryClean) { TsLog.LogWarning("[Memory] MemoryCleanUpReserved ", new object[0]); AutoMemoryCleanUp.m_bReservedMemoryClean = false; AutoMemoryCleanUp.MemoryClean(); } }