public static Texture2D RequestDownload(string strAssetPath, PostProcPerItem callbackDelegate, object obj)
    {
        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, obj);
            TsImmortal.bundleService.RequestDownloadCoroutine(wWWItem, DownGroup.RUNTIME, true);
        }
        if (!(wWWItem.mainAsset == null))
        {
            texture2D = (wWWItem.mainAsset as Texture2D);
            DrawTexture drawTexture = obj as DrawTexture;
            if (drawTexture != null)
            {
                CharChangeMainDlg.SetTexture(drawTexture, texture2D);
            }
            else
            {
                GameObject gameObject = obj as GameObject;
                if (gameObject != null)
                {
                    CharChangeMainDlg.SetCharFaceTexture(gameObject, texture2D);
                }
            }
        }
        return(texture2D);
    }
Exemple #2
0
    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 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);
    }
Exemple #4
0
    public override void SetComponent()
    {
        this.m_lbCount = (base.GetControl("Label_count") as Label);
        this.m_dwBG    = (base.GetControl("bg") as DrawTexture);
        if (this.m_dwBG != null)
        {
            NrTSingleton <FormsManager> .Instance.AttachEffectKey("FX_UI_COUNTDOWN", this.m_dwBG, this.m_dwBG.GetSize());

            this.m_dwBG.AddGameObjectDelegate(new EZGameObjectDelegate(this.effectdownload));
        }
        this.m_dtPreviewBG         = (base.GetControl("DT_PreviewBG") as DrawTexture);
        this.m_lbPreview           = (base.GetControl("Label_Preview") as Label);
        this.m_dtPreviewBG.Visible = false;
        this.m_lbPreview.Visible   = false;
        this.m_strText             = "mythic_raid_nextround";
        if (null == NrTSingleton <UIImageBundleManager> .Instance.GetTexture(this.m_strText))
        {
            string  str     = string.Format("{0}", "UI/mythicraid/" + this.m_strText + NrTSingleton <UIDataManager> .Instance.AddFilePath);
            WWWItem wWWItem = Holder.TryGetOrCreateBundle(str + Option.extAsset, NkBundleCallBack.UIBundleStackName);
            wWWItem.SetItemType(ItemType.USER_ASSETB);
            wWWItem.SetCallback(new PostProcPerItem(this.SetBundleTextureImage), this.m_strText);
            TsImmortal.bundleService.RequestDownloadCoroutine(wWWItem, DownGroup.RUNTIME, true);
        }
        this.SetVisibleFlag(false);
        if (Battle.BATTLE != null && Battle.BATTLE.BattleRoomtype == eBATTLE_ROOMTYPE.eBATTLE_ROOMTYPE_PREVIEW)
        {
            this.SetControl_PreviewHero();
        }
    }
    private void SetTextureBundle()
    {
        NrCharKindInfo charKindInfo = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindInfo(this.m_i32SelectCharKind);

        if (charKindInfo == null)
        {
            return;
        }
        if (UIDataManager.IsUse256Texture())
        {
            this.FaceImageKey = charKindInfo.GetPortraitFile1((int)(this.m_bSelectGrade - 1), string.Empty) + "_256";
        }
        else
        {
            this.FaceImageKey = charKindInfo.GetPortraitFile1((int)(this.m_bSelectGrade - 1), string.Empty) + "_512";
        }
        if (null == NrTSingleton <UIImageBundleManager> .Instance.GetTexture(this.FaceImageKey))
        {
            NrTSingleton <UIImageBundleManager> .Instance.RequestCharImage(this.FaceImageKey, eCharImageType.LARGE, new PostProcPerItem(this.SetBundleImage));
        }
        if (this.bLegend)
        {
            this.RankImageKey = "rankl" + this.m_bSelectGrade.ToString();
        }
        else
        {
            this.RankImageKey = "rank" + this.m_bSelectGrade.ToString();
        }
        if (null == NrTSingleton <UIImageBundleManager> .Instance.GetTexture(this.RankImageKey))
        {
            string  str     = string.Format("{0}", "UI/Soldier/" + this.RankImageKey + NrTSingleton <UIDataManager> .Instance.AddFilePath);
            WWWItem wWWItem = Holder.TryGetOrCreateBundle(str + Option.extAsset, NkBundleCallBack.UIBundleStackName);
            wWWItem.SetItemType(ItemType.USER_ASSETB);
            wWWItem.SetCallback(new PostProcPerItem(this.SetBundleImage), this.RankImageKey);
            TsImmortal.bundleService.RequestDownloadCoroutine(wWWItem, DownGroup.RUNTIME, true);
        }
        this.SeasonImageKey = "font_number" + this.m_bSelectSeason.ToString();
        if (null == NrTSingleton <UIImageBundleManager> .Instance.GetTexture(this.SeasonImageKey))
        {
            string  str2     = string.Format("{0}", "UI/Soldier/" + this.SeasonImageKey + NrTSingleton <UIDataManager> .Instance.AddFilePath);
            WWWItem wWWItem2 = Holder.TryGetOrCreateBundle(str2 + Option.extAsset, NkBundleCallBack.UIBundleStackName);
            wWWItem2.SetItemType(ItemType.USER_ASSETB);
            wWWItem2.SetCallback(new PostProcPerItem(this.SetBundleImage), this.SeasonImageKey);
            TsImmortal.bundleService.RequestDownloadCoroutine(wWWItem2, DownGroup.RUNTIME, true);
        }
        if (this.bLegend)
        {
            this.CardFrameImageKey = "card_legend";
            if (null == NrTSingleton <UIImageBundleManager> .Instance.GetTexture(this.CardFrameImageKey))
            {
                string  str3     = string.Format("{0}", "UI/Soldier/" + this.CardFrameImageKey + NrTSingleton <UIDataManager> .Instance.AddFilePath);
                WWWItem wWWItem3 = Holder.TryGetOrCreateBundle(str3 + Option.extAsset, NkBundleCallBack.UIBundleStackName);
                wWWItem3.SetItemType(ItemType.USER_ASSETB);
                wWWItem3.SetCallback(new PostProcPerItem(this.SetBundleImage), this.CardFrameImageKey);
                TsImmortal.bundleService.RequestDownloadCoroutine(wWWItem3, DownGroup.RUNTIME, true);
            }
        }
        this.eBUNDLEDOWN = SolElementSuccessDlg.eBUNDLEDOWNSTATE.eBUNDLE_DOWNING;
    }
    public void RequestBundleImage(string bundlepath, PostProcPerItem callbackDelegate, object callBackParam, bool unloadAfterPostProcess = true)
    {
        string  str     = string.Format("{0}{1}", bundlepath, NrTSingleton <UIDataManager> .Instance.AddFilePath);
        WWWItem wWWItem = Holder.TryGetOrCreateBundle(str + Option.extAsset, MsgHandler.HandleReturn <string>("UIBundleStackName", new object[0]));

        wWWItem.SetItemType(ItemType.USER_ASSETB);
        wWWItem.SetCallback(callbackDelegate, callBackParam);
        TsImmortal.bundleService.RequestDownloadCoroutine(wWWItem, DownGroup.RUNTIME, unloadAfterPostProcess);
    }
Exemple #7
0
    private void EffectShow()
    {
        string  str     = "Effect/Instant/fx_levelup_ui" + NrTSingleton <UIDataManager> .Instance.AddFilePath;
        WWWItem wWWItem = Holder.TryGetOrCreateBundle(str + Option.extAsset, NkBundleCallBack.UIBundleStackName);

        wWWItem.SetItemType(ItemType.USER_ASSETB);
        wWWItem.SetCallback(new PostProcPerItem(this._funcUIEffectDownloaded), null);
        TsImmortal.bundleService.RequestDownloadCoroutine(wWWItem, DownGroup.RUNTIME, true);
    }
    public void LoadSolComposeSuccessBundle()
    {
        string  str     = string.Format("{0}{1}", "UI/Item/fx_reinforce_result", NrTSingleton <UIDataManager> .Instance.AddFilePath);
        WWWItem wWWItem = Holder.TryGetOrCreateBundle(str + Option.extAsset, NkBundleCallBack.UIBundleStackName);

        wWWItem.SetItemType(ItemType.USER_ASSETB);
        wWWItem.SetCallback(new PostProcPerItem(this._funcUIEffectDownloaded), null);
        TsImmortal.bundleService.RequestDownloadCoroutine(wWWItem, DownGroup.RUNTIME, true);
    }
Exemple #9
0
    private void ShowRecruitDummyDirection()
    {
        string  str     = string.Format("{0}", "UI/Soldier/fx_direct_dragonhero" + NrTSingleton <UIDataManager> .Instance.AddFilePath);
        WWWItem wWWItem = Holder.TryGetOrCreateBundle(str + Option.extAsset, NkBundleCallBack.UIBundleStackName);

        wWWItem.SetItemType(ItemType.USER_ASSETB);
        wWWItem.SetCallback(new PostProcPerItem(this.SolRecruitDummySuccess), null);
        TsImmortal.bundleService.RequestDownloadCoroutine(wWWItem, DownGroup.RUNTIME, true);
    }
Exemple #10
0
    public override void SetComponent()
    {
        string  str     = string.Format("effect/instant/{0}{1}", "fx_direct_goldegg", NrTSingleton <UIDataManager> .Instance.AddFilePath);
        WWWItem wWWItem = Holder.TryGetOrCreateBundle(str + Option.extAsset, NkBundleCallBack.UIBundleStackName);

        wWWItem.SetItemType(ItemType.USER_ASSETB);
        wWWItem.SetCallback(new PostProcPerItem(this.SetBackImage), "fx_direct_goldegg");
        TsImmortal.bundleService.RequestDownloadCoroutine(wWWItem, DownGroup.RUNTIME, true);
    }
    public void LoadEffect()
    {
        string  str     = string.Format("{0}{1}", "Effect/Instant/fx_ui_coloseum_infinity", NrTSingleton <UIDataManager> .Instance.AddFilePath);
        WWWItem wWWItem = Holder.TryGetOrCreateBundle(str + Option.extAsset, NkBundleCallBack.UIBundleStackName);

        wWWItem.SetItemType(ItemType.USER_ASSETB);
        wWWItem.SetCallback(new PostProcPerItem(this.Effect_Fight), null);
        TsImmortal.bundleService.RequestDownloadCoroutine(wWWItem, DownGroup.RUNTIME, true);
    }
    private void EffectLoad(string effect, PostProcPerItem callback, object callbackParam)
    {
        string  str     = string.Format("{0}", "UI/Soldier/" + effect + NrTSingleton <UIDataManager> .Instance.AddFilePath);
        WWWItem wWWItem = Holder.TryGetOrCreateBundle(str + Option.extAsset, NkBundleCallBack.UIBundleStackName);

        wWWItem.SetItemType(ItemType.USER_ASSETB);
        wWWItem.SetCallback(callback, callbackParam);
        TsImmortal.bundleService.RequestDownloadCoroutine(wWWItem, DownGroup.RUNTIME, true);
    }
Exemple #13
0
    private void BundleListDown()
    {
        string  key     = string.Format("{0}{1}", PlayerPrefs.GetString(NrPrefsKey.LOCAL_WWW_PATH, "file:///d:/ndoors/at2dev/"), this._BUNDLENAME);
        WWWItem wWWItem = Holder.TryGetOrCreateBundle(key, null, true);

        wWWItem.SetItemType(ItemType.USER_STRING);
        wWWItem.SetCallback(new PostProcPerItem(this._OnCompleteDownload), null);
        TsImmortal.bundleService.RequestDownloadCoroutine(wWWItem, DownGroup.RUNTIME, true);
    }
    public void RequestCharImage(string imageKey, eCharImageType type, PostProcPerItem callbackDelegate)
    {
        string  arg     = this._ImagePath(type);
        string  str     = string.Format("{0}/{1}", arg, imageKey + NrTSingleton <UIDataManager> .Instance.AddFilePath);
        WWWItem wWWItem = Holder.TryGetOrCreateBundle(str + Option.extAsset, MsgHandler.HandleReturn <string>("UIBundleStackName", new object[0]));

        wWWItem.SetItemType(ItemType.USER_ASSETB);
        wWWItem.SetCallback(callbackDelegate, imageKey);
        TsImmortal.bundleService.RequestDownloadCoroutine(wWWItem, DownGroup.RUNTIME, true);
    }
 public void SetClearEffect(sbyte nClearInfo, sbyte nTotalInfo)
 {
     if ((int)nClearInfo == (int)nTotalInfo)
     {
         string  str     = string.Format("{0}{1}", "effect/instant/fx_dungeonclear_ui", NrTSingleton <UIDataManager> .Instance.AddFilePath);
         WWWItem wWWItem = Holder.TryGetOrCreateBundle(str + Option.extAsset, NkBundleCallBack.UIBundleStackName);
         wWWItem.SetItemType(ItemType.USER_ASSETB);
         wWWItem.SetCallback(new PostProcPerItem(this._funcUIEffectDownloaded), null);
         TsImmortal.bundleService.RequestDownloadCoroutine(wWWItem, DownGroup.RUNTIME, true);
     }
 }
Exemple #16
0
    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);
    }
Exemple #17
0
    public void SetResult(int iBaseCharKind, GS_SOLDIER_REINCARNATION_SET_ACK ACK)
    {
        this.m_iBaseCharKind = iBaseCharKind;
        this.m_iNewCharKind  = ACK.i32CharKind;
        string  str     = string.Format("{0}", "UI/Soldier/fx_direct_rebirth" + NrTSingleton <UIDataManager> .Instance.AddFilePath);
        WWWItem wWWItem = Holder.TryGetOrCreateBundle(str + Option.extAsset, NkBundleCallBack.UIBundleStackName);

        wWWItem.SetItemType(ItemType.USER_ASSETB);
        wWWItem.SetCallback(new PostProcPerItem(this.LoadEffect), null);
        TsImmortal.bundleService.RequestDownloadCoroutine(wWWItem, DownGroup.RUNTIME, true);
    }
Exemple #18
0
        public static void LoadAsyncFromWWW(string strKey, PostProcPerItem callback, object param, string bundleStackName)
        {
            string  key     = strKey.ToLower();
            WWWItem wWWItem = Holder.TryGetOrCreateBundle(key, bundleStackName);

            wWWItem.SetItemType(ItemType.TEXTURE2D);
            ResourceCache.WWWDownloader wWWDownloader = ObjectPoolManager.Acquire <ResourceCache.WWWDownloader>(callback);
            wWWDownloader.SetParam(param);
            wWWItem.SetCallback(new PostProcPerItem(wWWDownloader.OnCompleteDonwload), wWWDownloader);
            TsImmortal.bundleService.RequestDownloadCoroutine(wWWItem, DownGroup.RUNTIME, true);
        }
    private void PlayExtractResult()
    {
        string str = string.Empty;

        str = string.Format("effect/instant/fx_direct_extraction_result{0}", NrTSingleton <UIDataManager> .Instance.AddFilePath);
        WWWItem wWWItem = Holder.TryGetOrCreateBundle(str + Option.extAsset, NkBundleCallBack.UIBundleStackName);

        wWWItem.SetItemType(ItemType.USER_ASSETB);
        wWWItem.SetCallback(new PostProcPerItem(this.SolComposeExtractResult), null);
        TsImmortal.bundleService.RequestDownloadCoroutine(wWWItem, DownGroup.RUNTIME, true);
    }
    private void RequestBundelDownload(NmLocalFileList.BundleFileInfo kBundleFileInfo)
    {
        WWWItem wWWItem = Holder.TryGetOrCreateBundle(kBundleFileInfo.strFolderName, null);

        if (wWWItem == null)
        {
            return;
        }
        wWWItem.SetItemType(ItemType.USER_ASSETB);
        wWWItem.SetCallback(new PostProcPerItem(this._OnCompletedDownload), null);
        TsImmortal.bundleService.RequestDownloadCoroutine(wWWItem, DownGroup.RUNTIME, false);
    }
 public void ActionReforge()
 {
     if (!this.bRequest)
     {
         string  str     = string.Format("{0}", "UI/Item/fx_reinforce" + NrTSingleton <UIDataManager> .Instance.AddFilePath);
         WWWItem wWWItem = Holder.TryGetOrCreateBundle(str + Option.extAsset, NkBundleCallBack.UIBundleStackName);
         wWWItem.SetItemType(ItemType.USER_ASSETB);
         wWWItem.SetCallback(new PostProcPerItem(this.SetActionReforge), null);
         TsImmortal.bundleService.RequestDownloadCoroutine(wWWItem, DownGroup.RUNTIME, true);
         this.bRequest = 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();
    }
    private void PlayNewRecordEffect()
    {
        if (this.m_bUsedRenewEffect)
        {
            return;
        }
        string  str     = string.Format("{0}", "ui/mythicraid/fx_myth_raid_new_record" + NrTSingleton <UIDataManager> .Instance.AddFilePath);
        WWWItem wWWItem = Holder.TryGetOrCreateBundle(str + Option.extAsset, NkBundleCallBack.UIBundleStackName);

        wWWItem.SetItemType(ItemType.USER_ASSETB);
        wWWItem.SetCallback(new PostProcPerItem(this.NewRecordEffectPlay), null);
        TsImmortal.bundleService.RequestDownloadCoroutine(wWWItem, DownGroup.RUNTIME, true);
    }
Exemple #24
0
        public bool RequestUIBundleDownLoad(string path, PostProcPerItem callbackDelegate, object callbackParam)
        {
            WWWItem wWWItem = Holder.TryGetOrCreateBundle(path + Option.extAsset, MsgHandler.HandleReturn <string>("UIBundleStackName", new object[0]));

            wWWItem.SetItemType(ItemType.USER_ASSETB);
            wWWItem.SetCallback(callbackDelegate, callbackParam);
            if (wWWItem != null)
            {
                TsImmortal.bundleService.RequestDownloadCoroutine(wWWItem, DownGroup.RUNTIME, true);
                return(true);
            }
            return(false);
        }
Exemple #25
0
    public static WWWItem CreateWItem(string effectKind)
    {
        string text = NkEffectManager.FileName(effectKind);

        if (string.Empty.Equals(text))
        {
            return(null);
        }
        WWWItem wWWItem = Holder.TryGetOrCreateBundle(text + Option.extAsset, NkBundleCallBack.UIBundleStackName);

        wWWItem.SetItemType(ItemType.USER_ASSETB);
        return(wWWItem);
    }
    public bool RequestDownload()
    {
        WWWItem wWWItem = Holder.TryGetOrCreateBundle("BUNDLE/Map/BF_Map2DImage" + Option.extAsset, null);

        wWWItem.SetItemType(ItemType.USER_ASSETB);
        wWWItem.SetCallback(new PostProcPerItem(this._OnCompleteDownload), null);
        if (wWWItem != null)
        {
            TsImmortal.bundleService.RequestDownloadCoroutine(wWWItem, DownGroup.RUNTIME, false);
            return(true);
        }
        return(false);
    }
 public void ActionCompose(int ItemUnique, int ItemNum)
 {
     if (!this.m_bRequest && ItemUnique > 0 && ItemNum > 0)
     {
         this.m_iComposeResultItemUnique = ItemUnique;
         this.m_iComposeResultItemNum    = ItemNum;
         string  str     = string.Format("{0}", "UI/Item/fx_reinforcestone_ui" + NrTSingleton <UIDataManager> .Instance.AddFilePath);
         WWWItem wWWItem = Holder.TryGetOrCreateBundle(str + Option.extAsset, NkBundleCallBack.UIBundleStackName);
         wWWItem.SetItemType(ItemType.USER_ASSETB);
         wWWItem.SetCallback(new PostProcPerItem(this.SetActionCompose), null);
         TsImmortal.bundleService.RequestDownloadCoroutine(wWWItem, DownGroup.RUNTIME, true);
         this.m_bRequest = true;
     }
 }
Exemple #28
0
    public void LoadMyth_Evolurion(NkSoldierInfo pkSolinfo, byte i8BaseGrade, byte i8ChangeGrade)
    {
        TsAudio.StoreMuteAllAudio();
        TsAudio.SetExceptMuteAllAudio(EAudioType.UI, true);
        TsAudio.RefreshAllMuteAudio();
        this.m_pkSolinfo    = pkSolinfo;
        this.m_bBaseGrade   = i8BaseGrade;
        this.m_bChangeGrade = i8ChangeGrade;
        string  str     = string.Format("{0}", "Effect/Instant/fx_ui_shinhwacard" + NrTSingleton <UIDataManager> .Instance.AddFilePath);
        WWWItem wWWItem = Holder.TryGetOrCreateBundle(str + Option.extAsset, NkBundleCallBack.UIBundleStackName);

        wWWItem.SetItemType(ItemType.USER_ASSETB);
        wWWItem.SetCallback(new PostProcPerItem(this.EvolutionSuccess), null);
        TsImmortal.bundleService.RequestDownloadCoroutine(wWWItem, DownGroup.RUNTIME, true);
    }
    public void ShowResultEffect(int iChangeCharKind)
    {
        this.m_iChangeCharKind = iChangeCharKind;
        CharChangeMainDlg.m_strBuilder.Remove(0, CharChangeMainDlg.m_strBuilder.Length);
        CharChangeMainDlg.m_strBuilder.Append(string.Format("UI/Etc/{0}{1}{2}", "fx_characterchange", NrTSingleton <UIDataManager> .Instance.AddFilePath, Option.extAsset));
        GameObject y = ResourceCache.GetResource(CharChangeMainDlg.m_strBuilder.ToString()) as GameObject;

        if (null == y)
        {
            WWWItem wWWItem = Holder.TryGetOrCreateBundle(CharChangeMainDlg.m_strBuilder.ToString(), NkBundleCallBack.UIBundleStackName);
            wWWItem.SetItemType(ItemType.USER_ASSETB);
            wWWItem.SetCallback(new PostProcPerItem(this._OnEffectProcess), null);
            TsImmortal.bundleService.RequestDownloadCoroutine(wWWItem, DownGroup.RUNTIME, true);
        }
    }
Exemple #30
0
    private void MakeWeaponTrail()
    {
        string arg        = base.GetCharCode();
        string weaponCode = base.GetParentCharSoldierInfo().GetWeaponCode();

        if (base.GetParentCharKindInfo().IsATB(1L))
        {
            arg = this.FindMainCharCode();
        }
        string  str     = string.Format("Effect/AttackEffect/fx_{0}_{1}{2}", arg, weaponCode, NrTSingleton <UIDataManager> .Instance.AddFilePath);
        WWWItem wWWItem = Holder.TryGetOrCreateBundle(str + Option.extAsset, NkBundleCallBack.EffectBundleStackName);

        wWWItem.SetItemType(ItemType.USER_ASSETB);
        wWWItem.SetCallback(new PostProcPerItem(this.FinishDownloadWeaponTrail), null);
        TsImmortal.bundleService.RequestDownloadCoroutine(wWWItem, DownGroup.RUNTIME, false);
    }