Exemplo n.º 1
0
 public Container(Size size, MainPlace main)
 {
     ContainerKind      = GuiCard.Where.Place;
     this.MainPlace     = main;
     base.Size          = size;
     this.state         = StateToDraw.None;
     this.Style         = new ContainerStyle();
     this.CardImage     = Image.Load(".\\pic\\pic_called.jpg");
     this.ContainerRect = new ContainerRect(size);
     Dragable           = false;
     EasyInputAction    = new EasyInputAction(this);
     EasyInputAction.AddEvent_MouseDownDragInside(Event_DragInside);
     EasyInputAction.AddEvent_OnlyInsideMouseLeftUp(Event_OnlyInsideUp);
 }
        public HandCardPlaceContainer(Size size, Point2f point)
        {
            base.Size  = size;
            this.point = point;
            EasyTranform.Offset(Transform, point);
            SetTrans = Transform.Matrix;
            var vtemp = Transform.Matrix;

            vtemp.Translation += new System.Numerics.Vector3(0, -GoUpHeight, 0);
            SelectTrans        = vtemp;
            EasyInputAction    = new EasyInputAction(this);
            //EasyInputAction.AddEvent_OnlyInsideMouseLeftUp(Event_OnlyInsideMouseLeftUp);
            EasyInputAction.AddEvent_MouseDownDragInside(Event_MouseDownDragIn);
            EasyInputAction.AddEvent_MouseDownDragOutside(Event_MouseDownDragOutside);
            EasyInputAction.AddEvent_MouseDownDragOutside_MouseUp(Event_MouseDownDragOutside_MouseUp);
            this.Dragable = false;
        }