diff options
author | Alan Odom <clockmender@icloud.com> | 2020-01-07 10:57:32 +0300 |
---|---|---|
committer | Rune Morling <ermo.blender.org@spammesenseless.net> | 2020-01-15 00:26:56 +0300 |
commit | 20598a3ac66c9fe76e418d86bf4047c79f2c9818 (patch) | |
tree | c863e153c3466eb5b55b763d429e4b2c8c797e93 /precision_drawing_tools/__init__.py | |
parent | 2af992e5181d1a739d433b1255e2e1547a6b420b (diff) |
PDT: Re-Arrange Menus to UI Panel Width
The menus now are re-arranged according to the width of the UI.
A cut-off value is set in the Add-on Preferences.
Remove vestiges of automatic UI highlighting experiment.
Diffstat (limited to 'precision_drawing_tools/__init__.py')
-rw-r--r-- | precision_drawing_tools/__init__.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/precision_drawing_tools/__init__.py b/precision_drawing_tools/__init__.py index a0e254c9..35e55158 100644 --- a/precision_drawing_tools/__init__.py +++ b/precision_drawing_tools/__init__.py @@ -442,6 +442,12 @@ class PDTPreferences(AddonPreferences): description="NOTE: Does not enable debugging globally in Blender (only in PDT scripts)" ) + pdt_ui_width : IntProperty( + name='UI Width Cut-off', + default=350, + description="Cutoff width for shrinking items per line in menus" + ) + def draw(self, context): layout = self.layout @@ -449,6 +455,7 @@ class PDTPreferences(AddonPreferences): row1 = box.row() row2 = box.row() row1.prop(self, "debug") + row1.prop(self, "pdt_ui_width") row2.prop(self, "pdt_library_path") |