Ejemplo n.º 1
0
 public void DrawNameIcons()
 {
     lock (_nameIcons)
     {
         List <NameIcon> nameIcons = new List <NameIcon>();
         foreach (var item in _nameIcons.Values)
         {
             nameIcons.Add(item);
             //item.Draw(_uiState.rendererPtr, _uiState.Camera);
         }
         NameIcon.DrawAll(_state.rendererPtr, _state.Camera, nameIcons);
     }
 }
Ejemplo n.º 2
0
        internal void DrawNameIcons()
        {
            var zoomlvl = _state.Camera.ZoomLevel;

            if (zoomlvl >= 2.0)
            {
                foreach (var kvp in RenderedMaps)
                {
                    var sysid  = kvp.Key;
                    var sysmap = kvp.Value;
                    if (sysid == _state.SelectedStarSysGuid)
                    {
                        sysmap.DrawNameIcons();
                    }
                }
            }
            else
            {
                lock (_nameIcons)
                {
                    List <NameIcon> nameIcons = new List <NameIcon>();
                    foreach (var item in _nameIcons)
                    {
                        //if(_state.StarSystemStates[SelectedStarSysGuid].EntityStatesWithNames.ContainsKey(item.Key)){
                        if (item.Key == _state.SelectedStarSysGuid)
                        {
                            nameIcons.Add(item.Value);
                        }



                        //}
                        //item.Value.Draw(_state.rendererPtr, _state.Camera);
                    }
                    NameIcon.DrawAll(_state.rendererPtr, _state.Camera, nameIcons);
                }
            }
        }