Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVilém Duha <vilda.novak@gmail.com>2021-01-24 01:35:40 +0300
committerVilém Duha <vilda.novak@gmail.com>2021-01-24 01:35:40 +0300
commita889c00fde6a4566d8d18c551921394ceaec7a31 (patch)
treea7e00c4e0fabe43db06b67f5928ddf29b01357a3
parent896eaa753e82c4bf217ed7cc5f044bec71b306fc (diff)
BlenderKit: UI cleanup
move several props in search panel into filters subpanel.
-rw-r--r--blenderkit/ui_panels.py56
1 files changed, 31 insertions, 25 deletions
diff --git a/blenderkit/ui_panels.py b/blenderkit/ui_panels.py
index 40be0800..921d0453 100644
--- a/blenderkit/ui_panels.py
+++ b/blenderkit/ui_panels.py
@@ -345,9 +345,9 @@ def draw_panel_model_search(self, context):
if props.report == 'You need Full plan to get this item.':
layout.operator("wm.url_open", text="Get Full plan", icon='URL').url = paths.BLENDERKIT_PLANS
- layout.prop(props, "search_style")
- layout.prop(props, "own_only")
- layout.prop(props, "free_only")
+ # layout.prop(props, "search_style")
+ # layout.prop(props, "own_only")
+ # layout.prop(props, "free_only")
# if props.search_style == 'OTHER':
# layout.prop(props, "search_style_other")
@@ -669,7 +669,6 @@ def draw_panel_material_search(self, context):
row = layout.row()
row.prop(props, "search_keywords", text="", icon='VIEWZOOM')
draw_assetbar_show_hide(row, props)
- layout.prop(props, "own_only")
utils.label_multiline(layout, text=props.report)
# layout.prop(props, 'search_style')F
@@ -775,36 +774,41 @@ class VIEW3D_PT_blenderkit_advanced_model_search(Panel):
# if props.search_engine == 'OTHER':
# layout.prop(props, "search_engine_keyword")
- # AGE
- layout.prop(props, "search_condition", text='Condition') # , text ='condition of object new/old e.t.c.')
+ layout.prop(props, "own_only")
+ layout.prop(props, "free_only")
+ layout.prop(props, "search_style")
+
# DESIGN YEAR
- layout.prop(props, "search_design_year", text='designed in ( min - max )')
+ layout.prop(props, "search_design_year", text='Designed in Year')
if props.search_design_year:
row = layout.row(align=True)
- row.prop(props, "search_design_year_min", text='min')
- row.prop(props, "search_design_year_max", text='max')
+ row.prop(props, "search_design_year_min", text='Min')
+ row.prop(props, "search_design_year_max", text='Max')
# POLYCOUNT
- layout.prop(props, "search_polycount", text='Poly count in ( min - max )')
+ layout.prop(props, "search_polycount", text='Poly Count ')
if props.search_polycount:
row = layout.row(align=True)
- row.prop(props, "search_polycount_min", text='min')
- row.prop(props, "search_polycount_max", text='max')
+ row.prop(props, "search_polycount_min", text='Min')
+ row.prop(props, "search_polycount_max", text='Max')
# TEXTURE RESOLUTION
- layout.prop(props, "search_texture_resolution", text='texture resolution ( min - max )')
+ layout.prop(props, "search_texture_resolution", text='Texture Resolutions')
if props.search_texture_resolution:
row = layout.row(align=True)
- row.prop(props, "search_texture_resolution_min", text='min')
- row.prop(props, "search_texture_resolution_max", text='max')
+ row.prop(props, "search_texture_resolution_min", text='Min')
+ row.prop(props, "search_texture_resolution_max", text='Max')
# FILE SIZE
- layout.prop(props, "search_file_size", text='File size ( min - max MB)')
+ layout.prop(props, "search_file_size", text='File Size (MB)')
if props.search_file_size:
row = layout.row(align=True)
- row.prop(props, "search_file_size_min", text='min')
- row.prop(props, "search_file_size_max", text='max')
+ row.prop(props, "search_file_size_min", text='Min')
+ row.prop(props, "search_file_size_max", text='Max')
+
+ # AGE
+ layout.prop(props, "search_condition", text='Condition') # , text ='condition of object new/old e.t.c.')
# layout.prop(props, "search_procedural", expand=True)
# ADULT
@@ -833,24 +837,26 @@ class VIEW3D_PT_blenderkit_advanced_material_search(Panel):
layout = self.layout
layout.separator()
- layout.label(text='texture types')
+ layout.prop(props, "own_only")
+
+ layout.label(text='Texture:')
col = layout.column()
col.prop(props, "search_procedural", expand=True)
if props.search_procedural == 'TEXTURE_BASED':
# TEXTURE RESOLUTION
- layout.prop(props, "search_texture_resolution", text='texture resolution ( min - max )')
+ layout.prop(props, "search_texture_resolution", text='Texture Resolution')
if props.search_texture_resolution:
row = layout.row(align=True)
- row.prop(props, "search_texture_resolution_min", text='min')
- row.prop(props, "search_texture_resolution_max", text='max')
+ row.prop(props, "search_texture_resolution_min", text='Min')
+ row.prop(props, "search_texture_resolution_max", text='Max')
# FILE SIZE
- layout.prop(props, "search_file_size", text='File size ( min - max MB)')
+ layout.prop(props, "search_file_size", text='File size (MB)')
if props.search_file_size:
row = layout.row(align=True)
- row.prop(props, "search_file_size_min", text='min')
- row.prop(props, "search_file_size_max", text='max')
+ row.prop(props, "search_file_size_min", text='Min')
+ row.prop(props, "search_file_size_max", text='Max')
class VIEW3D_PT_blenderkit_categories(Panel):