public override void Render(IFrameRenderData frameData) { this.Frame(); textManager.AddOrUpdate(this.TextBlock); base.Render(frameData); }
private void DebugAudioData_Loading(object sender, EventArgs e) { components.Load(); float rowsize = 2f / Globals.AUDIODATASIZE; int i = 0; foreach (var s in filterOutputNames) { var tb = new TextBlock($"F{i:000}", $"{i:000} {s}", new Vector3(0.0f, 0.0f + (i + .5f) * rowsize, 0.0f), 0.07f / 1024f, new Vector4(1f, 1f, 1f, .2f)); textManager.AddOrUpdate(tb); i++; } }
private void UpdateLabels() { int index = -1; foreach (var entry in entries) { index++; // update isSelected entry.IsSelected = index == selectedIndex; // format value entry.LabelBlock.Text = $"{entry.Name:16}: {entry.GetValue():0.0000}"; // set colour entry.LabelBlock.Colour = entry.IsSelected ? ColourSelected : ColourDeselected; textManager.AddOrUpdate(entry.LabelBlock); } }