hch
2025-09-03 bc4197c636bd2bbf011bf94cd24ebfc7b060f2d7
117 【武将】武将系统 - 立绘参数
6个文件已修改
52 ■■■■ 已修改文件
Main/Config/Configs/HeroSkinConfig.cs 23 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/Core/NetworkPackage/DTCFile/ServerPack/HB4_FightDefine/DTCB430_tagSCTurnFightReport.cs 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/System/HappyXB/HeroCallResultWin.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/System/Hero/UIHeroController.cs 20 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/System/HeroUI/HeroTrainWin.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/System/HeroUI/HeroUIManager.cs 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/Config/Configs/HeroSkinConfig.cs
@@ -1,6 +1,6 @@
//--------------------------------------------------------
//    [Author]:           YYL
//    [  Date ]:           2025年8月18日
//    [  Date ]:           2025年9月3日
//--------------------------------------------------------
using System.Collections.Generic;
@@ -22,6 +22,7 @@
    public int[] AllBatAttrIDList;
    public int[] AllBatAttrValueList;
    public string Tachie;
    public float[] TachieParam;
    public string SquareIcon;
    public string RectangleIcon;
    public string SpineRes;
@@ -96,11 +97,25 @@
            Tachie = tables[5];
            SquareIcon = tables[6];
            if (tables[6].Contains("["))
            {
                TachieParam = JsonMapper.ToObject<float[]>(tables[6]);
            }
            else
            {
                string[] TachieParamStringArray = tables[6].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries);
                TachieParam = new float[TachieParamStringArray.Length];
                for (int i=0;i<TachieParamStringArray.Length;i++)
                {
                     float.TryParse(TachieParamStringArray[i],out TachieParam[i]);
                }
            }
            RectangleIcon = tables[7];
            SquareIcon = tables[7];
            SpineRes = tables[8];
            RectangleIcon = tables[8];
            SpineRes = tables[9];
        }
        catch (Exception exception)
        {
Main/Core/NetworkPackage/DTCFile/ServerPack/HB4_FightDefine/DTCB430_tagSCTurnFightReport.cs
@@ -6,7 +6,6 @@
public class DTCB430_tagSCTurnFightReport : DtcBasic {
    private static GameNetEncode encoder = new GameNetEncode();
    static byte[] vCmdBytes = new byte[2];
@@ -50,8 +49,6 @@
                Array.Copy(vPackBytes, 0, vCmdBytes, 0, 2);
                var cmd = (ushort)((ushort)(vCmdBytes[0] << 8) + vCmdBytes[1]);
                bool isRegist = false;  // 未注册封包处理
                Debug.Log("DTCB430_tagSCTurnFightReport: 拆解分包 长度:" + vBodyLeng + " cmd:" + cmd);
                if (PackageRegedit.Contain(cmd))
                {
Main/System/HappyXB/HeroCallResultWin.cs
@@ -265,7 +265,7 @@
            return;
        }
        var hero = HeroConfig.Get(heroID);
        roleLHModel.Create(hero.SkinIDList[0], HeroUIManager.lihuiScale, motionName: "", isLh: true);
        roleLHModel.Create(hero.SkinIDList[0], 1, motionName: "", isLh: true);
        qualityImg.SetSprite("HeroCallQuality" + hero.Quality);
        newMarkLHImg.SetActive(HeroUIManager.Instance.IsNewHero(heroID));
        showLHResultCell.Display(heroID, 0, true);
Main/System/Hero/UIHeroController.cs
@@ -63,7 +63,27 @@
            return;
        }
        skeletonGraphic.Initialize(true);
        if (isLh)
        {
            //X轴偏移,Y轴偏移,缩放,是否水平翻转(0否1是)
            if (skinConfig.TachieParam.Length == 4)
            {
                this.transform.localPosition = new Vector3(skinConfig.TachieParam[0], skinConfig.TachieParam[1], 0);
                this.transform.localScale = Vector3.one * skinConfig.TachieParam[2];
                this.transform.localRotation = Quaternion.Euler(0, skinConfig.TachieParam[3] == 0 ? 0 : 180, 0);
            }
            else
            {
                this.transform.localPosition = Vector3.zero;
                this.transform.localScale = Vector3.one;
                this.transform.localRotation = Quaternion.identity;
            }
        }
        else
        {
        this.transform.localScale = Vector3.one * scale;
        }
        spineAnimationState = skeletonGraphic.AnimationState;
        spineAnimationState.Data.DefaultMix = 0f;
        if (motionName == "")
Main/System/HeroUI/HeroTrainWin.cs
@@ -172,7 +172,7 @@
    public void Display()
    {
        roleLhModel.Create(hero.SkinID, HeroUIManager.lihuiScale, motionName: "", isLh: true);
        roleLhModel.Create(hero.SkinID, 1, motionName: "", isLh: true);
        roleXsModel.Create(hero.SkinID);
        jobImg.SetSprite(HeroUIManager.Instance.GetJobIconName(hero.heroConfig.Class));
        jobPosNameText.text = HeroUIManager.Instance.GetJobName(hero.heroConfig.Class);
Main/System/HeroUI/HeroUIManager.cs
@@ -16,8 +16,6 @@
    public WaitHeroFuncResponse waitResponse;    //请求武将功能,与服务端交互
    public const float lihuiScale = 0.6f;   //立绘缩放大小
    //用于非上阵武将战力变化时 武将ID:上次战力
    public KeyValuePair<string, long> lastFightPower = new KeyValuePair<string, long>();