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.
- Listed in Global namespace: S
- Inherits or implements
MonoBehaviour
Constructors
| Member | What it is |
|---|---|
SettingDescriptionPanel() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
3 private and internal fields
| Member | What it is |
|---|---|
private ISettingsFieldAccess currentSetting | The setting currently shown. |
private TextRenderer descriptionText | Text for the setting's description. |
private TextRenderer fieldName | Text for the setting's display name. |
Methods
| Member | What 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: