Skip to content

WireDisplay

namespace Griff.Modules.Contraptions;
public sealed class WireDisplay : Component, IDrawable

Shows a number wired to its input “Value”, on its Text (or over it, without one).

This is a component: its saved properties are on its component page.

public string? Format { get; set; }

How the number is written, e.g. “0” for whole numbers or “0.00” for two decimals.

public string Shown { get; }

The number as shown.

public float Value { get; set; }

The number shown. Wire something to its “Value”, or set it.