From fcce9ab0e54e4580569ba4ed5be0f4e3ba4d37fa Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期二, 09 十二月 2025 17:12:02 +0800
Subject: [PATCH] 0312 优化字符串拼接 - 改名
---
Assets/Editor/Tool/SpriteManageTool.cs | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/Assets/Editor/Tool/SpriteManageTool.cs b/Assets/Editor/Tool/SpriteManageTool.cs
index 3d5832d..c6ce442 100644
--- a/Assets/Editor/Tool/SpriteManageTool.cs
+++ b/Assets/Editor/Tool/SpriteManageTool.cs
@@ -245,8 +245,8 @@
var _detail = _list[i];
var _fatherDetail = _detail.fatherDetail;
GUILayout.BeginHorizontal();
- GUILayout.Label(StringUtility.Contact((i + 1).ToString(), ".", "Path: "));
- var _path = StringUtility.Contact(_detail.fatherDetail, _fatherDetail == string.Empty ? string.Empty : "/", _detail.name);
+ GUILayout.Label(StringUtility.Concat((i + 1).ToString(), ".", "Path: "));
+ var _path = StringUtility.Concat(_detail.fatherDetail, _fatherDetail == string.Empty ? string.Empty : "/", _detail.name);
GUILayout.TextField(_path);
if (_fatherDetail != string.Empty && GUILayout.Button("Goto"))
{
@@ -288,8 +288,8 @@
}
GUILayout.BeginHorizontal();
var _fatherDetail = _detail.fatherDetail;
- GUILayout.Label(StringUtility.Contact((i + 1).ToString(), ".", "Path: "));
- var _path = StringUtility.Contact(_detail.fatherDetail, _fatherDetail == string.Empty ? string.Empty : "/", _detail.name);
+ GUILayout.Label(StringUtility.Concat((i + 1).ToString(), ".", "Path: "));
+ var _path = StringUtility.Concat(_detail.fatherDetail, _fatherDetail == string.Empty ? string.Empty : "/", _detail.name);
GUILayout.TextField(_path);
if (_fatherDetail != string.Empty && GUILayout.Button("Goto"))
{
@@ -425,7 +425,7 @@
var _match = _matchs[_index - 1];
GetRefComponent(_list[_index], _list[_index].Split('\n'), _match.Groups[1].Value);
bool isCancel = EditorUtility.DisplayCancelableProgressBar("鏌ユ壘寮曠敤璧勬簮",
- StringUtility.Contact(_index.ToString(), "/", _list.Count.ToString()), (float)_index / (float)_list.Count);
+ StringUtility.Concat(_index.ToString(), "/", _list.Count.ToString()), (float)_index / (float)_list.Count);
_index++;
if (isCancel || _index >= _list.Count)
{
@@ -447,7 +447,7 @@
_details.Add(_detail);
}
isCancel = EditorUtility.DisplayCancelableProgressBar("鏌ユ壘寮曠敤璧勬簮",
- StringUtility.Contact(_index.ToString(), "/", _keys.Count.ToString()), (float)_index / (float)_keys.Count);
+ StringUtility.Concat(_index.ToString(), "/", _keys.Count.ToString()), (float)_index / (float)_keys.Count);
_index++;
if (isCancel || _index >= _keys.Count)
{
@@ -575,7 +575,7 @@
if (_detail.rectId == _fatherId)
{
var _father = GetFatherDetail(_detail.fatherId);
- return StringUtility.Contact(GetFatherDetail(_detail.fatherId), _father == string.Empty ? string.Empty : "/", _detail.name);
+ return StringUtility.Concat(GetFatherDetail(_detail.fatherId), _father == string.Empty ? string.Empty : "/", _detail.name);
}
}
return string.Empty;
@@ -635,7 +635,7 @@
public static void DisplayExternalPath()
{
GUILayout.BeginHorizontal();
- GUILayout.Label(StringUtility.Contact("鏂囦欢澶硅矾寰勶細", m_ExternalFilePath));
+ GUILayout.Label(StringUtility.Concat("鏂囦欢澶硅矾寰勶細", m_ExternalFilePath));
if (GUILayout.Button("閫夋嫨鏂囦欢鏍硅矾寰�"))
{
var _path = EditorUtility.OpenFolderPanel("鏍硅矾寰�", "", "");
--
Gitblit v1.8.0