Files
UnrealEngine/Engine/Source/Developer/SharedSettingsWidgets/Public/SHyperlinkLaunchURL.h
2025-05-18 13:04:45 +08:00

33 lines
738 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "Widgets/DeclarativeSyntaxSupport.h"
#include "Widgets/SCompoundWidget.h"
/////////////////////////////////////////////////////
// SHyperlinkLaunchURL
// This widget is a hyperlink that launches an external URL when clicked
class SHAREDSETTINGSWIDGETS_API SHyperlinkLaunchURL : public SCompoundWidget
{
SLATE_BEGIN_ARGS(SHyperlinkLaunchURL)
{}
/** If set, this text will be used for the display string of the hyperlink */
SLATE_ATTRIBUTE(FText, Text)
SLATE_END_ARGS()
public:
void Construct(const FArguments& InArgs, const FString& InDestinationURL);
protected:
void OnNavigate();
protected:
FString DestinationURL;
};