/*--------------------------------------------------------------------------------------------*/ public override void OnInspectorGUI() { vTarget = (HoverItemSelectionState)target; DrawDefaultInspector(); DrawSelectionInfo(); }
/*--------------------------------------------------------------------------------------------*/ protected virtual void UpdateSliderSettings(HoverItemSelectionState pSelState) { float selProg = pSelState.SelectionProgress; SliderRenderer.SelectionProgress = selProg; SliderRenderer.SelectionProgress = selProg; }
//////////////////////////////////////////////////////////////////////////////////////////////// /*--------------------------------------------------------------------------------------------*/ protected virtual void UpdateButtonSettings(HoverItemSelectionState pSelState) { ButtonRenderer.SelectionProgress = pSelState.SelectionProgress; }
/*--------------------------------------------------------------------------------------------*/ private void UpdateRendererIndicator(HoverRenderer pRenderer, HoverItemHighlightState pHighState, HoverItemSelectionState pSelState) { HoverIndicator rendInd = pRenderer.GetIndicator(); rendInd.Controllers.Set(HoverIndicator.HighlightProgressName, this); rendInd.Controllers.Set(HoverIndicator.SelectionProgressName, this); rendInd.HighlightProgress = pHighState.MaxHighlightProgress; rendInd.SelectionProgress = pSelState.SelectionProgress; }