三国卡牌客户端基础资源仓库
yyl
2025-05-19 43486e52373aac7427f2a272302dcbc33c603f34
报错冲突处理
3个文件已修改
2 文件已重命名
1 文件已复制
3个文件已添加
184 ■■■■■ 已修改文件
Assets/Editor/ConfigGen/ConfigGenerater.cs 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Assets/Editor/UI/PSDTOUGUIProcessor.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
Assets/Editor/UI/PSDTOUGUIProcessor.cs.meta 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
Assets/Launch/Manager/ResManager.cs 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Assets/Launch/UI/TextUnline.cs 87 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Assets/Launch/UI/TextUnline.cs.meta 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
Assets/Resources/Scenes/Launch.unity 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Assets/Resources/UI/TextUnline.prefab 67 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Assets/Resources/UI/TextUnline.prefab.meta 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Assets/Editor/ConfigGen/ConfigGenerater.cs
@@ -198,7 +198,7 @@
        sb.AppendLine("        {");
        sb.AppendLine("            configName = configName.Substring(0, configName.Length - 6);");
        sb.AppendLine("        }");
        sb.AppendLine("        TextAsset textAsset = await ResManager.Instance.LoadAsset<TextAsset>(\"Config\", configName);");
        sb.AppendLine("        TextAsset textAsset = ResManager.Instance.LoadAsset<TextAsset>(\"Config\", configName);");
        sb.AppendLine("        if (textAsset != null)");
        sb.AppendLine("        {");
        sb.AppendLine("            string[] lines = textAsset.text.Split('\\n');");
@@ -231,7 +231,7 @@
        sb.AppendLine("    {");
        sb.AppendLine("        string configName = typeof(T).Name;");
        sb.AppendLine();
        sb.AppendLine("        TextAsset textAsset = await ResManager.Instance.LoadAsset<TextAsset>(\"Config\", configName);");
        sb.AppendLine("        TextAsset textAsset = ResManager.Instance.LoadAsset<TextAsset>(\"Config\", configName);");
        sb.AppendLine("        if (textAsset != null)");
        sb.AppendLine("        {");
        sb.AppendLine("            string[] lines = textAsset.text.Split('\\n');");
Assets/Editor/UI/PSDTOUGUIProcessor.cs
File was renamed from Assets/Editor/UI/UIUtility.cs
@@ -5,7 +5,7 @@
using UnityEditor;
using UnityEngine.UI;
public class UIUtility
public class PSDTOUGUIProcessor
{
    [UnityEditor.MenuItem("Assets/PSDTOUGUI后处理")]
    public static void BaseSettings()
Assets/Editor/UI/PSDTOUGUIProcessor.cs.meta
File was renamed from Assets/Editor/UI/UIUtility.cs.meta
@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 9a98ee6d4bbc11d40af09789e7f5921a
guid: ba3b4aabb38bf4046932699bb98dd2b5
MonoImporter:
  externalObjects: {}
  serializedVersion: 2
Assets/Launch/Manager/ResManager.cs
@@ -490,8 +490,13 @@
                }
            }
        }
    }
    public void UnloadAsset(string assetBundleName)
    {
    }
    public class VersionInfo
    {
Assets/Launch/UI/TextUnline.cs
New file
@@ -0,0 +1,87 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class TextUnline : MaskableGraphic {
    private RectTransform target;
    private bool isChanged = false;
    protected override void Awake()
    {
        if (transform.parent != null) {
            target = transform.parent as RectTransform;
        }
    }
    private List<UIVertex> vertlist = new List<UIVertex>();
    protected override void OnPopulateMesh(VertexHelper vh)
    {
        vh.Clear();
        DrawUnderline(vh);
    }
    private void DrawUnderline(VertexHelper vh)
    {
        if (vertlist.Count < 1) return;
        for (int i = 0; i < vertlist.Count; i++)
        {
            vh.AddVert(vertlist[i]);
        }
        for (int i = 0; i < vertlist.Count; i+=4)
        {
            vh.AddTriangle(i, i + 1, i + 2);
            vh.AddTriangle(i + 1, i + 3, i + 2);
        }
    }
    public void SetUIVertex(Vector3 start,Vector3 end,float delta, float height,Color color)
    {
        UIVertex[] verts = new UIVertex[4];
        Vector3 pos = Vector3.zero;
        pos.x = start.x;pos.y = start.y + delta;
        verts[0].position = pos;
        pos.x = end.x;
        verts[1].position = pos;
        pos.x = start.x;pos.y = pos.y + height;
        verts[2].position = pos;
        pos.x = end.x;
        verts[3].position = pos;
        for (int i = 0; i < 4; i++) {
            verts[i].color = color;
            verts[i].uv0 = Vector2.zero;
            vertlist.Add(verts[i]);
        }
        isChanged = true;
    }
    private void Update()
    {
        if (target != null) {
            rectTransform.sizeDelta = target.sizeDelta;
            rectTransform.localPosition = Vector3.zero;
            rectTransform.pivot = target.pivot;
        }
        else {
            if (transform.parent != null) {
                target = transform.parent as RectTransform;
            }
        }
        if (isChanged) {
            SetAllDirty();
            isChanged = false;
        }
    }
    public void ClearVert()
    {
        vertlist.Clear();
        isChanged = true;
    }
}
Assets/Launch/UI/TextUnline.cs.meta
copy from Assets/Editor/UI/UIUtility.cs.meta copy to Assets/Launch/UI/TextUnline.cs.meta
File was copied from Assets/Editor/UI/UIUtility.cs.meta
@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 9a98ee6d4bbc11d40af09789e7f5921a
guid: 9756d505db1073f488e3f36d498e74c2
MonoImporter:
  externalObjects: {}
  serializedVersion: 2
Assets/Resources/Scenes/Launch.unity
@@ -260,12 +260,10 @@
  m_Script: {fileID: 11500000, guid: b3c8dbd062ed4d5459217dccb0ee389f, type: 3}
  m_Name: 
  m_EditorClassIdentifier: 
  versionUrl:
  IsHotupdate: 0
  IsUseSDK: 0
  versionCheck: 0
  IsUseAssetBundle: 0
  EnableNetLog: 1
  EnableLog: 1
  EnableLogWarning: 1
  EnableLogError: 1
--- !u!4 &421128702
Transform:
  m_ObjectHideFlags: 0
Assets/Resources/UI/TextUnline.prefab
New file
@@ -0,0 +1,67 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &1192521347503494
GameObject:
  m_ObjectHideFlags: 0
  m_CorrespondingSourceObject: {fileID: 0}
  m_PrefabInstance: {fileID: 0}
  m_PrefabAsset: {fileID: 0}
  serializedVersion: 6
  m_Component:
  - component: {fileID: 224444310098339556}
  - component: {fileID: 222419709660993208}
  - component: {fileID: 4629544882936249637}
  m_Layer: 5
  m_Name: TextUnline
  m_TagString: Untagged
  m_Icon: {fileID: 0}
  m_NavMeshLayer: 0
  m_StaticEditorFlags: 0
  m_IsActive: 1
--- !u!224 &224444310098339556
RectTransform:
  m_ObjectHideFlags: 0
  m_CorrespondingSourceObject: {fileID: 0}
  m_PrefabInstance: {fileID: 0}
  m_PrefabAsset: {fileID: 0}
  m_GameObject: {fileID: 1192521347503494}
  m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
  m_LocalPosition: {x: 0, y: 0, z: 0}
  m_LocalScale: {x: 1, y: 1, z: 1}
  m_ConstrainProportionsScale: 0
  m_Children: []
  m_Father: {fileID: 0}
  m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
  m_AnchorMin: {x: 0.5, y: 0.5}
  m_AnchorMax: {x: 0.5, y: 0.5}
  m_AnchoredPosition: {x: 0, y: 0}
  m_SizeDelta: {x: 750, y: 1334}
  m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &222419709660993208
CanvasRenderer:
  m_ObjectHideFlags: 0
  m_CorrespondingSourceObject: {fileID: 0}
  m_PrefabInstance: {fileID: 0}
  m_PrefabAsset: {fileID: 0}
  m_GameObject: {fileID: 1192521347503494}
  m_CullTransparentMesh: 0
--- !u!114 &4629544882936249637
MonoBehaviour:
  m_ObjectHideFlags: 0
  m_CorrespondingSourceObject: {fileID: 0}
  m_PrefabInstance: {fileID: 0}
  m_PrefabAsset: {fileID: 0}
  m_GameObject: {fileID: 1192521347503494}
  m_Enabled: 1
  m_EditorHideFlags: 0
  m_Script: {fileID: 11500000, guid: 9756d505db1073f488e3f36d498e74c2, type: 3}
  m_Name:
  m_EditorClassIdentifier:
  m_Material: {fileID: 0}
  m_Color: {r: 1, g: 1, b: 1, a: 1}
  m_RaycastTarget: 1
  m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
  m_Maskable: 1
  m_OnCullStateChanged:
    m_PersistentCalls:
      m_Calls: []
Assets/Resources/UI/TextUnline.prefab.meta
New file
@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 18bf691bed9e09946a661188ec80fbd4
PrefabImporter:
  externalObjects: {}
  userData:
  assetBundleName:
  assetBundleVariant: