22 mar
This commit is contained in:
parent
50eb308c0c
commit
4602dabd56
29 changed files with 27 additions and 2 deletions
|
|
@ -14,6 +14,7 @@ EditorStartupMap=/Game/Scenes/CentralLondon.CentralLondon
|
|||
|
||||
[/Script/Engine.RendererSettings]
|
||||
r.DefaultFeature.AntiAliasing=2
|
||||
r.DefaultFeature.AutoExposure=False
|
||||
|
||||
[/Script/Engine.UserInterfaceSettings]
|
||||
RenderFocusRule=NavigationOnly
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ ProjectID=543F4F9E4DE525696C82F5A52303C15C
|
|||
Build=IfProjectHasCode
|
||||
BuildConfiguration=PPBC_Development
|
||||
StagingDirectory=(Path="D:/LifePlay_Build")
|
||||
FullRebuild=False
|
||||
FullRebuild=True
|
||||
ForDistribution=True
|
||||
IncludeDebugFiles=False
|
||||
BlueprintNativizationMethod=Disabled
|
||||
|
|
@ -41,4 +41,3 @@ bWaitForMoviesToComplete=False
|
|||
bMoviesAreSkippable=False
|
||||
+StartupMovies=loading
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -57,6 +57,8 @@ DefaultViewportMouseLockMode=LockAlways
|
|||
+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="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=Left,Scale=-1.000000)
|
||||
+AxisMappings=(AxisName="DownUp",Key=Up,Scale=1.000000)
|
||||
|
|
|
|||
Binary file not shown.
BIN
Content/BPs/CityExpansion.uasset
Normal file
BIN
Content/BPs/CityExpansion.uasset
Normal file
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.
BIN
Content/Structs/DelayedChange.uasset
Normal file
BIN
Content/Structs/DelayedChange.uasset
Normal file
Binary file not shown.
Binary file not shown.
BIN
Content/UI/BuildingEdit.uasset
Normal file
BIN
Content/UI/BuildingEdit.uasset
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Content/UI/Icons/Amenities/questionmark.uasset
Normal file
BIN
Content/UI/Icons/Amenities/questionmark.uasset
Normal file
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.
|
|
@ -79,3 +79,23 @@ bool UModdingExtraBPLibrary::SaveTxt(FString SaveTextB, FString FileNameB)
|
|||
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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -44,4 +44,7 @@ class UModdingExtraBPLibrary : public UBlueprintFunctionLibrary
|
|||
|
||||
UFUNCTION(BlueprintPure, Category = "ModdingExtra")
|
||||
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);
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue