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

[Suggestion] Add some mechanism for appending custom ui game objects when the generic button is clicked #34

Open
Yinigma opened this issue Mar 8, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@Yinigma
Copy link

Yinigma commented Mar 8, 2024

One of the stated use cases for the generic button is "use it to open custom menus for your mod," but it provides no access to the game's gui. I don't see another way of injecting a menu into the scene on the button press besides rewriting the hooks already present in this mod, which seems like unnecessary and error-prone duplicated work for anyone with this use case. I'd recommend modifying the current generic button delegate or adding a new menu button class that takes a different type of delegate, and in either case having the delegate return a rect transform or a game object that lethalconfig will then add to the canvas along with some canned means of removing or hiding it once the configuration is finished.

@AinaVT AinaVT added the enhancement New feature or request label Mar 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants