Bforartists: Timeline Sidebar - Cache panel - indent the cache types

Created on 25 May 2020  路  5Comments  路  Source: Bforartists/Bforartists

The cache types is a subset of all cache objects. So we should indent it visually like in this mockup here:

timelinesidebar

0 - task 1- Fixed

All 5 comments

we should hide sub and add triangle too right?

Ah, yes, good idea.

ok great

Example code in case you want to align the triangle in the middle. I have done this in quite a few areas ....

        split = layout.split()
        col = split.column()
        col.use_property_split = False
        col.prop(my, "example_operator")
        col = split.column()
        if my.example_operator:
       col.label(icon='DISCLOSURE_TRI_DOWN')
           ... add more content here
        else:
            col.label(icon='DISCLOSURE_TRI_RIGHT') 

Ah, github and indentions ...

With factor you can also do some more fine control

split = row.split(factor = 0.55)

oh I see, great

Was this page helpful?
0 / 5 - 0 ratings