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 "disabled" Property to TouchScreenButtons #5006

Closed
ACB-prgm opened this issue Jul 28, 2022 · 2 comments
Closed

Add "disabled" Property to TouchScreenButtons #5006

ACB-prgm opened this issue Jul 28, 2022 · 2 comments

Comments

@ACB-prgm
Copy link

Describe the project you are working on

any smart phone project using touch buttons

Describe the problem or limitation you are having in your project

I would like to disable a button as I would with the typical control nodes without having to create my own method that changes the TouchScreenButton's textures and mutes its signals.

Describe the feature / enhancement and how it helps to overcome the problem or limitation

adding a disabled property would make TouchScreenButtons more user friendly and put them on par with the Control Buttons

Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams

NA

If this enhancement will not be used often, can it be worked around with a few lines of script?

I believe it would be used as often as the disabled property of regular buttons would. It can be circumvented with a few lines of script, however.

Is there a reason why this should be core and not an add-on in the asset library?

The TouchScreenButtons should be on par with the rest of Godot's buttons.

@Calinou
Copy link
Member

Calinou commented Jul 28, 2022

Related to #3976.

I think replacing TouchScreenButton with ordinary buttons makes more sense at this point.

@ACB-prgm
Copy link
Author

Yeah agreed. I did not know that was in the works.

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

No branches or pull requests

2 participants