Beispiel #1
0
 public override void CustomUpdate()
 {
     if (component.GetTransformComponent().GetRectangle().Contains(SEMouseManager.GetCursorPosition()))
     {
         if (SEMouseManager.CheckMouseLeftClick())
         {
             Play();
         }
         component.GetSpriteComponent().SetColor(Color.LightGray);
     }
     else
     {
         component.GetSpriteComponent().SetColor(Color.White);
     }
 }
Beispiel #2
0
 public override void CustomUpdate()
 {
     for (int i = 0; i < childs.Count; ++i)
     {
         if (SEKeyboardManager.IsKeyPressed(Keys.LeftControl) && childs[i].GetComponent().GetTransformComponent().GetRectangle().Contains(SEMouseManager.GetCursorPosition()))
         {
             childs[i].SetShowBorder(true);
         }
         else
         {
             childs[i].SetShowBorder(false);
         }
     }
 }