LEAP Documentation 40220
Documentation for the LEAP project
DeployScreenWidget.h
Go to the documentation of this file.
1// Copyright Blue Isle Studios Inc 2018. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
7#include "DeployScreenWidget.generated.h"
8
10
11UCLASS()
12class PROJECTX_API UDeployScreenWidget : public UAdvancedUserWidget
13{
14 GENERATED_BODY()
15
16public:
17 UFUNCTION(BlueprintImplementableEvent, Category = PlayerController, DisplayName = "On Player Deployed", meta = (ScriptName = "OnPlayerDeployed"))
18 void K2_OnPlayerDeployed();
19 bool HasDeployedOnce() const {return !bFirstDeploy;}
20 virtual AProjectXMapCamera* GetMapCamera() const { return MapCamera.IsValid() ? MapCamera.Get() : nullptr; }
21
22protected:
23 virtual void OnWidgetVisible_Implementation(const UObject* ContextObject = nullptr) override;
24 virtual void CollapseWidget_Implementation() override;
25 virtual bool CanDismissWidget(EWidgetDismissType Type) const override;
26
27
28 void OnFirstTimeDeployScreenShown();
29
30 UPROPERTY(EditDefaultsOnly, Category = "VO")
31 FString FirstDeployVoice = "VO_FirstDeployScreen";
32
33 TWeakObjectPtr<AProjectXMapCamera> MapCamera = nullptr;
34 bool bFirstDeploy = true;
35
36};
EWidgetDismissType
Definition: AdvancedUserWidget.h:14
Definition: ProjectXMapCamera.h:11
Definition: AdvancedUserWidget.h:30
Definition: DeployScreenWidget.h:13
virtual AProjectXMapCamera * GetMapCamera() const
Definition: DeployScreenWidget.h:20