private void WorldMapLoaded(Object sender, EventArgs e) { if (gameObject.activeInHierarchy) { if (m_Icons.Count == 0) { GenerateIconViews(); return; } MapPointVisibleEventArgs mapPointVisibleEventArgs = e as MapPointVisibleEventArgs; if (e != null) { if (mapPointVisibleEventArgs != null && mapPointVisibleEventArgs.Point != null) { UpdateIconViews(mapPointVisibleEventArgs.Point); } } else { GenerateIconViews(); } } else if (e == EventArgs.Empty) { GenerateIconViews(); } }
private void OnWorldMapLocationAdded(Object p_sender, EventArgs p_args) { MapPointVisibleEventArgs mapPointVisibleEventArgs = p_args as MapPointVisibleEventArgs; if (mapPointVisibleEventArgs == null) { return; } String text = LocaManager.GetText(mapPointVisibleEventArgs.Point.StaticData.InfoKey); String text2 = LocaManager.GetText("ACTION_LOG_NEW_LOCATION_ADDED_TO_WORLD_MAP", text); GameMessage item = new GameMessage(text2); m_queuedMessages.Enqueue(item); }