Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/space_image.py
| Show First 20 Lines • Show All 1,043 Lines • ▼ Show 20 Lines | def draw(self, context): | ||||
| row = layout.row() | row = layout.row() | ||||
| col = row.column() | col = row.column() | ||||
| col.template_list("IMAGE_UL_udim_tiles", "", ima, "tiles", ima.tiles, "active_index", rows=4) | col.template_list("IMAGE_UL_udim_tiles", "", ima, "tiles", ima.tiles, "active_index", rows=4) | ||||
| col = row.column() | col = row.column() | ||||
| sub = col.column(align=True) | sub = col.column(align=True) | ||||
| sub.operator("image.tile_add", icon='ADD', text="") | sub.operator("image.tile_add", icon='ADD', text="") | ||||
| sub.operator("image.tile_remove", icon='REMOVE', text="") | sub.operator("image.tile_remove", icon='REMOVE', text="") | ||||
| col.separator() | |||||
| sub = col.column(align=True) | |||||
| sub.operator("image.tiles_from_coverage", icon='UV', text="") | |||||
| tile = ima.tiles.active | tile = ima.tiles.active | ||||
| if tile: | if tile: | ||||
| col = layout.column(align=True) | col = layout.column(align=True) | ||||
| col.operator("image.tile_fill") | col.operator("image.tile_fill") | ||||
| class IMAGE_PT_paint_select(Panel, ImagePaintPanel, BrushSelectPanel): | class IMAGE_PT_paint_select(Panel, ImagePaintPanel, BrushSelectPanel): | ||||
| ▲ Show 20 Lines • Show All 448 Lines • Show Last 20 Lines | |||||