lundi 26 juin 2017

java - how to implement libGDX checkbox

I never used the checkbox of libGDX before, and I don't know how to start implementing it in a proper way to Android.
I want to change some things when the checkbox is set to true and change other things when it is set to false. Do I need to make if (checkbox.isChecked()) {...} else{...} at render()? or I need to add a ChangeListener to my checkBox? or a InputListener? or none of these? or all of these? (just kidding in the last question)




Aucun commentaire:

Enregistrer un commentaire