Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Render() [2/2]

override void ReLogic.Peripherals.RGB.SteelSeries.SteelSeriesKeyboard.Render ( IEnumerable< RgbKey > keys)
inline

Definition at line 41 of file SteelSeriesKeyboard.cs.

42 {
43 //IL_0027: Unknown result type (might be due to invalid IL or missing references)
44 //IL_002c: Unknown result type (might be due to invalid IL or missing references)
45 //IL_0031: Unknown result type (might be due to invalid IL or missing references)
46 //IL_0033: Unknown result type (might be due to invalid IL or missing references)
47 foreach (RgbKey key in keys)
48 {
49 if (_keyboardTriggersForLookup.TryGetValue(key.KeyTriggerName, out var value))
50 {
51 Color color = ProcessLedColor(key.CurrentColor);
52 value.UpdateColor(color, key.IsVisible);
53 }
54 }
55 }
Color ProcessLedColor(Color color)
Definition RgbDevice.cs:53
readonly Dictionary< string, ColorKey > _keyboardTriggersForLookup
bool TryGetValue(TKey key, [MaybeNullWhen(false)] out TValue value)

References ReLogic.Peripherals.RGB.SteelSeries.SteelSeriesKeyboard._keyboardTriggersForLookup, ReLogic.Peripherals.RGB.RgbDevice.ProcessLedColor(), and System.Collections.Generic.Dictionary< TKey, TValue >.TryGetValue().