public void updateColour(float transitionTime) { if (this.activeSprite != null) { if (StateManager.getInstance().CurrentTransitionState == StateManager.TransitionState.TransitionIn) { this.activeSprite.LightColour = TransitionUtils.fadeIn(Color.White, Display.TRANSITION_TIME, transitionTime); } else if (StateManager.getInstance().CurrentTransitionState == StateManager.TransitionState.TransitionOut) { this.activeSprite.LightColour = TransitionUtils.fadeOut(Color.White, Display.TRANSITION_TIME, transitionTime); } } }
public void updateColour(float transitionTime) { if (StateManager.getInstance().CurrentTransitionState == StateManager.TransitionState.TransitionIn) { this.Text.LightColour = TransitionUtils.fadeIn(ResourceManager.getInstance().TextColour, Display.TRANSITION_TIME, transitionTime); this.myTurnSprite.LightColour = TransitionUtils.fadeIn(Color.White, Display.TRANSITION_TIME, transitionTime); this.notMyTurnSprite.LightColour = TransitionUtils.fadeIn(Color.White, Display.TRANSITION_TIME, transitionTime); } else if (StateManager.getInstance().CurrentTransitionState == StateManager.TransitionState.TransitionOut) { this.Text.LightColour = TransitionUtils.fadeOut(ResourceManager.getInstance().TextColour, Display.TRANSITION_TIME, transitionTime); this.myTurnSprite.LightColour = TransitionUtils.fadeOut(Color.White, Display.TRANSITION_TIME, transitionTime); this.notMyTurnSprite.LightColour = TransitionUtils.fadeOut(Color.White, Display.TRANSITION_TIME, transitionTime); } }
protected Color fadeIn(Color colour) { return(TransitionUtils.fadeIn(colour, Display.TRANSITION_TIME, this.currentTransitionTime)); }