public void ClearOverlay() { if (_overlayManager.HasOverlay <ExplosionDebugOverlay>()) { _overlayManager.RemoveOverlay <ExplosionDebugOverlay>(); } _debugOverlay = null; }
private void RemoveOverlay() { if (CurrentlyControlled && _currentEffect != ScreenEffects.None) { var appliedEffect = _effectsDictionary[_currentEffect]; _overlayManager.RemoveOverlay(appliedEffect.ID); } _currentEffect = ScreenEffects.None; }
public override void HandleMessage(ComponentMessage message, IComponent component) { base.HandleMessage(message, component); switch (message) { case PlayerAttachedMsg _: if (!_overlayManager.HasOverlay(nameof(GasTileOverlay))) { _overlayManager.AddOverlay(new GasTileOverlay()); } break; case PlayerDetachedMsg _: if (!_overlayManager.HasOverlay(nameof(GasTileOverlay))) { _overlayManager.RemoveOverlay(nameof(GasTileOverlay)); } break; } }
public override void Shutdown() { base.Shutdown(); _overlayManager.RemoveOverlay(_overlay); }
public override void Shutdown() { base.Shutdown(); _overlay.RemoveOverlay <ParallaxOverlay>(); _protoManager.PrototypesReloaded -= OnReload; }
private void OnPlayerDetached(EntityUid uid, DrunkComponent component, PlayerDetachedEvent args) { _overlay.CurrentBoozePower = 0; _overlayMan.RemoveOverlay(_overlay); }
private void OnPlayerDetached(EntityUid uid, BlindableComponent component, PlayerDetachedEvent args) { _overlayMan.RemoveOverlay(_overlay); _lightManager.Enabled = true; }
private void OnPlayerDetached(EntityUid uid, SeeingRainbowsComponent component, PlayerDetachedEvent args) { _overlay.Intoxication = 0; _overlayMan.RemoveOverlay(_overlay); }