ArticyXImporter
ArticyXImporter for Unreal Engine
Loading...
Searching...
No Matches
SArticyObjectToolTip Class Reference

#include <SArticyObjectToolTip.h>

Inheritance diagram for SArticyObjectToolTip:

Public Member Functions

 SLATE_BEGIN_ARGS (SArticyObjectToolTip)
void Construct (const FArguments &InArgs)
virtual void OnOpening () override
virtual void OnClosed () override

Protected Member Functions

void UpdateWidget ()
TSharedRef< SWidget > CreateTooltipWidget (FText NameText, TSharedRef< SVerticalBox > InfoBox)
TSharedRef< SWidget > CreateToolTipContent ()
TSharedRef< SWidget > CreateContentForEmpty ()
void AddToToolTipInfoBox (const TSharedRef< SVerticalBox > &InfoBox, const FText &Key, const FText &Value, bool bImportant) const

Protected Attributes

TAttribute< FArticyIdArticyIdAttribute
FArticyId CachedArticyId
TWeakObjectPtr< UArticyObjectCachedArticyObject
FSlateBrush TooltipBrush

Detailed Description

A custom tooltip widget for displaying details about an Articy object.

Member Function Documentation

◆ AddToToolTipInfoBox()

void SArticyObjectToolTip::AddToToolTipInfoBox ( const TSharedRef< SVerticalBox > & InfoBox,
const FText & Key,
const FText & Value,
bool bImportant ) const
protected

Adds key-value type content to the tooltip info box.

Parameters
InfoBoxThe info box to add the content to.
KeyThe key text.
ValueThe value text.
bImportantWhether the content is considered important.

◆ Construct()

void SArticyObjectToolTip::Construct ( const FArguments & InArgs)

Constructs the tooltip widget.

Parameters
InArgsThe declaration data for this widget.

◆ CreateContentForEmpty()

TSharedRef< SWidget > SArticyObjectToolTip::CreateContentForEmpty ( )
protected

Creates the content for an empty or invalid Articy object tooltip.

Returns
The constructed content widget.

◆ CreateToolTipContent()

TSharedRef< SWidget > SArticyObjectToolTip::CreateToolTipContent ( )
protected

Creates the content for a valid Articy object tooltip.

Returns
The constructed content widget.

◆ CreateTooltipWidget()

TSharedRef< SWidget > SArticyObjectToolTip::CreateTooltipWidget ( FText NameText,
TSharedRef< SVerticalBox > InfoBox )
protected

Creates the tooltip widget with the specified content.

Parameters
NameTextThe name text to display in the tooltip.
InfoBoxThe information box containing additional details.
Returns
The constructed tooltip widget.

◆ OnClosed()

void SArticyObjectToolTip::OnClosed ( )
overridevirtual

Called when the tooltip is closed.

◆ OnOpening()

void SArticyObjectToolTip::OnOpening ( )
overridevirtual

Called when the tooltip is opening.

◆ UpdateWidget()

void SArticyObjectToolTip::UpdateWidget ( )
protected

Updates the tooltip widget's content.

Member Data Documentation

◆ ArticyIdAttribute

TAttribute<FArticyId> SArticyObjectToolTip::ArticyIdAttribute
protected

The attribute containing the Articy ID to display.

◆ CachedArticyId

FArticyId SArticyObjectToolTip::CachedArticyId
mutableprotected

Cached Articy ID for the current object.

◆ CachedArticyObject

TWeakObjectPtr<UArticyObject> SArticyObjectToolTip::CachedArticyObject
mutableprotected

Cached Articy object pointer.

◆ TooltipBrush

FSlateBrush SArticyObjectToolTip::TooltipBrush
protected

Brush for displaying the tooltip image.


The documentation for this class was generated from the following files:
  • Source/ArticyEditor/Public/Slate/AssetPicker/SArticyObjectToolTip.h
  • Source/ArticyEditor/Private/Slate/AssetPicker/SArticyObjectToolTip.cpp