Skip to main content

ButtonCounter.TextRendererSettings

A private class in Root.Township, the global namespace. Reach it through att-stubs' publicized assemblies or Harmony's AccessTools.

A text label on a ButtonCounter that shows the amount, hidden below a minimum.

Constructors​

MemberWhat it is
TextRendererSettings()Creates a ButtonCounter.TextRendererSettings with default values.

Fields​

2 private and internal fields
MemberWhat it is
private int minimumQuantityForTextSmallest amount that is shown. Defaults to 1.
private TextRenderer rendererThe text renderer to write to.

Methods​

MemberWhat it is
void UpdateText(int value)Shows the value, or blank text if it is below minimumQuantityForText.

Used in​

Members of other types that take, return or hold a TextRendererSettings: