Skip to content

Commit

Permalink
feat: MilListView.Interactable
Browse files Browse the repository at this point in the history
  • Loading branch information
buger404 committed Aug 12, 2024
1 parent 1719732 commit aaddf88
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Scripts/Milease/Core/UI/MilListView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ public enum AlignMode
[HideInInspector]
public readonly List<object> Items = new();

public bool Interactable = true;

public GameObject ItemPrefab;
public bool Vertical = true;
public float Spacing;
Expand Down Expand Up @@ -221,6 +223,11 @@ internal void Select(int index, bool dontCall, PointerEventData args)
{
Awake();
}

if (!Interactable)
{
return;
}
if (SelectedIndex != -1)
{
if (bindDisplay[SelectedIndex])
Expand Down Expand Up @@ -616,4 +623,4 @@ public void OnScroll(PointerEventData eventData)
CheckPosition();
}
}
}
}

0 comments on commit aaddf88

Please sign in to comment.