MCPcopy Create free account
hub / github.com/TraderOracle/ATAS / DrawString

Method DrawString

Defibrillator.cs:66–70  ·  view source on GitHub ↗
(RenderContext context, string renderText, int yPrice, Color color)

Source from the content-addressed store, hash-verified

64 public bool Show_Euro { get => bShowEuro; set { bShowEuro = value; RecalculateValues(); } }
65
66 private void DrawString(RenderContext context, string renderText, int yPrice, Color color)
67 {
68 var textSize = context.MeasureString(renderText, new RenderFont("Arial", fFontSize));
69 context.DrawString(renderText, new RenderFont("Arial", fFontSize), color, Container.Region.Right - textSize.Width - 5, yPrice - textSize.Height);
70 }
71
72 protected override void OnRender(RenderContext context, DrawingLayouts layout)
73 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected