MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / Update

Method Update

Source/Engine/UI/GUI/Tooltip.cs:229–247  ·  view source on GitHub ↗

(float deltaTime)

Source from the content-addressed store, hash-verified

227
228 /// <inheritdoc />
229 public override void Update(float deltaTime)
230 {
231 var mousePos = Input.MouseScreenPosition;
232 var location = _showTarget.PointFromScreen(mousePos);
233 if (!_showTarget.OnTestTooltipOverControl(ref location))
234 {
235 // Auto hide if mouse leaves control area
236 Hide();
237 }
238 else
239 {
240 // Position tooltip when mouse moves
241 WrapPosition(ref mousePos, 10);
242 if (_window)
243 _window.Position = mousePos + TooltipOffset;
244 }
245
246 base.Update(deltaTime);
247 }
248
249 /// <inheritdoc />
250 public override void Draw()

Callers 1

OnUpdateMethod · 0.45

Calls 2

PointFromScreenMethod · 0.45

Tested by

no test coverage detected