Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/function/nodes/node_fn_input_color.cc
| Show All 17 Lines | |||||
| #include "UI_interface.h" | #include "UI_interface.h" | ||||
| #include "UI_resources.h" | #include "UI_resources.h" | ||||
| namespace blender::nodes { | namespace blender::nodes { | ||||
| static void fn_node_input_color_declare(NodeDeclarationBuilder &b) | static void fn_node_input_color_declare(NodeDeclarationBuilder &b) | ||||
| { | { | ||||
| b.add_output<decl::Color>("Color"); | b.add_output<decl::Color>(N_("Color")); | ||||
| }; | }; | ||||
| static void fn_node_input_color_layout(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr) | static void fn_node_input_color_layout(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr) | ||||
| { | { | ||||
| uiTemplateColorPicker(layout, ptr, "color", true, false, false, true); | uiTemplateColorPicker(layout, ptr, "color", true, false, false, true); | ||||
| uiItemR(layout, ptr, "color", UI_ITEM_R_SPLIT_EMPTY_NAME, "", ICON_NONE); | uiItemR(layout, ptr, "color", UI_ITEM_R_SPLIT_EMPTY_NAME, "", ICON_NONE); | ||||
| } | } | ||||
| Show All 31 Lines | |||||