Esempio n. 1
0
 private static bool LeftClick_Paused()
 {
     if (MainMethod.popupBox != null)
     {
         for (int i = 0; i < MainMethod.popupBox.ButtonList.Count; i++)
         {
             if (Rect.Intersects(MainMethod.popupBox.ButtonList[i].Rect))
             {
                 MenuNavigation.CheckPopupBox(i);
             }
         }
         return(true);
     }
     MenuNavigation.NextScreen();
     return(false);
 }
Esempio n. 2
0
        public static void Left()
        {
            if (MainMethod.popupBox != null)
            {
                if (InputManager.Mousestate[1].LeftButton == ButtonState.Released)
                {
                    LeftClick_Paused();
                }
            }
            else if (ScreenManager.Paused)
            {
                if (InputManager.Mousestate[1].LeftButton == ButtonState.Released)
                {
                    MenuNavigation.NextScreen();
                }
            }
            else
            {
                if ((ScreenManager.Editing && !ScreenManager.Levelselect) && !ScreenManager.Paused)
                {
                    bool CheckedInput = false;
                    if (Editor.MovingEntity)
                    {
                        if (Editor.LabelList != null)
                        {
                            if (InputManager.Mousestate[1].LeftButton == ButtonState.Released)
                            {
                                MenuNavigation.NextScreen();
                                CheckedInput = true;
                            }
                        }
                    }

                    if (Editor.Mouse_Static)
                    {
                        LeftClick_Static();
                    }
                    if (Editor.Mouse_Entity && (InputManager.Mousestate[1].LeftButton == ButtonState.Released))
                    {
                        LeftClick_Entity(Editor.CurrentEntity);
                    }
                    if (Editor.Mouse_Move)
                    {
                        LeftClick_Move();
                    }
                    if (Editor.Mouse_Items)
                    {
                        LeftClick_Items();
                        if (Editor.CurrentBlock != null)
                        {
                            LeftClick_Static();
                        }
                    }
                    if (!Editor.MovingEntity && !CheckedInput)
                    {
                        if (Editor.LabelList != null)
                        {
                            if (InputManager.Mousestate[1].LeftButton == ButtonState.Released)
                            {
                                MenuNavigation.NextScreen();
                            }
                        }
                    }
                }
                if (ScreenManager.Mainmenu)
                {
                    MenuNavigation.NextScreen();
                }
            }
        }