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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user