VCS PreAuton Button Creation

Hi just wondering, for my pre-auton, I’m trying to make buttons to allow auton selection. My question is, how do you make these buttons (like do you just draw a rectangle) and how do you run code based off of which button is pressed (differentiate between multiple buttons on the screen, do you check x and y value for the press?)? Also just wondering, VCS says that the brain’s screen has an x and y plane, what are the two extremes (min and max x value and min and max y value)? Sorry for such a complex question!

have a look at this thread.

there are several other similar ones on the forum.

Here’s another that was based on my original code.