//////////////////////////////////////////////////////////////////////////////////////////////// /*--------------------------------------------------------------------------------------------*/ public void NavigateBack(HoverpanelRowSwitchingInfo.RowEntryType pRowEntry = HoverpanelRowSwitchingInfo.RowEntryType.SlideFromTop) { if (vRowHistory.Count == 0) { Debug.LogWarning("Can't navigate back. No rows left in history."); return; } PreviousRow = ActiveRow; ActiveRow = vRowHistory.Pop(); OnRowSwitchedEvent.Invoke(pRowEntry); }
/*--------------------------------------------------------------------------------------------*/ public void NavigateToRow(HoverLayoutRectRow pRow, HoverpanelRowSwitchingInfo.RowEntryType pRowEntry) { if (pRow == null) { Debug.LogError("Could not navigate to null/missing row."); return; } vRowHistory.Push(ActiveRow); PreviousRow = ActiveRow; ActiveRow = pRow; OnRowSwitchedEvent.Invoke(pRowEntry); }
//////////////////////////////////////////////////////////////////////////////////////////////// /*--------------------------------------------------------------------------------------------*/ public void OnRowSwitched(HoverpanelRowSwitchingInfo.RowEntryType pEntryType) { IsTransitionActive = true; RowEntryTransition = pEntryType; if ( pEntryType == HoverpanelRowSwitchingInfo.RowEntryType.Immediate ) { TransitionProgress = 1; vTimer = null; } else { TransitionProgress = 0; vTimer = Stopwatch.StartNew(); } TreeUpdate(); }
//////////////////////////////////////////////////////////////////////////////////////////////// /*--------------------------------------------------------------------------------------------*/ public void OnRowSwitched(HoverpanelRowSwitchingInfo.RowEntryType pEntryType) { IsTransitionActive = true; RowEntryTransition = pEntryType; if (pEntryType == HoverpanelRowSwitchingInfo.RowEntryType.Immediate) { TransitionProgress = 1; vTimer = null; } else { TransitionProgress = 0; vTimer = Stopwatch.StartNew(); } TreeUpdate(); }