public void SetLegendInfo(Color c, int id) { m_id = id - 1; m_cityId.text = (id % 100).ToString(); m_cityId.color = c; m_azimuthInput.eventTextChanged -= SendText; m_azimuthInput.text = AdrNeighborhoodExtension.GetAzimuth(m_id).ToString(); m_azimuthInput.eventTextChanged += SendText; m_die.isVisible = m_id > 0; }
public void SetData() { var angle = AdrNeighborhoodExtension.GetAzimuth(m_id); var cityNameFixed = AdrNeighborhoodExtension.GetFixedName(m_id); m_direction.text = CardinalPoint.GetCardinalPoint16(angle); bool canTrust = true; var name = cityNameFixed ?? OutsideConnectionAIOverrides.GetNameBasedInAngle(angle, out canTrust); m_generatedName.text = name; m_generatedName.tooltip = name; if (cityNameFixed == null && !canTrust) { m_generatedName.text = "?????"; } }