mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-09-02 18:17:09 +02:00
* 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.
23 lines
454 B
C#
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());
|
|
}
|
|
}
|
|
}
|