Go to the source code of this file.
|
void | ScriptInvokerTooltipMethod (SCR_ScriptedWidgetTooltip tooltipClass, Widget tooltipWidget, Widget hoverWidget, SCR_ScriptedWidgetTooltipPreset preset, string tag) |
|
SCR_ScriptedWidgetTooltip ScriptedWidgetTooltip | BaseContainerProps (configRoot :true) |
| Configuration for a Tooltip. More...
|
|
override void | Show (WorkspaceWidget pWorkspace, Widget pToolTipWidget, float desiredPosX, float desiredPosY) |
|
override void | Hide (WorkspaceWidget pWorkspace, Widget pToolTipWidget) |
|
protected void | Update () |
| -— PROTECTED -— More...
|
|
protected void | OnHide () |
|
protected void | OnMenuChange (ChimeraMenuBase menu) |
|
protected void | OnTabChange (ChimeraMenuBase menu) |
|
protected void | Clear () |
|
protected void | InitContentPosition () |
|
protected void | InitContents () |
|
void | UpdatePosition (bool followTarget=true, bool animate=true, bool force=false) |
| -— PUBLIC -— More...
|
|
bool | SetMessage (string message) |
|
bool | ResetMessage () |
|
bool | SetMessageColor (Color color) |
|
string | GetMessage () |
|
string | GetDefaultMessage () |
|
string | GetTag () |
|
bool | IsVisible () |
|
void | ForceHidden () |
|
Widget | GetContentWidget () |
|
Widget | GetTooltipWidget () |
|
Widget | GetHoverWidget () |
|
Widget | GetContentWrapper () |
| Override to change in which widget the content layout gets placed. More...
|
|
SCR_ScriptedWidgetTooltip ScriptedWidgetTooltip | SCR_BaseContainerCustomTitleField ("m_sTag") |
|
SCR_ScriptedWidgetTooltipPreset | FindPreset (string tag) |
| Finds a preset by tag. More...
|
|
◆ ScriptInvokerTooltip
◆ ScriptInvokerTooltipMethod
◆ SCR_ETooltipAlignmentHorizontal
◆ BaseContainerProps()
Configuration for a Tooltip.
Requires DPI scaled values
Returns true if the desired position causes the Tooltip to overflow, and prevents it by inverting the alignment. The tooltip is forcefully anchored to 0, 0 on Show(), so we just need to work with alignment
Definition at line 524 of file SCR_ScriptedWidgetTooltip.c.
◆ Clear()
protected void BaseContainerProps::Clear |
( |
| ) |
|
◆ FindPreset()
SCR_ScriptedWidgetTooltipPreset BaseContainerProps::FindPreset |
( |
string |
tag | ) |
|
◆ ForceHidden()
void BaseContainerProps::ForceHidden |
( |
| ) |
|
◆ GetContentWidget()
Widget BaseContainerProps::GetContentWidget |
( |
| ) |
|
◆ GetContentWrapper()
Widget BaseContainerProps::GetContentWrapper |
( |
| ) |
|
◆ GetDefaultMessage()
string BaseContainerProps::GetDefaultMessage |
( |
| ) |
|
◆ GetHoverWidget()
Widget BaseContainerProps::GetHoverWidget |
( |
| ) |
|
◆ GetMessage()
string BaseContainerProps::GetMessage |
( |
| ) |
|
◆ GetTag()
string BaseContainerProps::GetTag |
( |
| ) |
|
◆ GetTooltipWidget()
Widget BaseContainerProps::GetTooltipWidget |
( |
| ) |
|
◆ Hide()
override void BaseContainerProps::Hide |
( |
WorkspaceWidget |
pWorkspace, |
|
|
Widget |
pToolTipWidget |
|
) |
| |
◆ InitContentPosition()
protected void BaseContainerProps::InitContentPosition |
( |
| ) |
|
◆ InitContents()
protected void BaseContainerProps::InitContents |
( |
| ) |
|
◆ IsVisible()
bool BaseContainerProps::IsVisible |
( |
| ) |
|
◆ OnHide()
protected void BaseContainerProps::OnHide |
( |
| ) |
|
◆ OnMenuChange()
◆ OnTabChange()
◆ ResetMessage()
bool BaseContainerProps::ResetMessage |
( |
| ) |
|
◆ SCR_BaseContainerCustomTitleField()
Calculate desired position and alignment Returns false if the tooltip does not need to be moved
Definition at line 405 of file SCR_ScriptedWidgetTooltip.c.
◆ ScriptInvokerTooltipMethod()
◆ SetMessage()
bool BaseContainerProps::SetMessage |
( |
string |
message | ) |
|
◆ SetMessageColor()
bool BaseContainerProps::SetMessageColor |
( |
Color |
color | ) |
|
◆ Show()
override void BaseContainerProps::Show |
( |
WorkspaceWidget |
pWorkspace, |
|
|
Widget |
pToolTipWidget, |
|
|
float |
desiredPosX, |
|
|
float |
desiredPosY |
|
) |
| |
◆ UpdatePosition()
void BaseContainerProps::UpdatePosition |
( |
bool |
followTarget = true , |
|
|
bool |
animate = true , |
|
|
bool |
force = false |
|
) |
| |
◆ ABOVE
◆ BOTTOM
◆ CENTER
◆ CENTER_LEFT
◆ CURSOR
◆ DISTANCE_THRESHOLD
const private float DISTANCE_THRESHOLD = 0.001 |
◆ HOVERED_WIDGET
◆ INVERT
◆ LEFT
◆ m_aPresets
ref array<ref SCR_ScriptedWidgetTooltipPreset> m_aPresets |
◆ m_fTargetPosition
protected float m_fTargetPosition[2] |
◆ m_Preset
protected ref SCR_ScriptedWidgetTooltipPreset m_Preset |
◆ m_sPresetsConfig
protected ResourceName m_sPresetsConfig |
◆ m_sPresetTag
protected string m_sPresetTag |
◆ m_wHoverWidget
protected Widget m_wHoverWidget |
◆ m_wMessage
protected RichTextWidget m_wMessage |
◆ m_wTooltipProxy
protected Widget m_wTooltipProxy |
◆ m_wWorkspace
protected WorkspaceWidget m_wWorkspace |
◆ NONE
◆ RIGHT
◆ TOP
◆ WIDGET_MESSAGE
const protected string WIDGET_MESSAGE = "Message" |