Skip to main content

SettingDescriptionPanel

A class in Root.Township, the global namespace.

In-world text panel that shows the name and description of the setting a player is looking at on a settings board. Client side; reached through SettingsPanel.DescriptionPanel.

Constructors​

MemberWhat it is
SettingDescriptionPanel()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

3 private and internal fields
MemberWhat it is
private ISettingsFieldAccess currentSettingThe setting currently shown.
private TextRenderer descriptionTextText for the setting's description.
private TextRenderer fieldNameText for the setting's display name.

Methods​

MemberWhat it is
void ShowSetting(ISettingsFieldAccess setting)Shows a setting's display name and description, if it isn't already the one shown.

Used in​

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