Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/function/nodes/node_fn_input_int.cc
| Show All 19 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_int_declare(NodeDeclarationBuilder &b) | static void fn_node_input_int_declare(NodeDeclarationBuilder &b) | ||||
| { | { | ||||
| b.add_output<decl::Int>("Integer"); | b.add_output<decl::Int>(N_("Integer")); | ||||
| }; | }; | ||||
| static void fn_node_input_int_layout(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr) | static void fn_node_input_int_layout(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr) | ||||
| { | { | ||||
| uiLayout *col = uiLayoutColumn(layout, true); | uiLayout *col = uiLayoutColumn(layout, true); | ||||
| uiItemR(col, ptr, "integer", UI_ITEM_R_EXPAND, "", ICON_NONE); | uiItemR(col, ptr, "integer", UI_ITEM_R_EXPAND, "", ICON_NONE); | ||||
| } | } | ||||
| Show All 28 Lines | |||||