public override void UpdateHudMarker(bool enableReset = false) { if (MyMissions.IsMissionEntity(this)) { base.SetHudMarker(); } else { MyHud.RemoveText(this); } }
private void SetTransparentParameters(out Vector4 color, out MyTransparentMaterialEnum?faceMaterial, out MyTransparentMaterialEnum?lineMaterial) { if (Game.Editor.MyEditor.Static.IsActive()) { faceMaterial = MyTransparentMaterialEnum.ObjectiveDummyFace; lineMaterial = MyTransparentMaterialEnum.ObjectiveDummyLine; } else { faceMaterial = null; lineMaterial = null; } if (MyMissions.IsMissionEntity(this)) { color = MyHudConstants.MISSION_CUBE_COLOR; } else { MyFactionRelationEnum status = MyFactions.GetFactionsRelation(this, MySession.PlayerShip); switch (status) { case MyFactionRelationEnum.Friend: color = MyHudConstants.FRIEND_CUBE_COLOR; break; case MyFactionRelationEnum.Enemy: color = MyHudConstants.ENEMY_CUBE_COLOR; break; case MyFactionRelationEnum.Neutral: color = MyHudConstants.NEUTRAL_CUBE_COLOR; break; default: throw new MyMwcExceptionApplicationShouldNotGetHere(); } } }