Exemplo n.º 1
0
 private void LightingManagerCallback(LightningManager sender, LightSetting setting)
 {
     commander.AddCommand(KrakenDevice.GenerateLightMessage(setting.mode,
                                                            new ControlBlock(false, false, sender.lightChannel),
                                                            new LEDConfiguration(0, 0, AnimationSpeed.Normal),
                                                            new[] {
         0xFFFFFF, 0xFFFFFF, 0xFFFFFF, 0xFFFFFF, 0xFFFFFF,
         0xFFFFFF, 0xFFFFFF, 0xFFFFFF, 0xFFFFFF, 0xFFFFFF
     }));
 }
Exemplo n.º 2
0
        public void SetAnimationSpeed(AnimationSpeed speedSetting, MenuItem sender)
        {
            if (previousSpeedBox != null)
            {
                previousSpeedBox.IsChecked = false;
            }

            sender.IsChecked           = true;
            previousSpeedBox           = sender;
            logoManager.animationSpeed = speedSetting;
            rimManager.animationSpeed  = speedSetting;
            commander.AddCommand(KrakenDevice.GenerateLightMessage(logoManager.selectedSetting.mode,
                                                                   new ControlBlock(false, false, logoManager.lightChannel),
                                                                   new LEDConfiguration(0, 0, speedSetting), new[] {
                0xFFFFFF, 0xFFFFFF, 0xFFFFFF, 0xFFFFFF, 0xFFFFFF,
                0xFFFFFF, 0xFFFFFF, 0xFFFFFF, 0xFFFFFF, 0xFFFFFF
            }));
            commander.AddCommand(KrakenDevice.GenerateLightMessage(rimManager.selectedSetting.mode,
                                                                   new ControlBlock(false, false, rimManager.lightChannel),
                                                                   new LEDConfiguration(0, 0, speedSetting), new[] {
                0xFFFFFF, 0xFFFFFF, 0xFFFFFF, 0xFFFFFF, 0xFFFFFF,
                0xFFFFFF, 0xFFFFFF, 0xFFFFFF, 0xFFFFFF, 0xFFFFFF
            }));
        }