예제 #1
0
UKUIAssetLibrary::UKUIAssetLibrary( const class FObjectInitializer& oObjectInitializer )
    : Super( oObjectInitializer )
{
    KUI_UO_INIT_DEBUG()

    oParentLibrary = NULL;
    oChildLibrary = NULL;
    arAssetLibrary.SetNum( 0 );
}
예제 #2
0
AKUIInterface::AKUIInterface( const class FObjectInitializer& oObjectInitializer )
	: Super(oObjectInitializer)
{
	KUI_UO_INIT_DEBUG()

	PrimaryActorTick.bCanEverTick = true;
	PrimaryActorTick.bTickEvenWhenPaused = true;
	SetActorTickEnabled( true );

	bVisible = true;
	bCursorVisible = true;
	v2ScreenResolution = FVector2D::ZeroVector;
	v2CursorLocation = FVector2D( KUI_INTERFACE_FIRST_CURSOR_UPDATE, 0.f );
	v2CursorVector = FVector2D::ZeroVector;
	arCancellables.SetNum( 0 );
	ctFocused = NULL;

	ctRootContainers.SetNum( 4 );

	KUICreateDefaultSubobjectAssign( ctRootContainers[ EKUIInterfaceRoot::R_Root ], UKUIRootContainer, "Root Container" );
	ctRootContainers[ EKUIInterfaceRoot::R_Root ]->SetInterface( this );

	KUICreateDefaultSubobjectAssign( ctRootContainers[ EKUIInterfaceRoot::R_Overlay ], UKUIRootContainer, "Overlay Container" );
	ctRootContainers[ EKUIInterfaceRoot::R_Overlay ]->SetInterface( this );

	KUICreateDefaultSubobjectAssign( ctRootContainers[ EKUIInterfaceRoot::R_Tooltip ], UKUITooltipContainer, "Tooltip Container" );
	ctRootContainers[ EKUIInterfaceRoot::R_Tooltip ]->SetInterface( this );

	KUICreateDefaultSubobjectAssign( ctRootContainers[ EKUIInterfaceRoot::R_Cursor ], UKUICursorContainer, "Cursor Container" );
	ctRootContainers[ EKUIInterfaceRoot::R_Cursor ]->SetInterface( this );

	arMouseButtonDownLocations.SetNum( 3 );
	arMouseButtonDownLocations[ EMouseButtons::Left ] = FVector2D::ZeroVector;
	arMouseButtonDownLocations[ EMouseButtons::Right ] = FVector2D::ZeroVector;
	arMouseButtonDownLocations[ EMouseButtons::Middle ] = FVector2D::ZeroVector;

	if ( !IsTemplate() )
		aLatestInstance = this;
}
예제 #3
0
UKUIInterfaceElement::UKUIInterfaceElement( const class FObjectInitializer& oObjectInitializer )
	: Super(oObjectInitializer)
{
	KUI_UO_INIT_DEBUG()

	bInitialized = false;
	bVisible = true;
	v2Location = FVector2D::ZeroVector;
	v4Margin = FVector4( 0.f, 0.f, 0.f, 0.f );
	ctContainer = NULL;
	iZIndex = 0;
	oAlignedTo = NULL;
	eHAlign = EKUIInterfaceHAlign::HA_None;
	eVAlign = EKUIInterfaceVAlign::VA_None;
	v2AlignLocation = FVector2D::ZeroVector;
	bValidAlignLocation = false;
	v2LastScreenRenderLocation = FVector2D( -1.f, -1.f ); // Invalid
	arAlignedToThis.SetNum( 0 );
	oRenderCache = NULL;
	aLastRenderedBy = NULL;
	arTags.SetNum( 0 );

	bDebug = false;
}