I’m using GUI DrawTexture and DrawButton to create menus that pop up on top of each other. Right now I have a DrawTexture with a TextField label for a lower menu level followed by a DrawButton over top, but a little offset, from the layer below. When I click the button, the text in the TextField underneath is selected, instead of clicking the button.
If I don’t draw the text, the button works fine. If I draw the button before the text, the button works fine, but the text is drawn over the button.
How do I make the button drawn on top and make it the first item to handle a mouse click at that position?