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

Remove ItemList editor and replace it by a property array #54342

Merged
merged 1 commit into from
Oct 28, 2021

Conversation

groud
Copy link
Member

@groud groud commented Oct 28, 2021

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:

@groud groud added this to the 4.0 milestone Oct 28, 2021
@groud groud requested review from a team as code owners October 28, 2021 07:50
doc/classes/ItemList.xml Outdated Show resolved Hide resolved
@groud groud force-pushed the remove_item_list_editor branch from 0b85234 to a51f922 Compare October 28, 2021 08:17
@akien-mga akien-mga merged commit 6d930bd into godotengine:master Oct 28, 2021
@akien-mga
Copy link
Member

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">
Copy link
Member

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.

Copy link
Contributor

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.

Copy link
Member

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 :)

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

Successfully merging this pull request may close these issues.

Can't undo actions of ItemList editor
4 participants