Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/interface/interface_region_color_picker.c
| Show First 20 Lines • Show All 614 Lines • ▼ Show 20 Lines | bt = uiDefButR_prop(block, | ||||
| 0, | 0, | ||||
| yco, | yco, | ||||
| butwidth, | butwidth, | ||||
| UI_UNIT_Y, | UI_UNIT_Y, | ||||
| ptr, | ptr, | ||||
| prop, | prop, | ||||
| 0, | 0, | ||||
| 0.0, | 0.0, | ||||
| 0.0, | 1.0, | ||||
| 0, | 0, | ||||
| 3, | 3, | ||||
| TIP_("Red")); | TIP_("Red")); | ||||
| UI_but_func_set(bt, ui_colorpicker_rna_cb, bt, NULL); | UI_but_func_set(bt, ui_colorpicker_rna_cb, bt, NULL); | ||||
| bt->custom_data = cpicker; | bt->custom_data = cpicker; | ||||
| bt = uiDefButR_prop(block, | bt = uiDefButR_prop(block, | ||||
| UI_BTYPE_NUM_SLIDER, | UI_BTYPE_NUM_SLIDER, | ||||
| 0, | 0, | ||||
| IFACE_("G:"), | IFACE_("G:"), | ||||
| 0, | 0, | ||||
| yco -= UI_UNIT_Y, | yco -= UI_UNIT_Y, | ||||
| butwidth, | butwidth, | ||||
| UI_UNIT_Y, | UI_UNIT_Y, | ||||
| ptr, | ptr, | ||||
| prop, | prop, | ||||
| 1, | 1, | ||||
| 0.0, | 0.0, | ||||
| 0.0, | 1.0, | ||||
| 0, | 0, | ||||
| 3, | 3, | ||||
| TIP_("Green")); | TIP_("Green")); | ||||
| UI_but_func_set(bt, ui_colorpicker_rna_cb, bt, NULL); | UI_but_func_set(bt, ui_colorpicker_rna_cb, bt, NULL); | ||||
| bt->custom_data = cpicker; | bt->custom_data = cpicker; | ||||
| bt = uiDefButR_prop(block, | bt = uiDefButR_prop(block, | ||||
| UI_BTYPE_NUM_SLIDER, | UI_BTYPE_NUM_SLIDER, | ||||
| 0, | 0, | ||||
| IFACE_("B:"), | IFACE_("B:"), | ||||
| 0, | 0, | ||||
| yco -= UI_UNIT_Y, | yco -= UI_UNIT_Y, | ||||
| butwidth, | butwidth, | ||||
| UI_UNIT_Y, | UI_UNIT_Y, | ||||
| ptr, | ptr, | ||||
| prop, | prop, | ||||
| 2, | 2, | ||||
| 0.0, | 0.0, | ||||
| 0.0, | 1.0, | ||||
| 0, | 0, | ||||
| 3, | 3, | ||||
| TIP_("Blue")); | TIP_("Blue")); | ||||
| UI_but_func_set(bt, ui_colorpicker_rna_cb, bt, NULL); | UI_but_func_set(bt, ui_colorpicker_rna_cb, bt, NULL); | ||||
| bt->custom_data = cpicker; | bt->custom_data = cpicker; | ||||
| /* Could use: | /* Could use: | ||||
| * uiItemFullR(col, ptr, prop, -1, 0, UI_ITEM_R_EXPAND | UI_ITEM_R_SLIDER, "", ICON_NONE); | * uiItemFullR(col, ptr, prop, -1, 0, UI_ITEM_R_EXPAND | UI_ITEM_R_SLIDER, "", ICON_NONE); | ||||
| ▲ Show 20 Lines • Show All 242 Lines • Show Last 20 Lines | |||||