Skip to content
Snippets Groups Projects
Commit bf127da3 authored by Gschladt's avatar Gschladt
Browse files

feat(cave): added tooltip on how to cycle door modes on primary node

parent 1edab4f7
No related branches found
No related tags found
2 merge requests!11Feature/doortooltip,!9feat(cave): added tooltip on how to cycle door modes on primary node
Pipeline #568373 failed
No preview for this file type
...@@ -217,6 +217,12 @@ void ACAVEOverlayController::BeginPlay() ...@@ -217,6 +217,12 @@ void ACAVEOverlayController::BeginPlay()
// Set Text to "" until someone presses the key for the first time // Set Text to "" until someone presses the key for the first time
Overlay->CornerText->SetText(FText::FromString("")); Overlay->CornerText->SetText(FText::FromString(""));
//Make tooltip visible on primary node only
if (ScreenType == SCREEN_PRIMARY)
{
Overlay->Tooltip->SetVisibility(ESlateVisibility::Visible);
}
if (!SignStaticMesh) if (!SignStaticMesh)
{ {
UE_LOGFMT(LogCAVEOverlay, Error, "SignStaticMesh not set in CaveOverlayController!"); UE_LOGFMT(LogCAVEOverlay, Error, "SignStaticMesh not set in CaveOverlayController!");
......
...@@ -22,6 +22,9 @@ public: ...@@ -22,6 +22,9 @@ public:
UPROPERTY(BlueprintReadWrite, meta = (BindWidget)) UPROPERTY(BlueprintReadWrite, meta = (BindWidget))
UTextBlock* CornerText; UTextBlock* CornerText;
UPROPERTY(BlueprintReadWrite, meta = (BindWidget))
UTextBlock* Tooltip;
UPROPERTY(BlueprintReadWrite, meta = (BindWidget)) UPROPERTY(BlueprintReadWrite, meta = (BindWidget))
UBorder* BlackBox; UBorder* BlackBox;
}; };
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment