Inherits AZ::Component, UiTooltipDisplayBus::Handler, UiInitializationBus::Handler, and IUiAnimationListener.
|
enum class | State {
Hiding
, Hidden
, DelayBeforeShow
, Showing
,
Shown
} |
|
using | EntityComboBoxVec = AZStd::vector< AZStd::pair< AZ::EntityId, AZStd::string > > |
|
using | SequenceComboBoxVec = AZStd::vector< AZStd::string > |
|
enum | EUiAnimationEvent { eUiAnimationEvent_Started = 0
, eUiAnimationEvent_Stopped
, eUiAnimationEvent_Aborted
, eUiAnimationEvent_Updated
} |
|
|
| AZ_COMPONENT (UiTooltipDisplayComponent, LyShine::UiTooltipDisplayComponentUuid, AZ::Component) |
|
TriggerMode | GetTriggerMode () override |
|
void | SetTriggerMode (TriggerMode triggerMode) override |
|
bool | GetAutoPosition () override |
|
void | SetAutoPosition (bool autoPosition) override |
|
AutoPositionMode | GetAutoPositionMode () override |
|
void | SetAutoPositionMode (AutoPositionMode autoPositionMode) override |
|
const AZ::Vector2 & | GetOffset () override |
|
void | SetOffset (const AZ::Vector2 &offset) override |
|
bool | GetAutoSize () override |
|
void | SetAutoSize (bool autoSize) override |
|
AZ::EntityId | GetTextEntity () override |
|
void | SetTextEntity (AZ::EntityId textEntity) override |
|
float | GetDelayTime () override |
|
void | SetDelayTime (float delayTime) override |
|
float | GetDisplayTime () override |
|
void | SetDisplayTime (float displayTime) override |
|
void | PrepareToShow (AZ::EntityId tooltipElement) override |
|
void | Hide () override |
|
void | Update () override |
|
void | InGamePostActivate () override |
|
void | OnUiAnimationEvent (EUiAnimationEvent uiAnimationEvent, IUiAnimSequence *pAnimSequence) override |
| IUiAnimationListener.
|
|
State | GetState () |
|
virtual void | OnUiTrackEvent (AZStd::string eventName, AZStd::string valueName, [[maybe_unused]] IUiAnimSequence *pAnimSequence) |
|
|
static void | GetProvidedServices (AZ::ComponentDescriptor::DependencyArrayType &provided) |
|
static void | GetIncompatibleServices (AZ::ComponentDescriptor::DependencyArrayType &incompatible) |
|
static void | GetRequiredServices (AZ::ComponentDescriptor::DependencyArrayType &required) |
|
static void | Reflect (AZ::ReflectContext *context) |
|
|
TriggerMode | m_triggerMode |
|
bool | m_autoPosition |
|
AutoPositionMode | m_autoPositionMode |
|
AZ::Vector2 | m_offset |
|
AZ::EntityId | m_textEntity |
|
bool | m_autoSize |
|
float | m_delayTime |
|
float | m_displayTime |
|
AZStd::string | m_showSequenceName |
|
AZStd::string | m_hideSequenceName |
|
State | m_state |
|
float | m_stateStartTime |
|
float | m_curDelayTime |
|
float | m_timeSinceLastShown |
|
AZ::EntityId | m_tooltipElement |
|
float | m_maxWrapTextWidth |
|
IUiAnimSequence * | m_showSequence |
|
IUiAnimSequence * | m_hideSequence |
|
bool | m_listeningForAnimationEvents = false |
|
◆ AutoResize()
void UiTooltipDisplayComponent::AutoResize |
( |
| ) |
|
|
protected |
Resize the display element so that its child text element is the same size as the text string. The text element's anchors are assumed to be set up so that the text element grows/shrinks with its parent.
◆ CheckBoundsAndChangeYPosition()
void UiTooltipDisplayComponent::CheckBoundsAndChangeYPosition |
( |
const UiTransformInterface::Rect & |
boundsRect, |
|
|
float |
yPoint, |
|
|
float |
yOffsetFromPoint |
|
) |
| |
|
protected |
Change the vertical position of the display element if it exceeds a bounding rect. If the element exceeds the top of the rect, move it so that its top is a certain distance below the specified point. If the element exceeds the bottom of the rect, move it so that its bottom is a certain distance above the specified point.
The documentation for this class was generated from the following file:
- Gems/LyShine/Code/Source/UiTooltipDisplayComponent.h