// Adding event handler kills off the scroll wheel for the list so only click comes here. // So reluctantly we don't do hover, and emulate it instead. public void ButtonHandler(string input = "click") { Util.Trace(2, "Handled {0} for {1}", input, NameText.text); //_parent.ItemButtonHandler(NameText.text, input, NameText.text); if (NameText.text != _clicked) { _clicked = NameText.text; _parent.ItemButtonHandler(NameText.text, "enter", "Click again to play " + NameText.text); } else { _parent.ItemButtonHandler(NameText.text, input, NameText.text); } }
// TODO: why is this not called? Events? public void OnSelect(BaseEventData eventData) { _parent.ItemButtonHandler(NameText.text, "select", NameText.text); }