1
0
KF2-Dev-Scripts/Engine/Classes/DecalActorBase.uc
2020-12-13 18:01:13 +03:00

66 lines
1.7 KiB
Ucode

/**
* Copyright 1998-2013 Epic Games, Inc. All Rights Reserved.
*/
class DecalActorBase extends Actor
implements(EditorLinkSelectionInterface)
native(Decal)
ClassGroup(Decals)
abstract;
var() editconst const DecalComponent Decal;
cpptext
{
// UObject interface.
virtual void PostEditChangeProperty(FPropertyChangedEvent& PropertyChangedEvent);
// AActor interface.
virtual void PostEditMove(UBOOL bFinished);
/** EditorLinkSelectionInterface */
virtual void LinkSelection(USelection* SelectedActors);
virtual void UnLinkSelection(USelection* SelectedActors);
/**
* Function that gets called from within Map_Check to allow this actor to check itself
* for any potential errors and register them with map check dialog.
*/
#if WITH_EDITOR
virtual void EditorApplyScale(const FVector& DeltaScale, const FMatrix& ScaleMatrix, const FVector* PivotLocation, UBOOL bAltDown, UBOOL bShiftDown, UBOOL bCtrlDown);
virtual void CheckForErrors();
#endif
}
defaultproperties
{
TickGroup=TG_DuringAsyncWork
Begin Object Class=DecalComponent Name=NewDecalComponent
DecalTransform=DecalTransform_OwnerAbsolute
bStaticDecal=TRUE
End Object
Decal=NewDecalComponent
Components.Add(NewDecalComponent)
Begin Object Class=SpriteComponent Name=Sprite
Sprite=Texture2D'EditorResources.S_DecalActorIcon'
Scale=0.15
HiddenGame=True
AlwaysLoadOnClient=False
AlwaysLoadOnServer=False
SpriteCategoryName="Decals"
End Object
Components.Add(Sprite)
Begin Object Class=ArrowComponent Name=ArrowComponent0
bTreatAsASprite=True
HiddenGame=true
SpriteCategoryName="Decals"
End Object
Components.Add(ArrowComponent0)
bStatic=true
bMovable=false
}