Reputation: 410
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
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