mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-09-02 01:57:07 +02:00
27 lines
550 B
C#
27 lines
550 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;
|
|
}
|
|
|
|
protected override void Initialize()
|
|
{
|
|
base.Initialize();
|
|
AddChild(_label = new Label());
|
|
}
|
|
|
|
public Tooltip()
|
|
{
|
|
MouseFilter = MouseFilterMode.Ignore;
|
|
}
|
|
}
|
|
}
|