Examine prediction (#23565)
* Initial prediction * new group handling * groups for all examines that use multiple rn * compile * why was it doing this?? * handle newlines with sorting properly
This commit is contained in:
@@ -64,22 +64,26 @@ public sealed class ThrusterSystem : EntitySystem
|
||||
// Powered is already handled by other power components
|
||||
var enabled = Loc.GetString(component.Enabled ? "thruster-comp-enabled" : "thruster-comp-disabled");
|
||||
|
||||
args.PushMarkup(enabled);
|
||||
|
||||
if (component.Type == ThrusterType.Linear &&
|
||||
EntityManager.TryGetComponent(uid, out TransformComponent? xform) &&
|
||||
xform.Anchored)
|
||||
using (args.PushGroup(nameof(ThrusterComponent)))
|
||||
{
|
||||
var nozzleDir = Loc.GetString("thruster-comp-nozzle-direction",
|
||||
("direction", xform.LocalRotation.Opposite().ToWorldVec().GetDir().ToString().ToLowerInvariant()));
|
||||
args.PushMarkup(enabled);
|
||||
|
||||
args.PushMarkup(nozzleDir);
|
||||
if (component.Type == ThrusterType.Linear &&
|
||||
EntityManager.TryGetComponent(uid, out TransformComponent? xform) &&
|
||||
xform.Anchored)
|
||||
{
|
||||
var nozzleDir = Loc.GetString("thruster-comp-nozzle-direction",
|
||||
("direction", xform.LocalRotation.Opposite().ToWorldVec().GetDir().ToString().ToLowerInvariant()));
|
||||
|
||||
var exposed = NozzleExposed(xform);
|
||||
args.PushMarkup(nozzleDir);
|
||||
|
||||
var nozzleText = Loc.GetString(exposed ? "thruster-comp-nozzle-exposed" : "thruster-comp-nozzle-not-exposed");
|
||||
var exposed = NozzleExposed(xform);
|
||||
|
||||
args.PushMarkup(nozzleText);
|
||||
var nozzleText =
|
||||
Loc.GetString(exposed ? "thruster-comp-nozzle-exposed" : "thruster-comp-nozzle-not-exposed");
|
||||
|
||||
args.PushMarkup(nozzleText);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user