public void LoadEffect()
    {
        this.m_strText = string.Format("{0}{1}", "UI/Soldier/fx_wakeup_glow", NrTSingleton <UIDataManager> .Instance.AddFilePath);
        WWWItem wWWItem = Holder.TryGetOrCreateBundle(this.m_strText + Option.extAsset, NkBundleCallBack.UIBundleStackName);

        wWWItem.SetItemType(ItemType.USER_ASSETB);
        wWWItem.SetCallback(new PostProcPerItem(this.Effect_Wakeup_Glow), null);
        TsImmortal.bundleService.RequestDownloadCoroutine(wWWItem, DownGroup.RUNTIME, true);
        this.m_strText = string.Format("{0}{1}", "UI/Soldier/fx_wakeup_start", NrTSingleton <UIDataManager> .Instance.AddFilePath);
        wWWItem        = Holder.TryGetOrCreateBundle(this.m_strText + Option.extAsset, NkBundleCallBack.UIBundleStackName);
        wWWItem.SetItemType(ItemType.USER_ASSETB);
        wWWItem.SetCallback(new PostProcPerItem(this.Effect_Wakeup_Start), null);
        TsImmortal.bundleService.RequestDownloadCoroutine(wWWItem, DownGroup.RUNTIME, true);
        this.m_strText = string.Format("{0}{1}", "UI/Soldier/fx_wakeup_apply", NrTSingleton <UIDataManager> .Instance.AddFilePath);
        wWWItem        = Holder.TryGetOrCreateBundle(this.m_strText + Option.extAsset, NkBundleCallBack.UIBundleStackName);
        wWWItem.SetItemType(ItemType.USER_ASSETB);
        wWWItem.SetCallback(new PostProcPerItem(this.Effect_Wakeup_Apply), null);
        TsImmortal.bundleService.RequestDownloadCoroutine(wWWItem, DownGroup.RUNTIME, true);
        this.m_strText = string.Format("{0}{1}", "UI/Soldier/fx_wakeup_text", NrTSingleton <UIDataManager> .Instance.AddFilePath);
        wWWItem        = Holder.TryGetOrCreateBundle(this.m_strText + Option.extAsset, NkBundleCallBack.UIBundleStackName);
        wWWItem.SetItemType(ItemType.USER_ASSETB);
        wWWItem.SetCallback(new PostProcPerItem(this.Effect_Wakeup_Text), null);
        TsImmortal.bundleService.RequestDownloadCoroutine(wWWItem, DownGroup.RUNTIME, true);
        this.m_strText = string.Format("{0}{1}", "UI/Soldier/fx_wakeup_change", NrTSingleton <UIDataManager> .Instance.AddFilePath);
        wWWItem        = Holder.TryGetOrCreateBundle(this.m_strText + Option.extAsset, NkBundleCallBack.UIBundleStackName);
        wWWItem.SetItemType(ItemType.USER_ASSETB);
        wWWItem.SetCallback(new PostProcPerItem(this.Effect_Wakeup_Change), null);
        TsImmortal.bundleService.RequestDownloadCoroutine(wWWItem, DownGroup.RUNTIME, true);
    }
Beispiel #2
0
    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);
        str     = string.Format("{0}{1}", "Effect/Instant/fx_direct_fade", NrTSingleton <UIDataManager> .Instance.AddFilePath);
        wWWItem = Holder.TryGetOrCreateBundle(str + Option.extAsset, NkBundleCallBack.UIBundleStackName);
        wWWItem.SetItemType(ItemType.USER_ASSETB);
        wWWItem.SetCallback(new PostProcPerItem(this.Effect_Fade), null);
        TsImmortal.bundleService.RequestDownloadCoroutine(wWWItem, DownGroup.RUNTIME, true);
    }
Beispiel #3
0
 private void LoadMaterial()
 {
     if (this.m_MaterialNames == null)
     {
         return;
     }
     this.m_ProgressCount = this.m_MaterialNames.Length;
     this.m_Materials     = new Material[this.m_ProgressCount];
     for (int i = 0; i < this.m_MaterialNames.Length; i++)
     {
         if (!string.IsNullOrEmpty(this.m_MaterialNames[i]))
         {
             string  text    = TsMaterialBundleLoader.MakeBundlePath(this.m_MaterialNames[i]);
             WWWItem wWWItem = Holder.TryGetOrCreateBundle(text, TsMaterialBundleLoader.CommonTextureGroup.Name);
             if (wWWItem != null)
             {
                 wWWItem.SetItemType(ItemType.USER_ASSETB);
                 wWWItem.SetCallback(new PostProcPerItem(this.OnCompleteDownload), i);
                 TsImmortal.bundleService.RequestDownloadCoroutine(wWWItem, DownGroup.RUNTIME, false);
             }
             else
             {
                 TsLog.LogError("[RuntimeTexture] cannot create WWWItem (\"{0}\")", new object[]
                 {
                     text
                 });
             }
         }
     }
 }
    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);
    }
Beispiel #5
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();
        }
    }
Beispiel #6
0
    private void SetTextureBundle()
    {
        if (NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindInfo(this.m_pkSolinfo.GetCharKind()) == null)
        {
            return;
        }
        this.SetGui();
        string costumePortraitPath = NrTSingleton <NrCharCostumeTableManager> .Instance.GetCostumePortraitPath(this.m_pkSolinfo);

        string text = MsgHandler.HandleReturn <string>("PortraitFileName", new object[]
        {
            this.m_pkSolinfo.GetCharKind(),
            (int)(this.m_bBaseGrade - 1)
        });

        if (string.Empty == text)
        {
            return;
        }
        if (!string.IsNullOrEmpty(costumePortraitPath))
        {
            string text2 = MsgHandler.HandleReturn <string>("PortraitCostumeFileName", new object[]
            {
                this.m_pkSolinfo.GetCharKind(),
                (int)(this.m_bBaseGrade - 1),
                costumePortraitPath
            });
            if (!string.IsNullOrEmpty(text2))
            {
                text = text2;
            }
        }
        if (UIDataManager.IsUse256Texture())
        {
            this.FaceImageKey = text + "_256";
        }
        else
        {
            this.FaceImageKey = text + "_512";
        }
        this.BaseRankImageKey   = "rankl" + this.m_bBaseGrade.ToString();
        this.ChangeRankImageKey = "rankm" + this.m_bChangeGrade.ToString();
        if (null == NrTSingleton <UIImageBundleManager> .Instance.GetTexture(this.BaseRankImageKey))
        {
            string  str     = string.Format("{0}", "UI/Soldier/" + this.BaseRankImageKey + 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.BaseRankImageKey);
            TsImmortal.bundleService.RequestDownloadCoroutine(wWWItem, DownGroup.RUNTIME, true);
        }
        if (null == NrTSingleton <UIImageBundleManager> .Instance.GetTexture(this.ChangeRankImageKey))
        {
            string  str2     = string.Format("{0}", "UI/Soldier/" + this.ChangeRankImageKey + 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.ChangeRankImageKey);
            TsImmortal.bundleService.RequestDownloadCoroutine(wWWItem2, DownGroup.RUNTIME, true);
        }
        this.eBUNDLEDOWN = Myth_Evolution_Success_DLG.eBUNDLEDOWNSTATE.eBUNDLE_DOWNING;
    }
    public override void SetComponent()
    {
        for (int i = 0; i < 9; i++)
        {
            this.m_btOccMilitary[i] = (base.GetControl(string.Format("BT_User0{0}", i + 1)) as Button);
            this.m_itOccMilitary[i] = (base.GetControl(string.Format("DT_User0{0}", i + 1)) as ItemTexture);
        }
        this.m_lTitle   = (base.GetControl("LB_Title") as Label);
        this.m_dBGImage = (base.GetControl("DT_ImageBG") as DrawTexture);
        this.m_btClose  = (base.GetControl("BT_Cancel") as Button);
        Button expr_A5 = this.m_btClose;

        expr_A5.Click          = (EZValueChangedDelegate)Delegate.Combine(expr_A5.Click, new EZValueChangedDelegate(this.OnBtnClickClose));
        this.m_btGoMilitarySet = (base.GetControl("BT_Start") as Button);
        Button expr_E2 = this.m_btGoMilitarySet;

        expr_E2.Click = (EZValueChangedDelegate)Delegate.Combine(expr_E2.Click, new EZValueChangedDelegate(this.OnBtnClickGoMilitarySet));
        this.Show();
        string  str     = string.Format("UI/Mine/{0}{1}", "bg_minemilitaryset", NrTSingleton <UIDataManager> .Instance.AddFilePath);
        WWWItem wWWItem = Holder.TryGetOrCreateBundle(str + Option.extAsset, NkBundleCallBack.UIBundleStackName);

        wWWItem.SetItemType(ItemType.USER_ASSETB);
        wWWItem.SetCallback(new PostProcPerItem(this.SetBackImage), "bg_minemilitaryset");
        TsImmortal.bundleService.RequestDownloadCoroutine(wWWItem, DownGroup.RUNTIME, true);
    }
Beispiel #8
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 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);
    }
    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);
    }
Beispiel #12
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);
    }
Beispiel #13
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);
    }
Beispiel #14
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);
    }
Beispiel #15
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);
    }
    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);
    }
    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);
    }
    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);
     }
 }
Beispiel #20
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);
    }
    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);
    }
Beispiel #22
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);
    }
Beispiel #23
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 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 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 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;
     }
 }
    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);
    }
Beispiel #28
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);
        }
    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;
     }
 }