修改TreeViewPanel后提交

This commit is contained in:
高铎 2025-09-26 16:30:50 +08:00
parent 0176b452ae
commit ca656cc960
6 changed files with 4839 additions and 33 deletions

View File

@ -6,7 +6,7 @@ using System.Xml.Serialization;
namespace SuperTreeView namespace SuperTreeView
{ {
public class ItemPrefab1 : MonoBehaviour,IPointerEnterHandler,IPointerExitHandler public class ItemPrefab1 : MonoBehaviour, IPointerEnterHandler, IPointerExitHandler
{ {
public Button mExpandBtn; public Button mExpandBtn;
public Button mClickBtn; public Button mClickBtn;
@ -40,7 +40,7 @@ namespace SuperTreeView
item.DoExpandOrCollapse(); item.DoExpandOrCollapse();
} }
public void SetItemInfo(string labelTxt,string data) public void SetItemInfo(string labelTxt, string data)
{ {
TextName.text = labelTxt; TextName.text = labelTxt;
TextName2.text = labelTxt; TextName2.text = labelTxt;

View File

@ -5,13 +5,13 @@ using UnityEngine.EventSystems;
namespace SuperTreeView namespace SuperTreeView
{ {
public class ItemPrefab2 : MonoBehaviour,IPointerEnterHandler,IPointerExitHandler public class ItemPrefab2 : MonoBehaviour, IPointerEnterHandler, IPointerExitHandler
{ {
public Button mClickBtn; public Button mClickBtn;
public TextMeshProUGUI TextName; public TextMeshProUGUI TextName;
public TextMeshProUGUI TextHover; public TextMeshProUGUI TextHover;
public TextMeshProUGUI TextSelect; public TextMeshProUGUI TextSelect;
public TextMeshProUGUI TextLock; public GameObject TextLock;
public TextMeshProUGUI TextHoverLock; public TextMeshProUGUI TextHoverLock;
string mData = ""; string mData = "";
@ -43,7 +43,7 @@ namespace SuperTreeView
TextName.text = labelTxt; TextName.text = labelTxt;
TextHover.text = labelTxt; TextHover.text = labelTxt;
TextSelect.text = labelTxt; TextSelect.text = labelTxt;
TextLock.text = labelTxt; //TextLock.text = labelTxt;
TextHoverLock.text = labelTxt; TextHoverLock.text = labelTxt;
mData = data; mData = data;
} }

2400
Assets/TreeViewPanel.prefab Normal file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 72ccceef08e4bb94e88119b50dc32090
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

File diff suppressed because it is too large Load Diff