I know that libgdx has this Button class that seems so easy to use, but I wonder why the draw method is set protected?
In that case, how should I draw the button?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Buttonis also anActor. So you would put it on theStageand the framework would draw it. Here is some more documentation on how this fits together.