-
-
Notifications
You must be signed in to change notification settings - Fork 22k
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
Remove incorrect statement about TextureButton normal texture #95660
Remove incorrect statement about TextureButton normal texture #95660
Conversation
This depends I'd say what is meant, I think it should instead explain what happens without this texture and suggest using it unless you know what you're doing |
That makes sense; how does something like this sound?
I suppose I should test adding textures for |
I would suggest you update the PR to add the note you wrote (or similar) at the bottom the leading description. The vague statement being removed sucks, anyway. It leaves you with your own thoughts assuming the worst. |
54bb17d
to
a7f82de
Compare
Thanks for the reminder! I've updated the PR with a version of what I'd written above. I wasn't entirely sure how to succinctly phrase the idea that the other states fall back to the "normal" state; hopefully the current wording is okay, but if anyone has suggestions for improving it, please feel free to add them in a review! |
Honestly I feel like that's something that each state texture property's description could be more explicit about, instead of summarising it in the leading description. |
d1766e9
to
06230dd
Compare
I pushed a few changes to elaborate more on how the texture-swapping works, both in the note at the beginning and the descriptions for the texture properties. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would have heavily suggested doing this separately because this now requires a new round of fact-checking.
I created a small test project to verify these behaviors before I added the notes to the documentation - a little later today I can post a set of short videos demonstrating them in action Edit: I've added videos and descriptions of the TextureButton behaviors as textures are assigned and unassigned. Notably, it did lead me to realize that we falsely stated |
Is this ready as-is, or do these adjustments still need to be integrated? |
Looks like I need to commit those suggestions and squash, and then it should be ready to go. I'll try to get that done within the next hour or two :) |
…mal state in docs Update doc/classes/TextureButton.xml Co-authored-by: Micky <66727710+Mickeon@users.noreply.github.com> Improve explanation of texture fallback behaviors for TextureButton Remove a bit of incorrect information from TextureButton documentation Most other state textures are not overlaid (only `texture_focused`) Apply suggestions from code review
5611ed1
to
46c9089
Compare
Updates are pushed and history is squashed! |
Thanks! |
The documentation currently states that TextureButtons must have a texture for their "normal" state in
texture_normal
, but I found this didn't seem to be the case in practice, as noted here: godotengine/godot-docs#9763This PR simply removes that line about needing the texture from the TextureButton documentation page.
Bugsquad edit: fixes godotengine/godot-docs#9763