262 幻境阁-客户端 称号适配直接显示原尺寸大小,按示意图实现尺寸缩放
10个文件已修改
60 ■■■■ 已修改文件
Main/System/Arena/ArenaChallengeCell.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/System/Arena/ArenaRecordCell.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/System/OfficialRank/OfficialTitleCell.cs 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/System/PhantasmPavilion/AvatarCell.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/System/PhantasmPavilion/PhantasmPavilionChatBoxItem.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/System/PhantasmPavilion/PhantasmPavilionFacePicItem.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/System/PhantasmPavilion/PhantasmPavilionFaceWin.cs 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/System/PhantasmPavilion/PhantasmPavilionManager.cs 27 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/System/PhantasmPavilion/PhantasmPavilionTilteWin.cs 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/System/PhantasmPavilion/PhantasmPavilionTitleItem.cs 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/System/Arena/ArenaChallengeCell.cs
@@ -42,7 +42,7 @@
        txtFightPoint.text = UIHelper.ReplaceLargeArtNum(arenaMatchInfo.FightPower);
        txtAddScore.text = Language.Get("Arena16", ArenaManager.Instance.GetChallengePoints(index));
        officialTitleCell.InitUI(arenaMatchInfo.RealmLV, (int)arenaMatchInfo.TitleID);
        officialTitleCell.InitUI(arenaMatchInfo.RealmLV, (int)arenaMatchInfo.TitleID, 0.65f);
        int[][] rewards = ArenaManager.Instance.fixedChallengeRewards;
        for (int i = 0; i < itemCells.Count; i++)
Main/System/Arena/ArenaRecordCell.cs
@@ -71,7 +71,7 @@
        });
        txtName.text = arenaGameRec.Name;
        txtFightPoint.text = UIHelper.ReplaceLargeArtNum(arenaGameRec.FightPower);
        officialTitleCell.InitUI(PlayerDatas.Instance.baseData.realmLevel, PlayerDatas.Instance.baseData.TitleID);
        officialTitleCell.InitUI(PlayerDatas.Instance.baseData.realmLevel, PlayerDatas.Instance.baseData.TitleID, 0.65f);
        imgMoneyIcon.SetIconWithMoneyType(ArenaManager.Instance.ChallengeMoneyType);
        txtNeedCount.text = ArenaManager.Instance.NeedChallengeMoneyCnt.ToString();
    }
Main/System/OfficialRank/OfficialTitleCell.cs
@@ -104,7 +104,7 @@
    }
    public void InitUI(int offcialRank, int titleID)
    public void InitUI(int offcialRank, int titleID, float scale = 0.75f)
    {
        LoadPrefab();   //存在被卸载的可能,重新加载
        if (!TitleConfig.HasKey(titleID))
@@ -125,7 +125,8 @@
            int resourceType = PhantasmPavilionManager.Instance.GetResourceType(PhantasmPavilionType.Title, titleID);
            string resourceValue = PhantasmPavilionManager.Instance.GetResourceValue(PhantasmPavilionType.Title, titleID);
            PhantasmPavilionManager.Instance.Show(titleImage, effectPlayer, titleUIFrame, resourceType, resourceValue);
            PhantasmPavilionManager.Instance.Show(PhantasmPavilionType.Title, titleImage, effectPlayer, titleUIFrame, resourceType, resourceValue);
            titleImage.rectTransform.localScale = new Vector3(scale, scale, scale);
        }
    }
Main/System/PhantasmPavilion/AvatarCell.cs
@@ -216,7 +216,7 @@
        int resourceType = manager.GetResourceType(PhantasmPavilionType.FacePic, facePicID);
        string resourceValue = manager.GetResourceValue(PhantasmPavilionType.FacePic, facePicID);
        manager.Show(facePicImage, facePicSpine, facePicUIFrame, resourceType, resourceValue);
        manager.Show(PhantasmPavilionType.FacePic, facePicImage, facePicSpine, facePicUIFrame, resourceType, resourceValue);
        faceBGImage.SetNativeSize();
        faceImage.SetNativeSize();
Main/System/PhantasmPavilion/PhantasmPavilionChatBoxItem.cs
@@ -39,7 +39,7 @@
        int resourceType = manager.GetResourceType(type, id);
        string resourceValue = manager.GetResourceValue(type, id);
        manager.Show(imgFace, spine, uiFrame, resourceType, resourceValue);
        manager.Show(PhantasmPavilionType.ChatBox, imgFace, spine, uiFrame, resourceType, resourceValue);
        if (resourceType == 1)
        {
            imgFace.SetNativeSize();
Main/System/PhantasmPavilion/PhantasmPavilionFacePicItem.cs
@@ -37,7 +37,7 @@
        int resourceType = manager.GetResourceType(type, id);
        string resourceValue = manager.GetResourceValue(type, id);
        manager.Show(imgFace, spine, uiFrame, resourceType, resourceValue);
        manager.Show(PhantasmPavilionType.FacePic, imgFace, spine, uiFrame, resourceType, resourceValue);
        manager.UpdateItemRedPoint(imgRed, type, id);
    }
Main/System/PhantasmPavilion/PhantasmPavilionFaceWin.cs
@@ -312,7 +312,7 @@
                manager.ShowFace(imgNowFacePicFace, UIEffectPlayerNowFacePicFace, uiFrameNowFacePicFace, maskNowFacePicFace, faceID);
                str = AvatarHelper.GetAvatarBgColorStr(faceID);
                imgNowFacePicFaceBg.SetSprite(str);
                manager.Show(imgNowFacePic, UIEffectPlayerNowFacePic, uiFrameNowFacePic, resourceType, resourceValue);
                manager.Show(PhantasmPavilionType.FacePic, imgNowFacePic, UIEffectPlayerNowFacePic, uiFrameNowFacePic, resourceType, resourceValue);
                if (resourceType == 1)
                {
                    imgNowFacePicFace.SetNativeSize();
@@ -321,7 +321,7 @@
                break;
            case PhantasmPavilionType.ChatBox:
                manager.Show(imgNowChatBox, UIEffectPlayerNowChatBox, uiFrameNowChatBox, resourceType, resourceValue);
                manager.Show(PhantasmPavilionType.ChatBox,imgNowChatBox, UIEffectPlayerNowChatBox, uiFrameNowChatBox, resourceType, resourceValue);
                if (resourceType == 1)
                {
                    imgNowChatBox.SetNativeSize();
Main/System/PhantasmPavilion/PhantasmPavilionManager.cs
@@ -234,22 +234,22 @@
            var sprite = UILoader.LoadSprite("HeroHead", skinConfig.SquareIcon);
            if (sprite == null)
            {
                Show(imgFace, spine, uiFrame, resourceType, "herohead_default", null, ellipseMask);
                Show(type, imgFace, spine, uiFrame, resourceType, "herohead_default", null, ellipseMask);
            }
            else
            {
                Show(imgFace, spine, uiFrame, resourceType, string.Empty, sprite, ellipseMask);
                Show(type, imgFace, spine, uiFrame, resourceType, string.Empty, sprite, ellipseMask);
            }
        }
        else
        {
            resourceValue = GetResourceValue(type, id);
            Show(imgFace, spine, uiFrame, resourceType, resourceValue, null, ellipseMask);
            Show(type, imgFace, spine, uiFrame, resourceType, resourceValue, null, ellipseMask);
        }
    }
    public void Show(ImageEx imgFace, UIEffectPlayer spine, UIFrame uiFrame, int resourceType, string resourceValue, Sprite sprite = null, EllipseMask ellipseMask = null)
    public void Show(PhantasmPavilionType type, ImageEx imgFace, UIEffectPlayer spine, UIFrame uiFrame, int resourceType, string resourceValue, Sprite sprite = null, EllipseMask ellipseMask = null)
    {
        spine.Stop();
@@ -271,6 +271,12 @@
                {
                    imgFace.overrideSprite = sprite;
                }
                if (type == PhantasmPavilionType.Title)
                {
                    imgFace.SetNativeSize();
                }
                break;
            case 2: // spine
                imgFace.enabled = true;
@@ -293,13 +299,16 @@
                imgFace.sprite = null;
                imgFace.overrideSprite = null;
                if (type == PhantasmPavilionType.Title)
                {
                if (!UIFrameMgr.Inst.ContainsDynamicImage(resourceValue))
                    break;
                //List<UnityEngine.Sprite> spriteList = UIFrameMgr.Inst.GetDynamicImage(resourceValue);
                // if (!spriteList.IsNullOrEmpty())
                // {
                //     imgFace.rectTransform.sizeDelta = new Vector2(spriteList[0].rect.width, spriteList[0].rect.height);
                // }
                    List<Sprite> spriteList = UIFrameMgr.Inst.GetDynamicImage(resourceValue);
                    if (!spriteList.IsNullOrEmpty())
                    {
                        imgFace.rectTransform.sizeDelta = new Vector2(spriteList[0].rect.width, spriteList[0].rect.height);
                    }
                }
                uiFrame.ResetFrame(resourceValue);
                uiFrame.enabled = true;
Main/System/PhantasmPavilion/PhantasmPavilionTilteWin.cs
@@ -185,11 +185,8 @@
    {
        int resourceType = manager.GetResourceType(type, id);
        string resourceValue = manager.GetResourceValue(type, id);
        manager.Show(imgNowChatBox, UIEffectPlayerNowChatBox, uiFrameNowChatBox, resourceType, resourceValue);
        if (resourceType == 1)
        {
            imgNowChatBox.SetNativeSize();
        }
        manager.Show(PhantasmPavilionType.Title, imgNowChatBox, UIEffectPlayerNowChatBox, uiFrameNowChatBox, resourceType, resourceValue);
        txtName.text = manager.GetName(type, id);
        txtGetWayString.text = Language.Get("PhantasmPavilion06", manager.GetGetWayString(type, id));
Main/System/PhantasmPavilion/PhantasmPavilionTitleItem.cs
@@ -40,12 +40,7 @@
        int resourceType = manager.GetResourceType(type, id);
        string resourceValue = manager.GetResourceValue(type, id);
        manager.Show(imgFace, spine, uiFrame, resourceType, resourceValue);
        if (resourceType == 1)
        {
            imgFace.SetNativeSize();
        }
        manager.Show(PhantasmPavilionType.Title, imgFace, spine, uiFrame, resourceType, resourceValue);
        manager.UpdateItemRedPoint(imgRed, type, id);
    }