diff --git a/Scripts/Controls/TextPic.cs b/Scripts/Controls/TextPic.cs index 0164176..8763f68 100644 --- a/Scripts/Controls/TextPic.cs +++ b/Scripts/Controls/TextPic.cs @@ -25,6 +25,9 @@ namespace UnityEngine.UI.Extensions private bool clearImages = false; private Object thisLock = new Object(); + + + /// /// Vertex Index /// @@ -38,6 +41,16 @@ namespace UnityEngine.UI.Extensions private string fixedString; + [SerializeField] + [Tooltip("Allow click events to be received by parents, (default) blocks")] + private bool m_ClickParents; + + public bool AllowClickParents + { + get { return m_ClickParents; } + set { m_ClickParents = value; } + } + public override void SetVerticesDirty() { base.SetVerticesDirty(); @@ -77,6 +90,7 @@ namespace UnityEngine.UI.Extensions public Vector2 imageOffset = Vector2.zero; private Button button; + private Selectable highlightselectable; //Commented out as private and not used.. Yet? //private bool selected = false; @@ -95,7 +109,23 @@ namespace UnityEngine.UI.Extensions */ new void Start() { - button = GetComponent