This commit is contained in:
vinfamy 2018-03-23 05:18:56 +07:00
parent 50eb308c0c
commit 4602dabd56
29 changed files with 27 additions and 2 deletions

View file

@ -14,6 +14,7 @@ EditorStartupMap=/Game/Scenes/CentralLondon.CentralLondon
[/Script/Engine.RendererSettings] [/Script/Engine.RendererSettings]
r.DefaultFeature.AntiAliasing=2 r.DefaultFeature.AntiAliasing=2
r.DefaultFeature.AutoExposure=False
[/Script/Engine.UserInterfaceSettings] [/Script/Engine.UserInterfaceSettings]
RenderFocusRule=NavigationOnly RenderFocusRule=NavigationOnly

View file

@ -5,7 +5,7 @@ ProjectID=543F4F9E4DE525696C82F5A52303C15C
Build=IfProjectHasCode Build=IfProjectHasCode
BuildConfiguration=PPBC_Development BuildConfiguration=PPBC_Development
StagingDirectory=(Path="D:/LifePlay_Build") StagingDirectory=(Path="D:/LifePlay_Build")
FullRebuild=False FullRebuild=True
ForDistribution=True ForDistribution=True
IncludeDebugFiles=False IncludeDebugFiles=False
BlueprintNativizationMethod=Disabled BlueprintNativizationMethod=Disabled
@ -41,4 +41,3 @@ bWaitForMoviesToComplete=False
bMoviesAreSkippable=False bMoviesAreSkippable=False
+StartupMovies=loading +StartupMovies=loading

View file

@ -57,6 +57,8 @@ DefaultViewportMouseLockMode=LockAlways
+ActionMappings=(ActionName="ManualAnimating",Key=LeftControl,bShift=False,bCtrl=False,bAlt=False,bCmd=False) +ActionMappings=(ActionName="ManualAnimating",Key=LeftControl,bShift=False,bCtrl=False,bAlt=False,bCmd=False)
+ActionMappings=(ActionName="ManualAnimating",Key=RightControl,bShift=False,bCtrl=False,bAlt=False,bCmd=False) +ActionMappings=(ActionName="ManualAnimating",Key=RightControl,bShift=False,bCtrl=False,bAlt=False,bCmd=False)
+ActionMappings=(ActionName="TestScenes",Key=#,bShift=False,bCtrl=False,bAlt=False,bCmd=False) +ActionMappings=(ActionName="TestScenes",Key=#,bShift=False,bCtrl=False,bAlt=False,bCmd=False)
+ActionMappings=(ActionName="SpeedUp",Key=NumPadSix,bShift=False,bCtrl=False,bAlt=False,bCmd=False)
+ActionMappings=(ActionName="SpeedDown",Key=NumPadFour,bShift=False,bCtrl=False,bAlt=False,bCmd=False)
+AxisMappings=(AxisName="LeftRight",Key=Right,Scale=1.000000) +AxisMappings=(AxisName="LeftRight",Key=Right,Scale=1.000000)
+AxisMappings=(AxisName="LeftRight",Key=Left,Scale=-1.000000) +AxisMappings=(AxisName="LeftRight",Key=Left,Scale=-1.000000)
+AxisMappings=(AxisName="DownUp",Key=Up,Scale=1.000000) +AxisMappings=(AxisName="DownUp",Key=Up,Scale=1.000000)

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -79,3 +79,23 @@ bool UModdingExtraBPLibrary::SaveTxt(FString SaveTextB, FString FileNameB)
return FullPath; return FullPath;
} }
bool UModdingExtraBPLibrary::IsPointInsidePolygon( const TArray<FVector2D>& Polygon, const FVector2D Point )
{
const int NumCorners = Polygon.Num();
int PreviousCornerIndex = NumCorners - 1;
bool bIsInside = false;
for( int CornerIndex = 0; CornerIndex < NumCorners; CornerIndex++ )
{
if( ( ( Polygon[ CornerIndex ].Y < Point.Y && Polygon[ PreviousCornerIndex ].Y >= Point.Y ) || ( Polygon[ PreviousCornerIndex ].Y < Point.Y && Polygon[ CornerIndex ].Y >= Point.Y ) ) &&
( Polygon[ CornerIndex ].X <= Point.X || Polygon[ PreviousCornerIndex ].X <= Point.X ) )
{
bIsInside ^= ( Polygon[ CornerIndex ].X + ( Point.Y - Polygon[ CornerIndex ].Y ) / ( Polygon[ PreviousCornerIndex ].Y - Polygon[ CornerIndex ].Y )*( Polygon[ PreviousCornerIndex ].X - Polygon[ CornerIndex ].X ) < Point.X );
}
PreviousCornerIndex = CornerIndex;
}
return bIsInside;
}

View file

@ -44,4 +44,7 @@ class UModdingExtraBPLibrary : public UBlueprintFunctionLibrary
UFUNCTION(BlueprintPure, Category = "ModdingExtra") UFUNCTION(BlueprintPure, Category = "ModdingExtra")
static bool GetAllSubfolders(TArray<FString>& Folders, FString RootFolderFullPath); static bool GetAllSubfolders(TArray<FString>& Folders, FString RootFolderFullPath);
UFUNCTION(BlueprintPure, Category = "ModdingExtra", meta = (Keywords = "IsPointInsidePolygon"))
static bool IsPointInsidePolygon(const TArray<FVector2D>& Polygon, const FVector2D Point);
}; };