/*--------------------------------------------------------------------------------------------*/ private void FadeRow(HoverLayoutArcRow pRow, float pAlpha) { if ( pRow == null || !pRow.gameObject.activeSelf ) { return; } pRow.GetComponentsInChildren(true, vItemDataResults); for ( int i = 0 ; i < vItemDataResults.Count ; i++ ) { FadeItem(vItemDataResults[i], pAlpha); } }
/////////////////////////////////////////////////////////////////////////////////////////////// /*--------------------------------------------------------------------------------------------*/ private void FadeRow(HoverLayoutArcRow pRow, float pAlpha) { pRow.GetComponentsInChildren(true, vItemDataResults); for ( int i = 0 ; i < vItemDataResults.Count ; i++ ) { HoverItemData itemData = vItemDataResults[i]; HoverAlphaRenderer rend = itemData.gameObject .GetComponentInChildren<HoverAlphaRenderer>(); itemData.IsEnabled = (pAlpha >= 1); rend.Controllers.Set(HoverAlphaRenderer.DisabledAlphaName, this); rend.DisabledAlpha = Mathf.Lerp(0, rend.EnabledAlpha, pAlpha); } }
//////////////////////////////////////////////////////////////////////////////////////////////// /*--------------------------------------------------------------------------------------------*/ private void UpdateRow(HoverLayoutArcRow pRow, bool pPreventHighlight) { if ( pRow == null || !pRow.gameObject.activeSelf ) { return; } pRow.GetComponentsInChildren(true, vItemHighStateResults); for ( int i = 0 ; i < vItemHighStateResults.Count ; i++ ) { UpdateHighState(vItemHighStateResults[i], pPreventHighlight); } }