Compare commits

..

No commits in common. "6b36d58a47b6d7c92235c0e7853c6f7b83933b97" and "22ff85a6cff0c5000c08264341c47c1d678670e0" have entirely different histories.

2 changed files with 2 additions and 9 deletions

View File

@ -421,6 +421,7 @@ namespace QFramework.Example
bodyItem.transform.Find("Content/Btns").gameObject.SetActive(false);
bodyItem.transform.Find("Content/Label").GetComponent<TextMeshProUGUI>().text = body.Name;
var bodyToggle = bodyItem.GetComponent<Toggle>();
bodyToggle.isOn = body.isShow;
GameObject obj = Utility.FindObj(body.Path);
obj.SetActive(body.isShow);
bodyToggle.onValueChanged.AddListener(isOn =>
@ -428,7 +429,6 @@ namespace QFramework.Example
SetAllChildren<Transform>(obj.transform, isOn);
obj.SetActive(isOn);
});
bodyToggle.isOn = body.isShow;
var iconImg = bodyItem.transform.Find("Icon").GetComponent<Image>();
LoadIcon(body.Icon, body, iconImg);
}

View File

@ -348,7 +348,6 @@ namespace QFramework.Example
for (int i = 0; i < parent.childCount; i++)
{
Transform child = parent.GetChild(i);
Transform subContent = child.Find("SubContent");
Transform labelTransform = child.Find("Content/Toggle/Content/Label");
if (labelTransform != null)
{
@ -360,6 +359,7 @@ namespace QFramework.Example
{
GameObject clone = GameObject.Instantiate(SearchItem.gameObject, SearchContent);
searchItemMap.Add(clone, child.gameObject);
Transform subContent = child.Find("SubContent");
Button btn = clone.transform.Find("Button").GetComponent<Button>();
btn.onClick.AddListener(() =>
{
@ -383,13 +383,6 @@ namespace QFramework.Example
}
}
}
else
{
if (subContent.childCount > 0)
{
CheckChildren(subContent, str);
}
}
}
}
}