mirror of
https://github.com/kaosat-dev/Blender_bevy_components_workflow.git
synced 2024-11-22 11:50:53 +00:00
feat(Blenvy:Blender): minor UI tweaks
This commit is contained in:
parent
5aa666ef00
commit
4fcf842405
@ -75,7 +75,7 @@ class AutoExportSettings(PropertyGroup):
|
|||||||
export_materials_library: BoolProperty(
|
export_materials_library: BoolProperty(
|
||||||
name='Export materials library',
|
name='Export materials library',
|
||||||
description='remove materials from blueprints and use the material library instead',
|
description='remove materials from blueprints and use the material library instead',
|
||||||
default=False,
|
default=True,
|
||||||
update=save_settings
|
update=save_settings
|
||||||
) # type: ignore
|
) # type: ignore
|
||||||
|
|
||||||
|
@ -130,8 +130,8 @@ class BlenvyManager(PropertyGroup):
|
|||||||
auto_export: PointerProperty(type=auto_export_settings.AutoExportSettings) # type: ignore
|
auto_export: PointerProperty(type=auto_export_settings.AutoExportSettings) # type: ignore
|
||||||
components: PointerProperty(type=component_settings.ComponentsSettings) # type: ignore
|
components: PointerProperty(type=component_settings.ComponentsSettings) # type: ignore
|
||||||
|
|
||||||
level_scene_selector: PointerProperty(type=bpy.types.Scene, name="level scene", description="level_scene_picker", poll=is_scene_already_in_use, update=save_settings)# type: ignore
|
level_scene_selector: PointerProperty(type=bpy.types.Scene, name="level scene", description="level scene picker", poll=is_scene_already_in_use, update=save_settings)# type: ignore
|
||||||
library_scene_selector: PointerProperty(type=bpy.types.Scene, name="library scene", description="library_scene_picker", poll=is_scene_already_in_use, update=save_settings)# type: ignore
|
library_scene_selector: PointerProperty(type=bpy.types.Scene, name="library scene", description="library scene picker", poll=is_scene_already_in_use, update=save_settings)# type: ignore
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def level_scenes(self):
|
def level_scenes(self):
|
||||||
|
@ -98,7 +98,7 @@ class BLENVY_PT_SidePanel(bpy.types.Panel):
|
|||||||
header.label(text="Components")
|
header.label(text="Components")
|
||||||
if panel:
|
if panel:
|
||||||
components_ui.draw_settings_ui(panel, blenvy.components)
|
components_ui.draw_settings_ui(panel, blenvy.components)
|
||||||
|
|
||||||
if config_mode == 'EXPORT':
|
if config_mode == 'EXPORT':
|
||||||
header, panel = layout.panel("auto_export", default_closed=False)
|
header, panel = layout.panel("auto_export", default_closed=False)
|
||||||
header.label(text="Auto Export")
|
header.label(text="Auto Export")
|
||||||
@ -129,7 +129,7 @@ def draw_common_settings_ui(layout, settings):
|
|||||||
layout.alert = True
|
layout.alert = True
|
||||||
row.label(text="NO library or level scenes specified! at least one level scene or library scene is required!")
|
row.label(text="NO library or level scenes specified! at least one level scene or library scene is required!")
|
||||||
row = layout.row()
|
row = layout.row()
|
||||||
row.label(text="Please select and add one using the UI below")
|
row.label(text="Please select and add at least one:")
|
||||||
|
|
||||||
section = layout
|
section = layout
|
||||||
rows = 2
|
rows = 2
|
||||||
|
Loading…
Reference in New Issue
Block a user