修改TreeViewPanel后提交
This commit is contained in:
parent
0176b452ae
commit
ca656cc960
@ -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;
|
||||||
@ -33,14 +33,14 @@ namespace SuperTreeView
|
|||||||
mExpandBtn.onClick.AddListener(OnExpandBtnClicked);
|
mExpandBtn.onClick.AddListener(OnExpandBtnClicked);
|
||||||
mClickBtn.onClick.AddListener(OnExpandBtnClicked);
|
mClickBtn.onClick.AddListener(OnExpandBtnClicked);
|
||||||
}
|
}
|
||||||
|
|
||||||
void OnExpandBtnClicked()
|
void OnExpandBtnClicked()
|
||||||
{
|
{
|
||||||
TreeViewItem item = GetComponent<TreeViewItem>();
|
TreeViewItem item = GetComponent<TreeViewItem>();
|
||||||
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;
|
||||||
|
|||||||
@ -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
2400
Assets/TreeViewPanel.prefab
Normal file
File diff suppressed because it is too large
Load Diff
7
Assets/TreeViewPanel.prefab.meta
Normal file
7
Assets/TreeViewPanel.prefab.meta
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 72ccceef08e4bb94e88119b50dc32090
|
||||||
|
PrefabImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user