Exemplo n.º 1
0
        private void SetComponentImage(object sender, FlorineSkiaTapWrap.TapEventArgs e)
        {
            FlorineSkiaTapWrap fstw = sender as FlorineSkiaTapWrap;

            if (null != fstw && null != PlayerView && null != ActualPlayer)
            {
                SetChosenItem(fstw.Tie);
            }
        }
Exemplo n.º 2
0
 private void OptionTapHandler(object sender, FlorineSkiaTapWrap.TapEventArgs e)
 {
     if (Toggle())
     {
         // Toggle occured - any follow up?
         //
         if (null != e.Canvas)
         {
             // Redraw to pic up changes
             e.Canvas.InvalidateSurface();
         }
     }
     RaiseEventTrigger(new EventArgs());
 }
Exemplo n.º 3
0
        private void NextClothes(object sender, FlorineSkiaTapWrap.TapEventArgs e)
        {
            FlorineSkiaTapWrap fstw = sender as FlorineSkiaTapWrap;

            if (null != fstw)
            {
                string       type = _rmT[fstw.Tie];
                SKCanvasView x    = Opy[type][0];
                Opy[type].RemoveAt(0);
                Opy[type].Add(x);
                gridList[type].Children.Remove(x);
                gridList[type].Children.Add(Opy[type][0], 1, 4, 0, 1);
                SetChosenItem(Opy[type][0]);
            }
        }
Exemplo n.º 4
0
        private void SetColor(object sender, FlorineSkiaTapWrap.TapEventArgs e)
        {
            FlorineSkiaTapWrap fstw = sender as FlorineSkiaTapWrap;

            if (null != fstw && null != PlayerView && null != ActualPlayer)
            {
                SKCanvasView scv = fstw.Tie;
                SKColor      ai;
                if (ColSel.TryGetValue(scv, out ai))
                {
                    float   fR       = ((float)ai.Red) / 255f;
                    float   fG       = ((float)ai.Green) / 255f;
                    float   fB       = ((float)ai.Blue) / 255f;
                    SKPaint newPaint = new SKPaint()
                    {
                        /*
                         * ColorFilter =
                         * SKColorFilter.CreateColorMatrix(new float[]
                         * {
                         *  0.21f, 0.72f, 0.07f, 0, 0,
                         *  0.21f, 0.72f, 0.07f, 0, 0,
                         *  0.21f, 0.72f, 0.07f, 0, 0,
                         *  0,     0,     0,     1, 0
                         * }),
                         */
                        ColorFilter =
                            SKColorFilter.CreateColorMatrix(new float[]
                        {
                            fR *0.21f, fR *0.72f, fR *0.07f, 0, 0,
                            fG *0.21f, fG *0.72f, fG *0.07f, 0, 0,
                            fB *0.21f, fB *0.72f, fB *0.07f, 0, 0,
                            0, 0, 0, 1, 0
                        })
                    };

                    _colCheck[_rmT[scv]] = ai;
                    UpdateRefColor(_rmT[scv], newPaint);
                    foreach (SKCanvasView bvSCV in BodyViews)
                    {
                        bvSCV.InvalidateSurface();
                    }
                    if (Opy.ContainsKey(_rmT[scv]) && Opy[_rmT[scv]].Count > 0)
                    {
                        Opy[_rmT[scv]][0].InvalidateSurface();
                    }
                }
            }
        }
Exemplo n.º 5
0
 private void RoundSelect(object sender, FlorineSkiaTapWrap.TapEventArgs e)
 {
     InvalidateBodies("Round");
 }
Exemplo n.º 6
0
 private void PearSelect(object sender, FlorineSkiaTapWrap.TapEventArgs e)
 {
     InvalidateBodies("Pear");
 }
Exemplo n.º 7
0
 private void DescriptionTapHandler(object sender, FlorineSkiaTapWrap.TapEventArgs e)
 {
     _MainCanvas.IsVisible = false;
 }