Skip to content

Commit

Permalink
Fix invoking the onFinish callback for UiViews; minor refactor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
arimger committed Oct 10, 2023
1 parent bb774c9 commit 86959cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 0 additions & 3 deletions Assets/Package/Runtime/Tooltip/TooltipTarget.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ public abstract class TooltipTarget<T> : MonoBehaviour, IPointerEnterHandler, IP
{
[SerializeField, FormerlySerializedAs("settings")]
private TooltipData data;
[SerializeField, Min(0)]
[Tooltip("Time needed to show tooltip content.")]
private float offsetTime = 0.0f;
[SerializeField]
[Tooltip("Optional, custom tooltip prefab. If null, the default one will be used.")]
private T customPrefab;
Expand Down
4 changes: 2 additions & 2 deletions Assets/Package/Runtime/Views/UiView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ protected virtual void OnDeinitialize()

public override void Show(bool immediately, Action onFinish = null)
{
base.Show(immediately);
base.Show(immediately, onFinish);
foreach (SubViewDefinition viewDefinition in subViews)
{
if (!viewDefinition.performShowHide)
Expand All @@ -86,7 +86,7 @@ public override void Show(bool immediately, Action onFinish = null)

public override void Hide(bool immediately, Action onFinish = null)
{
base.Hide(immediately);
base.Hide(immediately, onFinish);
foreach (SubViewDefinition viewDefinition in subViews)
{
if (!viewDefinition.performShowHide)
Expand Down

0 comments on commit 86959cd

Please sign in to comment.