private void UpdateLCD() { thisHUDMessage = new HUDTextAPI.HUDMessage(thisLcd.EntityId, ttl, thistextPosition, thistextScale, true, false, Color.Black, thisconfigcolour + thisLcd.GetPublicText() ); textAPI.Send(thisHUDMessage); }
public override void UpdateBeforeSimulation10() { try { if (!APIAlive || !LCDAlive || !ShowTextOnHud) { return; } if (!HasPlayerOnGrid && !HasPlayerInRelay) { return; } string LCDText = LCD.GetPublicText(); var FontColor = LCD.GetValueColor("FontColor"); Display = new HUDTextAPI.HUDMessage(Entity.EntityId, 10, new Vector2D(CoordX, CoordY), DisplaySize, true, false, Color.Black, $"<color={FontColor.R},{FontColor.G},{FontColor.B}>{LCDText}"); TextAPI.Send(Display); } catch { } }