public void setToSocFromSocScreen() { Society soc = GraphicalSociety.activeSociety; screenSociety.SetActive(true); flag1.color = soc.color; flag2.color = soc.color2; socTitle.text = soc.getName(); title.text = soc.getName(); locText.text = ""; string bodyText = ""; bodyText += "\nSocial group: " + soc.getName(); socTypeTitle.text = soc.getTypeName(); socTypeDesc.text = soc.getTypeDesc(); if (soc.voteSession != null) { bodyText += "\nVoting on: " + soc.voteSession.issue.ToString(); bodyText += "\nTurns Remaining: " + soc.voteSession.timeRemaining; } string econEffects = ""; foreach (EconEffect effect in soc.econEffects) { econEffects += "Econ from " + effect.from.name + " to " + effect.to.name + "\n"; } socEcon.text = econEffects; bodyText += "\nMILITARY POSTURE: " + soc.posture; if (soc.offensiveTarget != null) { bodyText += "\nOffensive: " + soc.offensiveTarget.getName(); } else { bodyText += "\nOffensive: None"; } if (soc.defensiveTarget != null) { bodyText += "\nDefensive: " + soc.defensiveTarget.getName(); } else { bodyText += "\nDefensive: None"; } bodyText += "\nRebel cap " + soc.data_rebelLordsCap; bodyText += "\nLoyal cap " + soc.data_loyalLordsCap; bodyText += "\nStability: " + (int)(soc.data_societalStability * 100) + "%"; if (soc.instabilityTurns > 0) { bodyText += "\nTURNS TILL CIVIL WAR: " + (soc.map.param.society_instablityTillRebellion - soc.instabilityTurns); } body.text = bodyText; string strThreat = ""; List <ReasonMsg> msgs = new List <ReasonMsg>(); double threat = soc.getThreat(msgs); strThreat += "Threat: " + (int)threat; foreach (ReasonMsg msg in msgs) { strThreat += "\n " + msg.msg + " " + (int)msg.value; } socThreat.text = strThreat; }