Content update for UI prediction (#27214)
* Content update for UI refactor * Big update * Sharing * Remaining content updates * First big update * Prototype updates * AUGH * Fix UI comp ref * Cleanup - Fix predicted message, fix item slots, fix interaction range check. * Fix regressions * Make this predictive idk why it wasn't. * Fix slime merge * Merge conflict * Fix merge
This commit is contained in:
@@ -51,7 +51,7 @@ public sealed class FaxSystem : EntitySystem
|
||||
/// </summary>
|
||||
[ValidatePrototypeId<EntityPrototype>]
|
||||
private const string DefaultPaperPrototypeId = "Paper";
|
||||
|
||||
|
||||
[ValidatePrototypeId<EntityPrototype>]
|
||||
private const string OfficePaperPrototypeId = "PaperOffice";
|
||||
|
||||
@@ -318,7 +318,7 @@ public sealed class FaxSystem : EntitySystem
|
||||
|
||||
private void OnSendButtonPressed(EntityUid uid, FaxMachineComponent component, FaxSendMessage args)
|
||||
{
|
||||
Send(uid, component, args.Session.AttachedEntity);
|
||||
Send(uid, component, args.Actor);
|
||||
}
|
||||
|
||||
private void OnRefreshButtonPressed(EntityUid uid, FaxMachineComponent component, FaxRefreshMessage args)
|
||||
@@ -358,7 +358,7 @@ public sealed class FaxSystem : EntitySystem
|
||||
component.SendTimeoutRemaining <= 0 &&
|
||||
component.InsertingTimeRemaining <= 0;
|
||||
var state = new FaxUiState(component.FaxName, component.KnownFaxes, canSend, canCopy, isPaperInserted, component.DestinationFaxAddress);
|
||||
_userInterface.TrySetUiState(uid, FaxUiKey.Key, state);
|
||||
_userInterface.SetUiState(uid, FaxUiKey.Key, state);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -410,19 +410,15 @@ public sealed class FaxSystem : EntitySystem
|
||||
prototype = DefaultPaperPrototypeId;
|
||||
|
||||
var name = Loc.GetString("fax-machine-printed-paper-name");
|
||||
|
||||
|
||||
var printout = new FaxPrintout(args.Content, name, prototype);
|
||||
component.PrintingQueue.Enqueue(printout);
|
||||
component.SendTimeoutRemaining += component.SendTimeout;
|
||||
|
||||
UpdateUserInterface(uid, component);
|
||||
|
||||
if (args.Session.AttachedEntity != null)
|
||||
_adminLogger.Add(LogType.Action, LogImpact.Low,
|
||||
$"{ToPrettyString(args.Session.AttachedEntity.Value):actor} added print job to {ToPrettyString(uid):tool} with text: {args.Content}");
|
||||
else
|
||||
_adminLogger.Add(LogType.Action, LogImpact.Low,
|
||||
$"Someone added print job to {ToPrettyString(uid):tool} with text: {args.Content}");
|
||||
_adminLogger.Add(LogType.Action, LogImpact.Low,
|
||||
$"{ToPrettyString(args.Actor):actor} added print job to {ToPrettyString(uid):tool} with text: {args.Content}");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -457,9 +453,8 @@ public sealed class FaxSystem : EntitySystem
|
||||
|
||||
UpdateUserInterface(uid, component);
|
||||
|
||||
if (args.Session.AttachedEntity != null)
|
||||
_adminLogger.Add(LogType.Action, LogImpact.Low,
|
||||
$"{ToPrettyString(args.Session.AttachedEntity.Value):actor} added copy job to {ToPrettyString(uid):tool} with text: {ToPrettyString(component.PaperSlot.Item):subject}");
|
||||
_adminLogger.Add(LogType.Action, LogImpact.Low,
|
||||
$"{ToPrettyString(args.Actor):actor} added copy job to {ToPrettyString(uid):tool} with text: {ToPrettyString(component.PaperSlot.Item):subject}");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user