SalataLuc
SalataLuc

Reputation: 410

How do I create a button and how do I assign an event to it?

I'm starting with XNA and I want to know how do I create a button with an event?

Does it looks like C# WinForms?

Upvotes: 0

Views: 80

Answers (1)

Dave Bish
Dave Bish

Reputation: 19636

In XNA, you wont have access to standard "windows" type controls. you'll have to manually create an object, with dimensions - and test for mouse-clicks inside the area - and behave accordingly.

Here's a good tutorial: http://www.alecjacobson.com/weblog/?p=539

Upvotes: 2

Related Questions