删除乱码注释
This commit is contained in:
parent
0eea99c8df
commit
178e12968e
@ -3,8 +3,6 @@ using UnityEngine.UI;
|
||||
using XMLTool;
|
||||
using System.Collections.Generic;
|
||||
using TMPro;
|
||||
using System.Drawing;
|
||||
using UnityEngine.Assertions.Must;
|
||||
|
||||
namespace QFramework.Example
|
||||
{
|
||||
@ -122,9 +120,7 @@ namespace QFramework.Example
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ť<EFBFBD><C5A5>˵<EFBFBD><CBB5><EFBFBD>ť<EFBFBD>Ķ<EFBFBD>Ӧ
|
||||
/// </summary>
|
||||
|
||||
Dictionary<GameObject, GameObject> searchItemMap = new Dictionary<GameObject, GameObject>();
|
||||
|
||||
|
||||
@ -181,10 +177,8 @@ namespace QFramework.Example
|
||||
foreach (var bodyPair in data.subBody)
|
||||
{
|
||||
Body3D.Body body = bodyPair.Value;
|
||||
// ȷ<><C8B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
Transform targetParent = parent != null ? parent : Content;
|
||||
|
||||
// <20><><EFBFBD><EFBFBD>Toggle
|
||||
GameObject toggleObj = GameObject.Instantiate(Item.gameObject, targetParent);
|
||||
toggleObj.name = body.Name;
|
||||
|
||||
@ -220,7 +214,6 @@ namespace QFramework.Example
|
||||
else
|
||||
{
|
||||
uiToggle.gameObject.SetActive(false);
|
||||
Debug.Log($"<22>ڵ<EFBFBD> {body.Name} û<><C3BB><EFBFBD>ӽڵ㡣");
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -252,25 +245,19 @@ namespace QFramework.Example
|
||||
}
|
||||
|
||||
|
||||
// ʵRefreshSearchContent
|
||||
private void RefreshSearchContent(string str)
|
||||
{
|
||||
// SearchContentµ
|
||||
searchItemMap.Clear();
|
||||
SearchContent.RemoveAllChildren();
|
||||
// ݹ
|
||||
CheckChildren(Content, str);
|
||||
|
||||
}
|
||||
|
||||
// ݹ
|
||||
private void CheckChildren(Transform parent, string str)
|
||||
{
|
||||
// ǰµ
|
||||
for (int i = 0; i < parent.childCount; i++)
|
||||
{
|
||||
Transform child = parent.GetChild(i);
|
||||
// Բ ToggleContent/Label
|
||||
Transform labelTransform = child.Find("ToggleContent/Label");
|
||||
if (labelTransform != null)
|
||||
{
|
||||
@ -278,14 +265,11 @@ namespace QFramework.Example
|
||||
if (textComponent != null)
|
||||
{
|
||||
string name = textComponent.text;
|
||||
// Ƿַ
|
||||
if (name.Contains(str))
|
||||
{
|
||||
// Ƹ嵽 SearchContent
|
||||
GameObject clone = GameObject.Instantiate(SearchItem.gameObject, SearchContent);
|
||||
searchItemMap.Add(clone, child.gameObject);
|
||||
Transform subContent = child.Find("SubContent");
|
||||
// Ƿ
|
||||
if (subContent.childCount > 0)
|
||||
{
|
||||
Button btn = clone.transform.Find("Button").GetComponent<Button>();
|
||||
@ -299,10 +283,9 @@ namespace QFramework.Example
|
||||
TextMeshProUGUI buttonText = buttonLabel.GetComponent<TextMeshProUGUI>();
|
||||
if (buttonText != null)
|
||||
{
|
||||
buttonText.text = "飩" + name + ">";
|
||||
buttonText.text = "组" + name + ">";
|
||||
}
|
||||
}
|
||||
// ݹ鵱ǰ
|
||||
CheckChildren(subContent, str);
|
||||
}
|
||||
else
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user