예제 #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);
 }
예제 #2
0
 protected override void Input(InputAction action)
 {
     if (action is ButtonInputAction)
     {
         buttA = (ButtonInputAction)action;
         if (buttA.Status)
         {
             state = StateToDraw.ButtonDown;
         }
         else
         {
             state = StateToDraw.ButtonHover;
         }
     }
 }