From be33d3eccdcdf252201883ea681e261e967c87fc Mon Sep 17 00:00:00 2001 From: Hans Goudey Date: Wed, 17 Mar 2021 13:46:41 -0400 Subject: UI: Tweak labels, descriptions, and panel layout for line art Changes include: - Use `IFACE_` for UI labels set in the modifier panels - Use a sub-sub-panel for transparency - Fix grammar and spelling mistakes - Use more natural user-friendly wording - Make descriptions more specific and more useful - Don't capitalize "line art" in descriptions (tooltips) These changes are aimed at making the UI strings more consistent with the rest of the UI and being more helpful to someone trying to understand how to use the modifier. Differential Revision: https://developer.blender.org/D10750 --- release/scripts/startup/bl_ui/properties_collection.py | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'release') diff --git a/release/scripts/startup/bl_ui/properties_collection.py b/release/scripts/startup/bl_ui/properties_collection.py index fa4c3cdb779..186314f9591 100644 --- a/release/scripts/startup/bl_ui/properties_collection.py +++ b/release/scripts/startup/bl_ui/properties_collection.py @@ -62,8 +62,8 @@ class COLLECTION_PT_collection_flags(CollectionButtonsPanel, Panel): col.prop(vlc, "indirect_only", toggle=False) -class COLLECTION_PT_lineart_collection(CollectionButtonsPanel, Panel): - bl_label = "Line Art" +class COLLECTION_PT_instancing(CollectionButtonsPanel, Panel): + bl_label = "Instancing" def draw(self, context): layout = self.layout @@ -72,10 +72,11 @@ class COLLECTION_PT_lineart_collection(CollectionButtonsPanel, Panel): collection = context.collection row = layout.row() - row.prop(collection, "lineart_usage") + row.prop(collection, "instance_offset") -class COLLECTION_PT_instancing(CollectionButtonsPanel, Panel): - bl_label = "Instancing" + +class COLLECTION_PT_lineart_collection(CollectionButtonsPanel, Panel): + bl_label = "Line Art" def draw(self, context): layout = self.layout @@ -84,12 +85,13 @@ class COLLECTION_PT_instancing(CollectionButtonsPanel, Panel): collection = context.collection row = layout.row() - row.prop(collection, "instance_offset") + row.prop(collection, "lineart_usage") + classes = ( COLLECTION_PT_collection_flags, - COLLECTION_PT_lineart_collection, COLLECTION_PT_instancing, + COLLECTION_PT_lineart_collection, ) if __name__ == "__main__": # only for live edit. -- cgit v1.2.3