17 protected ref SCR_ScriptedWidgetTooltipPreset
m_Preset;
43 static Widget
CreateTooltip(notnull SCR_ScriptedWidgetTooltipPreset preset, notnull Widget hoverWidget)
50 return ent.Internal_CreateTooltip(preset, hoverWidget);
57 static void DeleteTooltip()
64 ent.Internal_DeleteTooltip();
78 return ent.m_wTooltip;
103 SetEventMask(EntityEvent.FRAME);
116 protected override void EOnFrame(IEntity owner,
float timeSlice)
129 ClearEventMask(EntityEvent.FRAME);
136 ClearEventMask(EntityEvent.FRAME);
144 float tooltipSizeX, tooltipSizeY;
145 m_wTooltip.GetScreenSize(tooltipSizeX, tooltipSizeY);
160 vector goalPosition, goalAlignment, goalAlpha;
165 FrameSlot.SetAlignment(
m_wTooltip, goalAlignment[0], goalAlignment[1]);
166 FrameSlot.SetPos(
m_wTooltip, goalPosition[0], goalPosition[1]);
173 SetFlags(EntityFlags.NO_TREE | EntityFlags.NO_LINK);