Exemple #1
0
int Chat_KeyLeft( PCHAT_LIST list, PUSER_INPUT_BUFFER pci )
{
	size_t old_index = list->input.command_mark_start;
	if( list->input.control_key_state & KEY_MOD_SHIFT )
	{
		if( list->input.command_mark_start == list->input.command_mark_end )
		{
			size_t index = GetInputIndex( pci );
			old_index = index;
			list->input.command_mark_start = list->input.command_mark_end = (int)index;
		}
	}
	else
	{
		list->input.command_mark_start = list->input.command_mark_end = 0;
	}

	SetUserInputPosition( pci, -1, COMMAND_POS_CUR );
	if( list->input.control_key_state & KEY_MOD_SHIFT )
	{
		size_t index = GetInputIndex( pci );
		if( index < list->input.command_mark_start )
			list->input.command_mark_start = (int)index;
		else if( index != old_index )
			list->input.command_mark_end = (int)index;
	}
	return UPDATE_COMMAND;
}
uint32 UMaterialGraphNode::GetInputType(const UEdGraphPin* InputPin) const
{
	return MaterialExpression->GetInputType(GetInputIndex(InputPin));
}
uint32 UMaterialGraphNode_Root::GetInputType(const UEdGraphPin* InputPin) const
{
	UMaterialGraph* MaterialGraph = CastChecked<UMaterialGraph>(GetGraph());
	return GetMaterialPropertyType(MaterialGraph->MaterialInputs[GetInputIndex(InputPin)].GetProperty());
}