-
-
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
Remove ItemList editor and replace it by a property array #54342
Conversation
0b85234
to
a51f922
Compare
Thanks! |
@@ -387,6 +381,9 @@ | |||
<member name="icon_scale" type="float" setter="set_icon_scale" getter="get_icon_scale" default="1.0"> | |||
The scale of icon applied after [member fixed_icon_size] and transposing takes effect. | |||
</member> | |||
<member name="items_count" type="int" setter="set_item_count" getter="get_item_count" default="0"> |
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.
This should likely be item_count
for the sake of sounding natural to English speakers.
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.
Came here to say the same, although it's just a nitpick. It's consistent with the method names, too.
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 agree too, PR welcome :)
Since we have the new property array in the inspector, make use of it (723 lines deleted, yay! 🥳 )
Peek.28-10-2021.09-49.mp4
This changes the ItemList properties, but it keeps the backward compatibility by importing the old "items" property anyway.
I also made a small change in ClassDB so that arrays count get stored by default. This is the first time we use the
add_property_array_count()
function so I did not see the mistake before.Bugsquad edit: