From bc10f934d67d2c881213bc4b3883d19d071abe99 Mon Sep 17 00:00:00 2001 From: Gorgious56 Date: Fri, 28 Oct 2022 15:46:02 +0200 Subject: [PATCH] Add tooltips to attributes to guide users to their description --- src/blenderbim/blenderbim/bim/prop.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/blenderbim/blenderbim/bim/prop.py b/src/blenderbim/blenderbim/bim/prop.py index 0f19fdcb61..632e1f9896 100644 --- a/src/blenderbim/blenderbim/bim/prop.py +++ b/src/blenderbim/blenderbim/bim/prop.py @@ -260,14 +260,15 @@ def update_attribute_value(self, context): class Attribute(PropertyGroup): + tooltip = "`Right Click > IFC Description` to read the attribute description and online documentation" name: StringProperty(name="Name") description: StringProperty(name="Description") ifc_class: StringProperty(name="Ifc Class") data_type: StringProperty(name="Data Type") - string_value: StringProperty(name="Value", update=update_attribute_value) - bool_value: BoolProperty(name="Value", update=update_attribute_value) - int_value: IntProperty(name="Value", update=update_attribute_value) - float_value: FloatProperty(name="Value", update=update_attribute_value) + string_value: StringProperty(name="Value", update=update_attribute_value, description=tooltip) + bool_value: BoolProperty(name="Value", update=update_attribute_value, description=tooltip) + int_value: IntProperty(name="Value", update=update_attribute_value, description=tooltip) + float_value: FloatProperty(name="Value", update=update_attribute_value, description=tooltip) enum_items: StringProperty(name="Value") enum_descriptions: CollectionProperty(type=StrProperty) enum_value: EnumProperty(items=get_attribute_enum_values, name="Value", update=update_attribute_value)