Beispiel #1
0
 bool Mouse_MousePressed(MOIS.MouseEvent arg, MOIS.MouseButtonID id)
 {
     if (GameManager.Instance.trayMgr.injectMouseDown(arg, id))
     {
         return(true);
     }
     return(true);
 }
Beispiel #2
0
 private bool MousePressed(MOIS.MouseEvent arg, MOIS.MouseButtonID id)
 {
     if (id == MOIS.MouseButtonID.MB_Right)
     {
         changeAppState(findByName("MainMenu"), modData);
     }
     return(true);
 }
Beispiel #3
0
 private bool MousePressed(MOIS.MouseEvent arg, MOIS.MouseButtonID id)
 {
     if (id == MOIS.MouseButtonID.MB_Right)
     {
         ScreenManager.Instance.ExitCurrentScreen();
         changeAppState(findByName("MainMenu"), modData);
     }
     return(true);
 }
Beispiel #4
0
        public UIEvent InjectMouseUp(MOIS.MouseEvent evt, MOIS.MouseButtonID id)
        {
            if (!cursorLayer.IsVisible || id != MOIS.MouseButtonID.MB_Left)
            {
                return(null);
            }

            Mogre.Vector2 cursorPos = new Mogre.Vector2(cursor.Left, cursor.Top);

            return(CurrentLayer.InjectMouseUp(evt, id, cursorPos));
        }
 public bool MousePressed(MOIS.MouseEvent e, MOIS.MouseButtonID button)
 {
     if (button == MouseButtonID.MB_Right)
     {
         if (mCameraCS != null)
         {
             i++;
             mCameraCS.CurrentCameraMode =
                 mCameraCS.GetNextCameraMode(cameraModeNames[i % cameraModeNames.Count]);
         }
     }
     return(true);
 }
 public bool MouseReleased(MOIS.MouseEvent e, MOIS.MouseButtonID button)
 {
     return(true);
 }
Beispiel #7
0
 bool mMouse_MousePressed(MOIS.MouseEvent arg, MOIS.MouseButtonID id)
 {
     return(true);
 }
Beispiel #8
0
 bool Mouse_MousePressed(MOIS.MouseEvent arg, MOIS.MouseButtonID id)
 {
     ScreenManager.Instance.InjectMousePressed(arg, id);
     return(true);
 }
Beispiel #9
0
 bool Mouse_MouseReleased(MOIS.MouseEvent arg, MOIS.MouseButtonID id)
 {
     return(true);
 }