I'm sorry you had that experience, and I'm glad to hear you're looking on the positive side. You've done really well, and your body will be really thanking you for all the effort you've put in.
I think I know where you're coming from - there are all these logical reasons you KNOW you should be pleased about, when it comes to your weight loss, but in your heart, you can't hide from the fact you were hoping for a bunch of other stuff. Even though you know that there's loads of good reasons you should be pleased with your success, this stuff is still really important to you?
I can't fault that. Keep working on yourself. Go out, get your nails and hair done, get yourself a new outfit and get your grooming on point. And don't feel down that one guy you liked was after your friend. It's not a measure of your worth, or how attractive you are. It's just one guy that thought your friend looked hot, and that you might be a good road in.
You did great. Don't let it knock your confidence.