-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
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
ItemList - set_item_disabled() doesnt have any visible effect #5683
Comments
It seems to work fine for me to toggle the
Now the question is more, what should the |
Looking at the source code, it doesn't do anything. It's just something that you can set with I don't know what was the intended use of this parameter though. @reduz, you added it one year ago when refactoring the file dialog: https://github.com/godotengine/godot/blame/2fd9b77/scene/gui/item_list.cpp#L1278-L1279 |
According to godot's online documentation it should make the item That is also what i wanted it to do. On 14 Jul 2016 06:45, "Rémi Verschelde" [email protected] wrote:
|
What part of the documentation? It's not said in the class reference, where it is undocumented. |
|
@akien-mga I made a mistake. I was looking at the popup menu's documentation here: it has the same set_item_disabled method. It does the following:
Basically that is what I want - I want the item to not be invoked when clicked and also disabled visually. void set_item_selectable ( int idx, bool selectable ) |
I understand now - I just need to add an extra if case to make it work. But how do I grey out the item? |
sorry if that is the intended design - I will close this issue. |
That's not the intended design, see my above comment: #5683 (comment) |
ah I see. Thank you for looking into this and also providing a temporary workaround. If they store a disabled state - then I can check the state with an ifcase before triggering the events that are in the signal. |
@reduz thank you! :) |
Bugsquad edit: Seen in 2.1-beta (but actually there too in 2.0)
It doesnt seem to do what it is supposed to.
Try it
or am i messing something up here? :)
The text was updated successfully, but these errors were encountered: