Beispiel #1
0
 public void Handle(ActiveEffectChanged message)
 {
     if (_deviceManager.ActiveKeyboard != null && _effectManager.ActiveEffect != null)
     {
         _keyboardBitmap = _deviceManager.ActiveKeyboard.KeyboardBitmap(_effectManager.ActiveEffect.KeyboardScale);
     }
 }
        public void Handle(ActiveEffectChanged message)
        {
            var effectDisplay = string.IsNullOrEmpty(message.ActiveEffect) ? message.ActiveEffect : "none";

            ActiveEffectName = $"Active effect: {effectDisplay}";
        }
Beispiel #3
0
 private static void OnActiveEffectChanged(BoolEventArgs e)
 {
     _isEffectActiveEffectActive = e.Value;
     ActiveEffectChanged?.Invoke(null, e);
 }