Add two-message overload to PopupPredicted (#26907)

Added two-message overload to PopupPredicted
This commit is contained in:
Tayrtahn
2024-04-13 23:42:45 -04:00
committed by GitHub
parent f1d1e6c6fd
commit 9107d421bd
7 changed files with 31 additions and 12 deletions

View File

@@ -184,6 +184,12 @@ namespace Content.Client.Popups
PopupEntity(message, uid, recipient.Value, type);
}
public override void PopupPredicted(string? recipientMessage, string? othersMessage, EntityUid uid, EntityUid? recipient, PopupType type = PopupType.Small)
{
if (recipient != null && _timing.IsFirstTimePredicted)
PopupEntity(recipientMessage, uid, recipient.Value, type);
}
#endregion
#region Network Event Handlers