Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/space_image.py
| Show First 20 Lines • Show All 1,131 Lines • ▼ Show 20 Lines | def draw(self, context): | ||||
| brush_settings(layout.column(), context, brush, popover=self.is_popover) | brush_settings(layout.column(), context, brush, popover=self.is_popover) | ||||
| class IMAGE_PT_paint_settings_advanced(Panel, ImagePaintPanel): | class IMAGE_PT_paint_settings_advanced(Panel, ImagePaintPanel): | ||||
| bl_context = ".paint_common_2d" | bl_context = ".paint_common_2d" | ||||
| bl_parent_id = "IMAGE_PT_paint_settings" | bl_parent_id = "IMAGE_PT_paint_settings" | ||||
| bl_category = "Tool" | bl_category = "Tool" | ||||
| bl_label = "Advanced" | bl_label = "Advanced" | ||||
| bl_ui_units_x = 12 | |||||
| def draw(self, context): | def draw(self, context): | ||||
| layout = self.layout | layout = self.layout | ||||
| layout.use_property_split = True | layout.use_property_split = True | ||||
| layout.use_property_decorate = False # No animation. | layout.use_property_decorate = False # No animation. | ||||
| settings = context.tool_settings.image_paint | settings = context.tool_settings.image_paint | ||||
| Show All 40 Lines | |||||
| class IMAGE_PT_tools_brush_display(Panel, BrushButtonsPanel, DisplayPanel): | class IMAGE_PT_tools_brush_display(Panel, BrushButtonsPanel, DisplayPanel): | ||||
| bl_context = ".paint_common_2d" | bl_context = ".paint_common_2d" | ||||
| bl_parent_id = "IMAGE_PT_paint_settings" | bl_parent_id = "IMAGE_PT_paint_settings" | ||||
| bl_category = "Tool" | bl_category = "Tool" | ||||
| bl_label = "Brush Tip" | bl_label = "Brush Tip" | ||||
| bl_options = {'DEFAULT_CLOSED'} | bl_options = {'DEFAULT_CLOSED'} | ||||
| bl_ui_units_x = 15 | |||||
| class IMAGE_PT_tools_brush_texture(BrushButtonsPanel, Panel): | class IMAGE_PT_tools_brush_texture(BrushButtonsPanel, Panel): | ||||
| bl_label = "Texture" | bl_label = "Texture" | ||||
| bl_context = ".paint_common_2d" | bl_context = ".paint_common_2d" | ||||
| bl_parent_id = "IMAGE_PT_paint_settings" | bl_parent_id = "IMAGE_PT_paint_settings" | ||||
| bl_category = "Tool" | bl_category = "Tool" | ||||
| bl_options = {'DEFAULT_CLOSED'} | bl_options = {'DEFAULT_CLOSED'} | ||||
| Show All 10 Lines | def draw(self, context): | ||||
| brush_texture_settings(col, brush, 0) | brush_texture_settings(col, brush, 0) | ||||
| class IMAGE_PT_tools_mask_texture(Panel, BrushButtonsPanel, TextureMaskPanel): | class IMAGE_PT_tools_mask_texture(Panel, BrushButtonsPanel, TextureMaskPanel): | ||||
| bl_context = ".paint_common_2d" | bl_context = ".paint_common_2d" | ||||
| bl_parent_id = "IMAGE_PT_paint_settings" | bl_parent_id = "IMAGE_PT_paint_settings" | ||||
| bl_category = "Tool" | bl_category = "Tool" | ||||
| bl_label = "Texture Mask" | bl_label = "Texture Mask" | ||||
| bl_ui_units_x = 12 | |||||
| class IMAGE_PT_paint_stroke(BrushButtonsPanel, Panel, StrokePanel): | class IMAGE_PT_paint_stroke(BrushButtonsPanel, Panel, StrokePanel): | ||||
| bl_label = "Stroke" | bl_label = "Stroke" | ||||
| bl_context = ".paint_common_2d" | bl_context = ".paint_common_2d" | ||||
| bl_parent_id = "IMAGE_PT_paint_settings" | bl_parent_id = "IMAGE_PT_paint_settings" | ||||
| bl_category = "Tool" | bl_category = "Tool" | ||||
| bl_options = {'DEFAULT_CLOSED'} | bl_options = {'DEFAULT_CLOSED'} | ||||
| ▲ Show 20 Lines • Show All 333 Lines • Show Last 20 Lines | |||||