Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_node/drawnode.c
| Show First 20 Lines • Show All 2,317 Lines • ▼ Show 20 Lines | static void node_composit_buts_colorcorrection_ex(uiLayout *layout, | ||||
| uiItemR(row, ptr, "midtones_lift", DEFAULT_FLAGS | UI_ITEM_R_SLIDER, NULL, ICON_NONE); | uiItemR(row, ptr, "midtones_lift", DEFAULT_FLAGS | UI_ITEM_R_SLIDER, NULL, ICON_NONE); | ||||
| uiItemR(row, ptr, "shadows_lift", DEFAULT_FLAGS | UI_ITEM_R_SLIDER, NULL, ICON_NONE); | uiItemR(row, ptr, "shadows_lift", DEFAULT_FLAGS | UI_ITEM_R_SLIDER, NULL, ICON_NONE); | ||||
| row = uiLayoutRow(layout, false); | row = uiLayoutRow(layout, false); | ||||
| uiItemR(row, ptr, "midtones_start", DEFAULT_FLAGS, NULL, ICON_NONE); | uiItemR(row, ptr, "midtones_start", DEFAULT_FLAGS, NULL, ICON_NONE); | ||||
| uiItemR(row, ptr, "midtones_end", DEFAULT_FLAGS, NULL, ICON_NONE); | uiItemR(row, ptr, "midtones_end", DEFAULT_FLAGS, NULL, ICON_NONE); | ||||
| } | } | ||||
| static void node_composit_buts_set_alpha(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr) | |||||
| { | |||||
| uiItemR(layout, ptr, "mode", DEFAULT_FLAGS, NULL, ICON_NONE); | |||||
| } | |||||
| static void node_composit_buts_switch(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr) | static void node_composit_buts_switch(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr) | ||||
| { | { | ||||
| uiItemR(layout, ptr, "check", DEFAULT_FLAGS, NULL, ICON_NONE); | uiItemR(layout, ptr, "check", DEFAULT_FLAGS, NULL, ICON_NONE); | ||||
| } | } | ||||
| static void node_composit_buts_switch_view_ex(uiLayout *layout, | static void node_composit_buts_switch_view_ex(uiLayout *layout, | ||||
| bContext *UNUSED(C), | bContext *UNUSED(C), | ||||
| PointerRNA *UNUSED(ptr)) | PointerRNA *UNUSED(ptr)) | ||||
| ▲ Show 20 Lines • Show All 561 Lines • ▼ Show 20 Lines | case CMP_NODE_TRANSLATE: | ||||
| break; | break; | ||||
| case CMP_NODE_MOVIEDISTORTION: | case CMP_NODE_MOVIEDISTORTION: | ||||
| ntype->draw_buttons = node_composit_buts_moviedistortion; | ntype->draw_buttons = node_composit_buts_moviedistortion; | ||||
| break; | break; | ||||
| case CMP_NODE_COLORCORRECTION: | case CMP_NODE_COLORCORRECTION: | ||||
| ntype->draw_buttons = node_composit_buts_colorcorrection; | ntype->draw_buttons = node_composit_buts_colorcorrection; | ||||
| ntype->draw_buttons_ex = node_composit_buts_colorcorrection_ex; | ntype->draw_buttons_ex = node_composit_buts_colorcorrection_ex; | ||||
| break; | break; | ||||
| case CMP_NODE_SETALPHA: | |||||
| ntype->draw_buttons = node_composit_buts_set_alpha; | |||||
| break; | |||||
| case CMP_NODE_SWITCH: | case CMP_NODE_SWITCH: | ||||
| ntype->draw_buttons = node_composit_buts_switch; | ntype->draw_buttons = node_composit_buts_switch; | ||||
| break; | break; | ||||
| case CMP_NODE_SWITCH_VIEW: | case CMP_NODE_SWITCH_VIEW: | ||||
| ntype->draw_buttons_ex = node_composit_buts_switch_view_ex; | ntype->draw_buttons_ex = node_composit_buts_switch_view_ex; | ||||
| break; | break; | ||||
| case CMP_NODE_MASK_BOX: | case CMP_NODE_MASK_BOX: | ||||
| ntype->draw_buttons = node_composit_buts_boxmask; | ntype->draw_buttons = node_composit_buts_boxmask; | ||||
| ▲ Show 20 Lines • Show All 1,193 Lines • Show Last 20 Lines | |||||