public override string RenderValue() { var c = SelectedCompany; if (!c.hasProduct) { return("-----"); } return(Marketing.GetPositioningName(c)); }
public override void ViewRender() { base.ViewRender(); var infos = Marketing.GetAudienceInfos(); //.OrderBy(a => a.Size); // TODO DUPLICATED FROM AudiencesOnMainScreenListView.ViewRender() var audiences = Marketing.GetAudienceInfos(); //bool showAudiences = true; var company = Flagship; bool showAudiences = company.isRelease; if (showAudiences) { SetItems(audiences); } else { // take primary audience only SetItems(audiences.Where(a => a.ID == Marketing.GetCoreAudienceId(company))); } //SetItems(infos); var audience = Marketing.GetAudienceInfos()[segmentId]; var segmentName = audience.Name; var potentialPhrase = $"{Format.Minify(audience.Size)} users"; var incomePerUser = (double)Economy.GetBaseIncomeByMonetizationType(company); // 1L * (segmentId + 1); var worth = (long)(incomePerUser * audience.Size); var worthPhrase = Format.Money(worth, true); AudienceDescription.text = segmentName + $"\n\n<size=30>Potential\n{Visuals.Positive(potentialPhrase)}\n\nIncome\n{Visuals.Positive(worthPhrase)}</size>"; PositionongDescription.text = $"We are making {Marketing.GetPositioningName(company)}"; if (CompaniesInterestedInUsers != null) { //CompaniesInterestedInUsers.text = $"which are interested in {segmentName}"; CompaniesInterestedInUsers.text = $"which are interested in {Marketing.GetPositioningName(company)}"; } //FindObjectOfType<CompaniesFocusingSpecificSegmentListView>().SetSegment(segmentId); }