LEAP Documentation 40220
Documentation for the LEAP project
BasicUserWidget.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"
6#include "Blueprint/UserWidget.h"
7#include "BasicUserWidget.generated.h"
8
12UCLASS()
13class PROJECTX_API UBasicUserWidget : public UUserWidget
14{
15 GENERATED_UCLASS_BODY()
16
17protected:
18 virtual void NativeConstruct() override;
19 virtual void NativeDestruct() override;
20 virtual void SetVisibility(ESlateVisibility NewVisibility) override;
21
22 virtual void UpdateWorldStatus();
23
24 virtual void WorldReady();
25
26 UFUNCTION(BlueprintImplementableEvent, BlueprintCosmetic, Category = "User Interface")
27 void OnWorldReady();
28
29protected:
30 UPROPERTY()
31 FTimerHandle WorldStatusTimer;
32
33 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category="User Interface")
34 bool bWaitForPawn = true;
35 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "User Interface")
36 bool bUseVisibilitySemaphore = false;
37
38private:
39 bool bWasConstructedAlready = false;
40 bool bRanOnWorldReady = false;
41 int32 VisibilitySemaphore = 0;
42};
Definition: BasicUserWidget.h:14