Shuttle map IFF tweaks (#25897)

- HideLabel just means it won't have its name / button drawn whereas Hide will block it completely.
This commit is contained in:
metalgearsloth
2024-03-11 13:11:46 +11:00
committed by GitHub
parent 37ece88d09
commit a41772a006
7 changed files with 32 additions and 9 deletions

View File

@@ -345,7 +345,7 @@ public sealed partial class ShuttleMapControl : BaseShuttleControl
// Rudimentary IFF for now, if IFF hiding on then we don't show on the map at all
if (grid.Owner != _shuttleEntity &&
EntManager.TryGetComponent(grid, out iffComp) &&
(iffComp.Flags & (IFFFlags.Hide | IFFFlags.HideLabel)) != 0x0)
(iffComp.Flags & IFFFlags.Hide) != 0x0)
{
continue;
}
@@ -367,6 +367,9 @@ public sealed partial class ShuttleMapControl : BaseShuttleControl
AddMapObject(existingEdges, existingVerts, mapObject);
// Text
if (iffComp != null && (iffComp.Flags & IFFFlags.HideLabel) != 0x0)
continue;
// Force drawing it at this point.
var iffText = _shuttles.GetIFFLabel(grid, self: true, component: iffComp);