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

◆ Render() [2/2]

override void Terraria.GameContent.RGB.VirtualKeyboard.Render ( IEnumerable< RgbKey > keys)
inline

Definition at line 443 of file VirtualKeyboard.cs.

444 {
445 foreach (RgbKey key in keys)
446 {
447 if (_keyCodeMap.TryGetValue(key.Key, out var value))
448 {
449 ((RgbDevice)this).SetLedColor(value, key.CurrentColor.ToVector4());
450 }
451 }
452 }
RgbDevice(RgbDeviceVendor vendor, RgbDeviceType type, Fragment fragment, DeviceColorProfile colorProfile)
Definition RgbDevice.cs:22
bool TryGetValue(TKey key, [MaybeNullWhen(false)] out TValue value)

References ReLogic.Peripherals.RGB.RgbDevice.RgbDevice(), Terraria.GameContent.RGB.VirtualKeyboard._keyCodeMap, and System.Collections.Generic.Dictionary< TKey, TValue >.TryGetValue().