So I'm having a bit of a problem trying to make the main menu for my game. For some reason, the buttons won't react at all to the mouse. They react and work perfectly in the pause menu, but the exact same code doesn't work in the main menu.
The way I have the main menu set up is a single panel with a background image that takes up the entire screen. The buttons are positioned within this large panel. I use the same method for the pause menu, which works (the background doesn't take up the whole screen in the pause panel though). Also, it made no difference when I tried to move the buttons to a separate panel. There are currently no other panels displayed when the main menu is displayed, and its layer is the highest of any panel in the game.
I once tried using the in-game debug command line to display the main menu during the middle of the game. Oddly, it worked perfectly.
Does anyone have any ideas? I'm at a complete loss here.