MouseDown() 공개 메소드

public MouseDown ( int x, int y ) : bool
x int
y int
리턴 bool
예제 #1
0
 public void MouseDown(int x, int y, int whichButton)
 {
     if (whichButton == 1)
     {
         if (_taskBar.MouseDown(x, y, whichButton))
         {
             return;
         }
         if (_windowShowing != null)
         {
             _windowShowing.MouseDown(x, y);
             return;
         }
         if (_gameMain.EmpireManager.CurrentEmpire.SelectedSystem != null)
         {
             if (_systemView.MouseDown(x, y))
             {
                 return;
             }
         }
         else if (_gameMain.EmpireManager.CurrentEmpire.SelectedFleetGroup != null)
         {
             if (_fleetView.MouseDown(x, y))
             {
                 return;
             }
         }
     }
 }