Exemplo n.º 1
0
        private BitmapImage ComplexDeflectionOutImageSource(Position position)
        {
            BitmapImage bitmapImage = null;

            switch (Direction(position))
            {
            case LightBoxDirection.LightBoxLeft:
                bitmapImage = BlackboxImageUtils.Image(BlackboxImageType.LightBoxComplexDeflectionLeft);
                break;

            case LightBoxDirection.LightBoxRight:
                bitmapImage = BlackboxImageUtils.Image(BlackboxImageType.LightBoxComplexDeflectionRight);
                break;

            case LightBoxDirection.LightBoxTop:
                bitmapImage = BlackboxImageUtils.Image(BlackboxImageType.LightBoxComplexDeflectionBottom);
                break;

            case LightBoxDirection.LightBoxBottom:
                bitmapImage = BlackboxImageUtils.Image(BlackboxImageType.LightBoxComplexDeflectionTop);
                break;

            default:
                break;
            }

            return(bitmapImage);
        }
Exemplo n.º 2
0
 public void SetGuessedState(bool guessed)
 {
     this.guessed = guessed;
     if (guessed)
     {
         imageArray = BlackboxImageUtils.Image(MirrorImageType.MirrorGuessed);
         brush      = guessedBrush;
     }
     else
     {
         imageArray = BlackboxImageUtils.Image(MirrorImageType.MirrorGuessFailed);
         brush      = guessFailedBrush;
     }
 }
Exemplo n.º 3
0
        private BitmapImage GetLightBoxImage(BoxData newState)
        {
            BitmapImage bitmapImage = null;

            switch (newState._state)
            {
            case LightBox.ConcealState:
                bitmapImage =
                    BlackboxImageUtils.Image(BlackboxImageType.LightBoxConceal);
                break;

            case LightBox.DeflectionState:
                bitmapImage = DeflectionImageSource(newState._position);
                break;

            case LightBox.ComplexDeflectionState:
                bitmapImage = ComplexDeflectionImageSource(newState._position);
                break;

            case LightBox.DeflectionOutState:
                bitmapImage = DeflectionOutImageSource(newState._position);
                break;

            case LightBox.ComplexDeflectionOutState:
                bitmapImage = ComplexDeflectionOutImageSource(newState._position);
                break;

            case LightBox.ReflectionState:
                bitmapImage = BlackboxImageUtils.Image(BlackboxImageType.LightBoxReflection);
                break;

            case LightBox.ComplexReflectionState:
                bitmapImage = ComplexReflectionImageSource(newState._position);
                break;

            default:
                break;
            }

            return(bitmapImage);
        }
Exemplo n.º 4
0
        private void SetMessageIcon(FlyMessageType type)
        {
            switch (type)
            {
            case FlyMessageType.Celebrate:
                image.Source =
                    BlackboxImageUtils.Image(BlackboxImageType.MessageCelebrate);
                break;

            case FlyMessageType.Criticism:
                image.Source =
                    BlackboxImageUtils.Image(BlackboxImageType.MessageCriticism);
                break;

            case FlyMessageType.Prompt:
                image.Source =
                    BlackboxImageUtils.Image(BlackboxImageType.MessagePrompt);
                break;

            default:
                break;
            }
        }