Bforartists: Adjust last operation panel - align Proportional Editing props left

Created on 28 Oct 2020  路  12Comments  路  Source: Bforartists/Bforartists

Time to start to collect all these C panels with middle aligned content.

Proportional editing is a general sub content of quite a few last operations. Align these three checkboxes left.

proportional

0 - task 1- Fixed

All 12 comments

it seems that last operator panels are not defined panel by panel, but generated from the operator
source/blender/windowmanager/intern/wm_operators.c
line 1297
so any change would affect all other panels

Even better :)

indeed :)

did some investigation
there seems to be 3 ways of writing UI in Blender, the most low level one uses UI_block, uiDefBut, etc.. (C)
the other one uses uiItem, uiLayout, etc.. (C)
and third one is Python
2nd and 3rd are somewhat easy to convert between

2nd one seems to be built on 1st one
so we can use 1st and 2nd together

last operation panel and #1940 uses the first system

I once tried to dive into this concept and got mad at it. So good luck ^^

indeed, the way to go seems if we could try to rewrite at least some low level UI using the higher level one, currently experimenting with this, this would make UI more consistent, and easily fix issues like this and #1940, instead of figuring out two different UI codes, we just write one and use it for both.

What i always searched is the location where they define the middle aligned props at all.

I think it is defined here, they use a recursive function to draw all props of the operator, so they don't define a panel for each it is generated automatically from the last operator

image

so alignment is defined there, and also here, they disable split layout if all operator props are boolean (check box), this makes them align left, so I think all we need to do is try to do this also for check boxes when also there are other types of props

image

Sounds so easy :D

it should be yeah :D

I was in this file already before. But couldn't manage it. But yeah, my C fu is against zero ^^

I hope everything goes right ^^

Was this page helpful?
0 / 5 - 0 ratings

Related issues

iyadahmed picture iyadahmed  路  8Comments

Draise14 picture Draise14  路  6Comments

Draise14 picture Draise14  路  5Comments

Draise14 picture Draise14  路  7Comments

iyadahmed picture iyadahmed  路  7Comments