private void DrawEditBoxNum(string text, string units, float x, float y, float w, float h) { DrawEditBoxBase(x, y, w, h); float uw = _nvg.TextBounds(0.0f, 0.0f, units, out _); _nvg.FontSize(15.0f); _nvg.FontFace("sans"); _nvg.FillColour(_nvg.Rgba(255, 255, 255, 64)); _nvg.TextAlign(Align.Right | Align.Middle); _ = _nvg.Text(x + w - h * 0.3f, y + h * 0.5f, units); _nvg.FontSize(17.0f); _nvg.FontFace("sans"); _nvg.FillColour(_nvg.Rgba(255, 255, 255, 128)); _nvg.TextAlign(Align.Right | Align.Middle); _ = _nvg.Text(x + w - uw - h * 0.5f, y + h * 0.5f, text); }