Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add focusable variants of widgets #28

Merged
merged 1 commit into from
Jul 23, 2023

Conversation

fourlastor
Copy link
Contributor

@fourlastor fourlastor commented Jul 18, 2023

This PR adds a set of actors to the scene2d extensions that mimic scene2d's default widgets, but automatically declare themselves to be focusable on setStage

@MrStahlfelge
Copy link
Owner

Can you add a paragraph to https://github.com/MrStahlfelge/gdx-controllerutils/wiki/Button-operable-Scene2d ?
(You don't have access, but please add a comment here and I will copy it to the wiki entry when merged)

@fourlastor
Copy link
Contributor Author

Sure thing! I'd place this after the ControllerList description.

Focusable actors

Most of the scene2d widgets have been extended to automatically call ControllerMenuStage#addFocusableActor. They follow the original naming, prepended by Focusable (FocusableButton, FocusableImage, and so forth).

@MrStahlfelge MrStahlfelge merged commit 8f96ef9 into MrStahlfelge:master Jul 23, 2023
@fourlastor fourlastor deleted the focusable-actors branch August 6, 2023 12:01
@fourlastor
Copy link
Contributor Author

Would it be possible to release a new version with these?

@MrStahlfelge
Copy link
Owner

Sorry for not replying so long. I wanted to release a new version, but at the moment the project is not compatible with Java 11. Gradle needs to get upgraded and this needs other changes to the build files as well. As I am really busy right now and did not follow the general changes on libgdx builds at the moment, I would really appreciate a PR updating the build environment so that I can do a release quickly. Thanks :)

@fourlastor
Copy link
Contributor Author

Ask and you shall receive 😁 #29

@MrStahlfelge
Copy link
Owner

Great, thanks. 2.4.0-SNAPSHOT is available now, release builds do not work (yet), more in the PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants