Skip to content
Snippets Groups Projects
Commit 74cc82fe authored by Peter Gschladt's avatar Peter Gschladt
Browse files

Merge branch 'feature/doortooltip' into 'feature/doortooltip'

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

See merge request !9
parents 1edab4f7 9974b528
No related branches found
No related tags found
1 merge request!9feat(cave): added tooltip on how to cycle door modes on primary node
Pipeline #577145 canceled
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