Make role timer tooltips pretty (#19605)
Co-authored-by: ElectroJr <leonsfriedrich@gmail.com>
This commit is contained in:
@@ -257,9 +257,11 @@ namespace Content.Client.LateJoin
|
||||
{
|
||||
jobButton.Disabled = true;
|
||||
|
||||
if (!string.IsNullOrEmpty(reason))
|
||||
if (!reason.IsEmpty)
|
||||
{
|
||||
jobButton.ToolTip = reason;
|
||||
var tooltip = new Tooltip();
|
||||
tooltip.SetMessage(reason);
|
||||
jobButton.TooltipSupplier = _ => tooltip;
|
||||
}
|
||||
|
||||
jobSelector.AddChild(new TextureRect
|
||||
|
||||
Reference in New Issue
Block a user