添加模式切换模式UI
This commit is contained in:
parent
dac6c48d38
commit
76cb4541b8
@ -21,6 +21,38 @@
|
||||
"BuildId": "37670630"
|
||||
},
|
||||
"BuildProducts": [
|
||||
{
|
||||
"Path": "$(ProjectDir)/Binaries/Win64/UnrealEditor-ProjectFish.dll",
|
||||
"Type": "DynamicLibrary"
|
||||
},
|
||||
{
|
||||
"Path": "$(ProjectDir)/Binaries/Win64/UnrealEditor-ProjectFish.pdb",
|
||||
"Type": "SymbolFile"
|
||||
},
|
||||
{
|
||||
"Path": "$(ProjectDir)/Binaries/Win64/UnrealEditor-ProjectFishEditor.dll",
|
||||
"Type": "DynamicLibrary"
|
||||
},
|
||||
{
|
||||
"Path": "$(ProjectDir)/Binaries/Win64/UnrealEditor-ProjectFishEditor.pdb",
|
||||
"Type": "SymbolFile"
|
||||
},
|
||||
{
|
||||
"Path": "$(ProjectDir)/Binaries/Win64/UnrealEditor.modules",
|
||||
"Type": "RequiredResource"
|
||||
},
|
||||
{
|
||||
"Path": "$(ProjectDir)/Plugins/DeskMode/Binaries/Win64/UnrealEditor-DeskMode.dll",
|
||||
"Type": "DynamicLibrary"
|
||||
},
|
||||
{
|
||||
"Path": "$(ProjectDir)/Plugins/DeskMode/Binaries/Win64/UnrealEditor-DeskMode.pdb",
|
||||
"Type": "SymbolFile"
|
||||
},
|
||||
{
|
||||
"Path": "$(ProjectDir)/Plugins/DeskMode/Binaries/Win64/UnrealEditor.modules",
|
||||
"Type": "RequiredResource"
|
||||
},
|
||||
{
|
||||
"Path": "$(EngineDir)/Binaries/ThirdParty/USD/UsdResources/Win64/plugins/ar/resources/plugInfo.json",
|
||||
"Type": "RequiredResource"
|
||||
@ -8008,41 +8040,17 @@
|
||||
{
|
||||
"Path": "$(EngineDir)/Plugins/XGEController/Binaries/Win64/UnrealEditor.modules",
|
||||
"Type": "RequiredResource"
|
||||
},
|
||||
{
|
||||
"Path": "$(ProjectDir)/Binaries/Win64/UnrealEditor-ProjectFish.dll",
|
||||
"Type": "DynamicLibrary"
|
||||
},
|
||||
{
|
||||
"Path": "$(ProjectDir)/Binaries/Win64/UnrealEditor-ProjectFish.pdb",
|
||||
"Type": "SymbolFile"
|
||||
},
|
||||
{
|
||||
"Path": "$(ProjectDir)/Binaries/Win64/UnrealEditor-ProjectFishEditor.dll",
|
||||
"Type": "DynamicLibrary"
|
||||
},
|
||||
{
|
||||
"Path": "$(ProjectDir)/Binaries/Win64/UnrealEditor-ProjectFishEditor.pdb",
|
||||
"Type": "SymbolFile"
|
||||
},
|
||||
{
|
||||
"Path": "$(ProjectDir)/Binaries/Win64/UnrealEditor.modules",
|
||||
"Type": "RequiredResource"
|
||||
},
|
||||
{
|
||||
"Path": "$(ProjectDir)/Plugins/DeskMode/Binaries/Win64/UnrealEditor-DeskMode.dll",
|
||||
"Type": "DynamicLibrary"
|
||||
},
|
||||
{
|
||||
"Path": "$(ProjectDir)/Plugins/DeskMode/Binaries/Win64/UnrealEditor-DeskMode.pdb",
|
||||
"Type": "SymbolFile"
|
||||
},
|
||||
{
|
||||
"Path": "$(ProjectDir)/Plugins/DeskMode/Binaries/Win64/UnrealEditor.modules",
|
||||
"Type": "RequiredResource"
|
||||
}
|
||||
],
|
||||
"RuntimeDependencies": [
|
||||
{
|
||||
"Path": "$(ProjectDir)/Plugins/DeskMode/DeskMode.uplugin",
|
||||
"Type": "UFS"
|
||||
},
|
||||
{
|
||||
"Path": "$(ProjectDir)/ProjectFish.uproject",
|
||||
"Type": "UFS"
|
||||
},
|
||||
{
|
||||
"Path": "$(EngineDir)/Binaries/ThirdParty/DbgHelp/dbghelp.dll",
|
||||
"Type": "NonUFS"
|
||||
@ -33770,14 +33778,6 @@
|
||||
{
|
||||
"Path": "$(EngineDir)/Plugins/XGEController/XGEController.uplugin",
|
||||
"Type": "UFS"
|
||||
},
|
||||
{
|
||||
"Path": "$(ProjectDir)/Plugins/DeskMode/DeskMode.uplugin",
|
||||
"Type": "UFS"
|
||||
},
|
||||
{
|
||||
"Path": "$(ProjectDir)/ProjectFish.uproject",
|
||||
"Type": "UFS"
|
||||
}
|
||||
],
|
||||
"BuildPlugins": [
|
||||
|
||||
BIN
ProjectFish/Content/Gameplay/DeskMode/BP_DeskModeGameMode.uasset
Normal file
BIN
ProjectFish/Content/Gameplay/DeskMode/BP_DeskModeGameMode.uasset
Normal file
Binary file not shown.
Binary file not shown.
BIN
ProjectFish/Content/UI/DeskMode/UMG_DeskMode.uasset
Normal file
BIN
ProjectFish/Content/UI/DeskMode/UMG_DeskMode.uasset
Normal file
Binary file not shown.
Binary file not shown.
@ -208,7 +208,7 @@ void UWindowTransparency::SetWIndowsTopmost(bool bSetWindowTopmost)
|
||||
void UWindowTransparency::Tick(float DeltaTime)
|
||||
{
|
||||
|
||||
if (!bIsClickThroughStateOS)
|
||||
if (!bIsClickThroughStateOS && !bIsMouseOverOpaqueAreaLogic)
|
||||
{
|
||||
return;
|
||||
}
|
||||
@ -280,17 +280,24 @@ FVector2D UWindowTransparency::GetMousePositionInWindow(bool& bMousePosSuccess)
|
||||
|
||||
bool UWindowTransparency::SimulateGameRaycastUnderMouse(FVector2D MousePos)
|
||||
{
|
||||
|
||||
UWorld* World = GetWorld();
|
||||
APlayerController* PC = nullptr;
|
||||
if (World)
|
||||
if (GEngine && GEngine->GameViewport)
|
||||
{
|
||||
PC = Cast<APlayerController>(GetWorld()->GetFirstLocalPlayerFromController());
|
||||
UWorld* World = GEngine->GameViewport->GetWorld();
|
||||
if (World)
|
||||
{
|
||||
PC = World->GetFirstPlayerController();
|
||||
}
|
||||
}
|
||||
if (!PC)
|
||||
{
|
||||
|
||||
// if (World)
|
||||
// {
|
||||
// PC = Cast<APlayerController>(GetWorld()->GetFirstLocalPlayerFromController());
|
||||
// }
|
||||
if (!PC)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
//检测3D世界是否有碰撞
|
||||
FHitResult HitResult3D;
|
||||
FCollisionQueryParams CollisionParams3D(SCENE_QUERY_STAT(WindowTransparencyRaycast3D), true);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user