Files
RobustToolbox/Robust.Client/UserInterface/CustomControls/Tooltip.cs
T
Pieter-Jan BriersandGitHub cb5f2ffae1 Refactor UI system. (#843)
* Refactor UI system.

Deferred updating is used for styling & layout. This fixes the awful time complexity of containers.
Removed SetDefaults and Initialize. They were a bad idea alright.

* Fix build on .NET Framework.
2019-08-14 22:03:51 +02:00

23 lines
454 B
C#

using Robust.Client.UserInterface.Controls;
namespace Robust.Client.UserInterface.CustomControls
{
public sealed class Tooltip : PanelContainer
{
private Label _label;
public string Text
{
get => _label.Text;
set => _label.Text = value;
}
public Tooltip()
{
MouseFilter = MouseFilterMode.Ignore;
AddChild(_label = new Label());
}
}
}