Exemplo n.º 1
0
 public override void OnClick(Vector2 mousePos)
 {
     if (showGrid.Contains(mousePos))
     {
         showGrid.OnClick();
     }
     else if (clampMouse.Contains(mousePos))
     {
         clampMouse.OnClick();
     }
     else if (guidesButton.Contains(mousePos))
     {
         guidesButton.OnClick();
     }
     else if (clampVertex.Contains(mousePos))
     {
         clampVertex.OnClick();
     }
     else if (mapSett.Contains(mousePos))
     {
         editor.SetTool(null);
         editor.SetMenu(new MapOptionsMenu(editor));
     }
     else if (mapPos.Contains(mousePos))
     {
         editor.SetTool(null);
         editor.SetMenu(new PositionsMenu(editor));
     }
     else if (mapName.Contains(mousePos))
     {
         editor.SetTool(null);
         editor.SetMenu(new MapNameMenu(editor));
     }
 }