// ---------[ UI FUNCTIONALITY ]--------- /// <summary>Displays the appropriate field of a given profile.</summary> public void DisplayProfile(ModProfile profile) { this.m_profile = profile; // display object fieldValue = this.reference.GetValue(this.m_profile); string displayString = ValueFormatting.FormatValue(fieldValue, this.formatting.method, this.formatting.toStringParameter); this.m_textComponent.text = displayString; }
// ---------[ UI FUNCTIONALITY ]--------- /// <summary>Displays the appropriate field of a given statistics.</summary> public void DisplayStatistics(ModStatistics statistics) { this.m_statistics = statistics; // display object fieldValue = this.reference.GetValue(this.m_statistics); string displayString = ValueFormatting.FormatValue(fieldValue, this.formatting.method, this.formatting.toStringParameter); this.m_textComponent.text = displayString; }
// ---------[ UI FUNCTIONALITY ]--------- /// <summary>Displays the appropriate field of a given download.</summary> public void DisplayDownload(FileDownloadInfo downloadInfo) { this.m_downloadInfo = downloadInfo; // display object fieldValue = this.reference.GetValue(this.m_downloadInfo); string displayString = ValueFormatting.FormatValue(fieldValue, this.formatting.method, this.formatting.toStringParameter); this.m_textComponent.text = displayString; }