Make role timer tooltips pretty (#19605)

Co-authored-by: ElectroJr <leonsfriedrich@gmail.com>
This commit is contained in:
metalgearsloth
2023-09-11 15:44:21 +10:00
committed by GitHub
parent 2a367af7ed
commit b77265314b
9 changed files with 141 additions and 41 deletions

View File

@@ -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