This commit is contained in:
2020-07-18 21:12:14 +08:00
parent 1361db18a9
commit 33dc6cea60
214 changed files with 16596 additions and 3104 deletions

View File

@@ -498,6 +498,7 @@ public class UIInput : MonoBehaviour
protected virtual void OnSelect (bool isSelected)
{
if (!enabled) return; // add by chenbin
if (isSelected)
{
#if !MOBILE

View File

@@ -1,12 +1,21 @@
using UnityEngine;
using System.Collections;
using Coolape;
using System.Collections.Generic;
[RequireComponent (typeof(UIPopupList))]
public class CLUIElementPopList : UIEventListener
{
UIPopupList _poplist;
public List<EventDelegate> onSelect = new List<EventDelegate>();
protected void ExecuteOnChange()
{
if (EventDelegate.IsValid(onSelect))
{
EventDelegate.Execute(onSelect, gameObject); // modify by chenbin
}
}
public UIPopupList poplist {
get {
if (_poplist == null) {
@@ -31,5 +40,6 @@ public class CLUIElementPopList : UIEventListener
{
string val = orgs [1].ToString ();
poplist.value = val;
ExecuteOnChange();
}
}