-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Auto detect text files and perform LF normalization | ||
* text=auto |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
# Visual Studio 2015 user specific files | ||
.vs/ | ||
|
||
# Compiled Object files | ||
*.slo | ||
*.lo | ||
*.o | ||
*.obj | ||
|
||
# Precompiled Headers | ||
*.gch | ||
*.pch | ||
|
||
# Compiled Dynamic libraries | ||
*.so | ||
*.dylib | ||
*.dll | ||
|
||
# Fortran module files | ||
*.mod | ||
|
||
# Compiled Static libraries | ||
*.lai | ||
*.la | ||
*.a | ||
*.lib | ||
|
||
# Executables | ||
*.exe | ||
*.out | ||
*.app | ||
*.ipa | ||
|
||
# These project files can be generated by the engine | ||
*.xcodeproj | ||
*.xcworkspace | ||
*.sln | ||
*.suo | ||
*.opensdf | ||
*.sdf | ||
*.VC.db | ||
*.VC.opendb | ||
|
||
# Precompiled Assets | ||
SourceArt/**/*.png | ||
SourceArt/**/*.tga | ||
|
||
# Binary Files | ||
Binaries/* | ||
Plugins/*/Binaries/* | ||
|
||
# Builds | ||
Build/* | ||
|
||
# Whitelist PakBlacklist-<BuildConfiguration>.txt files | ||
!Build/*/ | ||
Build/*/** | ||
!Build/*/PakBlacklist*.txt | ||
|
||
# Don't ignore icon files in Build | ||
!Build/**/*.ico | ||
|
||
# Built data for maps | ||
*_BuiltData.uasset | ||
|
||
# Configuration files generated by the Editor | ||
Saved/* | ||
|
||
# Compiled source files for the engine to use | ||
Intermediate/* | ||
Plugins/*/Intermediate/* | ||
|
||
# Cache files for the editor to use | ||
DerivedDataCache/* |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
|
||
|
||
[/Script/EngineSettings.GameMapsSettings] | ||
GameDefaultMap=/Game/Map_Example.Map_Example | ||
EditorStartupMap=/Game/Map_Example.Map_Example | ||
|
||
[/Script/HardwareTargeting.HardwareTargetingSettings] | ||
TargetedHardwareClass=Desktop | ||
AppliedTargetedHardwareClass=Desktop | ||
DefaultGraphicsPerformance=Maximum | ||
AppliedDefaultGraphicsPerformance=Maximum | ||
|
||
[/Script/WindowsTargetPlatform.WindowsTargetSettings] | ||
DefaultGraphicsRHI=DefaultGraphicsRHI_DX12 | ||
|
||
[/Script/Engine.RendererSettings] | ||
r.GenerateMeshDistanceFields=True | ||
r.DynamicGlobalIlluminationMethod=1 | ||
r.ReflectionMethod=1 | ||
r.Shadow.Virtual.Enable=1 | ||
|
||
[/Script/WorldPartitionEditor.WorldPartitionEditorSettings] | ||
CommandletClass=Class'/Script/UnrealEd.WorldPartitionConvertCommandlet' | ||
|
||
[/Script/Engine.Engine] | ||
+ActiveGameNameRedirects=(OldGameName="TP_Blank",NewGameName="/Script/SlateExample") | ||
+ActiveGameNameRedirects=(OldGameName="/Script/TP_Blank",NewGameName="/Script/SlateExample") | ||
+ActiveClassRedirects=(OldClassName="TP_BlankGameModeBase",NewClassName="SlateExampleGameModeBase") | ||
|
||
[/Script/AndroidFileServerEditor.AndroidFileServerRuntimeSettings] | ||
bEnablePlugin=True | ||
bAllowNetworkConnection=True | ||
SecurityToken=AA8AA99B49693C61D3A94D96F374948B | ||
bIncludeInShipping=False | ||
bAllowExternalStartInShipping=False | ||
bCompileAFSProject=False | ||
bUseCompression=False | ||
bLogFiles=False | ||
bReportStats=False | ||
ConnectionType=USBOnly | ||
bUseManualIPAddress=False | ||
ManualIPAddress= | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
|
||
[/Script/EngineSettings.GeneralProjectSettings] | ||
ProjectID=4AEF21424235771A92646F8AA84E72D9 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
|
||
|
||
[/Script/HoloLensPlatformEditor.HoloLensTargetSettings] | ||
bBuildForEmulation=False | ||
bBuildForDevice=True | ||
bUseNameForLogo=True | ||
bBuildForRetailWindowsStore=False | ||
bAutoIncrementVersion=False | ||
bShouldCreateAppInstaller=False | ||
AppInstallerInstallationURL= | ||
HoursBetweenUpdateChecks=0 | ||
bEnablePIXProfiling=False | ||
TileBackgroundColor=(B=64,G=0,R=0,A=255) | ||
SplashScreenBackgroundColor=(B=64,G=0,R=0,A=255) | ||
+PerCultureResources=(CultureId="",Strings=(PackageDisplayName="",PublisherDisplayName="",PackageDescription="",ApplicationDisplayName="",ApplicationDescription=""),Images=()) | ||
TargetDeviceFamily=Windows.Holographic | ||
MinimumPlatformVersion= | ||
MaximumPlatformVersionTested=10.0.18362.0 | ||
MaxTrianglesPerCubicMeter=500.000000 | ||
SpatialMeshingVolumeSize=20.000000 | ||
CompilerVersion=Default | ||
Windows10SDKVersion=10.0.18362.0 | ||
+CapabilityList=internetClientServer | ||
+CapabilityList=privateNetworkClientServer | ||
+Uap2CapabilityList=spatialPerception | ||
bSetDefaultCapabilities=False | ||
SpatializationPlugin= | ||
ReverbPlugin= | ||
OcclusionPlugin= | ||
SoundCueCookQualityIndex=-1 | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"FileVersion": 3, | ||
"EngineAssociation": "5.0", | ||
"Category": "", | ||
"Description": "", | ||
"Modules": [ | ||
{ | ||
"Name": "SlateExample", | ||
"Type": "Runtime", | ||
"LoadingPhase": "Default" | ||
} | ||
], | ||
"Plugins": [ | ||
{ | ||
"Name": "ModelingToolsEditorMode", | ||
"Enabled": true, | ||
"TargetAllowList": [ | ||
"Editor" | ||
] | ||
} | ||
] | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// Copyright Epic Games, Inc. All Rights Reserved. | ||
|
||
using UnrealBuildTool; | ||
using System.Collections.Generic; | ||
|
||
public class SlateExampleTarget : TargetRules | ||
{ | ||
public SlateExampleTarget( TargetInfo Target) : base(Target) | ||
{ | ||
Type = TargetType.Game; | ||
DefaultBuildSettings = BuildSettingsVersion.V2; | ||
ExtraModuleNames.AddRange( new string[] { "SlateExample" } ); | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#include "BUIHUD.h" | ||
#include "SExampleWidget.h" | ||
#include "Widgets/SViewport.h" | ||
|
||
ABUIHUD::ABUIHUD(const FObjectInitializer& ObjectInitializer) | ||
: Super(ObjectInitializer) | ||
{ | ||
} | ||
|
||
void ABUIHUD::BeginPlay() | ||
{ | ||
Super::BeginPlay(); | ||
|
||
MyWidget = SNew(SExampleWidget) | ||
.LabelText(NSLOCTEXT("Example","OhNo","OhNo")); | ||
|
||
UGameViewportClient* ViewportClient = GetWorld()->GetGameViewport(); | ||
ViewportClient->AddViewportWidgetContent(MyWidget.ToSharedRef()); | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// Fill out your copyright notice in the Description page of Project Settings. | ||
|
||
#pragma once | ||
|
||
#include "CoreMinimal.h" | ||
#include "GameFramework/HUD.h" | ||
#include "BUIHUD.generated.h" | ||
|
||
UCLASS() | ||
class ABUIHUD : public AHUD | ||
{ | ||
GENERATED_BODY() | ||
public: | ||
ABUIHUD(const FObjectInitializer& ObjectInitializer); | ||
//virtual void ShowHUD() override; | ||
//virtual void DrawHUD() override; | ||
protected: | ||
virtual void BeginPlay() override; | ||
|
||
TSharedPtr<class SExampleWidget> MyWidget; | ||
}; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
// Fill out your copyright notice in the Description page of Project Settings. | ||
|
||
|
||
#include "BUIPlayerController.h" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#pragma once | ||
|
||
#include "CoreMinimal.h" | ||
#include "BUIPlayerController.generated.h" | ||
|
||
UCLASS() | ||
class ABUIPlayerController : public APlayerController | ||
{ | ||
GENERATED_BODY() | ||
}; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#include "SExampleWidget.h" | ||
#include "SlateOptMacros.h" | ||
|
||
BEGIN_SLATE_FUNCTION_BUILD_OPTIMIZATION | ||
|
||
void SExampleWidget::Construct(const FArguments& InArgs) | ||
{ | ||
ChildSlot | ||
[ | ||
SNew(STextBlock) | ||
//.Text(NSLOCTEXT("Example", "HelloWorld", "Hello world!")) | ||
.Text(InArgs._LabelText) | ||
]; | ||
} | ||
|
||
END_SLATE_FUNCTION_BUILD_OPTIMIZATION |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#pragma once | ||
|
||
#include "CoreMinimal.h" | ||
#include "Widgets/SCompoundWidget.h" | ||
|
||
class SExampleWidget : public SCompoundWidget | ||
{ | ||
public: | ||
SLATE_BEGIN_ARGS(SExampleWidget) | ||
// : _Text(FText::GetEmpty()) // optional | ||
{} // | ||
SLATE_ARGUMENT(FText, LabelText) | ||
SLATE_END_ARGS() | ||
|
||
void Construct(const FArguments& InArgs); | ||
protected: | ||
FText LabelText; | ||
}; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// Copyright Epic Games, Inc. All Rights Reserved. | ||
|
||
using UnrealBuildTool; | ||
|
||
public class SlateExample : ModuleRules | ||
{ | ||
public SlateExample(ReadOnlyTargetRules Target) : base(Target) | ||
{ | ||
PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs; | ||
|
||
PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore" }); | ||
|
||
PrivateDependencyModuleNames.AddRange(new string[] { "Slate", "SlateCore", "UMG" }); | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// Copyright Epic Games, Inc. All Rights Reserved. | ||
|
||
#include "SlateExample.h" | ||
#include "Modules/ModuleManager.h" | ||
|
||
IMPLEMENT_PRIMARY_GAME_MODULE( FDefaultGameModuleImpl, SlateExample, "SlateExample" ); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// Copyright Epic Games, Inc. All Rights Reserved. | ||
|
||
#pragma once | ||
|
||
#include "CoreMinimal.h" | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#include "SlateExampleGameModeBase.h" | ||
|
||
#include "BUIHUD.h" | ||
|
||
ASlateExampleGameModeBase::ASlateExampleGameModeBase(const FObjectInitializer& ObjectInitializer) | ||
: Super(ObjectInitializer) | ||
{ | ||
HUDClass = ABUIHUD::StaticClass(); | ||
} | ||
|
||
void ASlateExampleGameModeBase::BeginPlay() | ||
{ | ||
Super::BeginPlay(); | ||
|
||
} |