9 override void UnfocusAll()
11 for (
int i = 0; i <
Count(); i++ )
15 Get( i ).GetMainWidget().FindAnyWidget(
"Cursor" + j ).Show(
false );
20 for ( i = 0; i < m_EntitiesMap.Count(); ++i )
22 m_EntitiesMap.GetElement(i).SetActive(
false);
28 return m_EntitiesMap.Count();
31 void AddItem(
Icon icon )
33 if( !m_EntitiesMap.Contains( icon.GetObject().GetID() ) )
35 m_EntitiesMap.Insert( icon.GetObject().GetID(), icon);
39 Icon GetIcon(
int entity_id )
41 return m_EntitiesMap.Get( entity_id );
44 Icon GetIconByIndex(
int index )
46 if( index < m_EntitiesMap.Count() && index > -1 )
47 return m_EntitiesMap.GetElement( index );
51 void RemoveItem(
Icon icon )
55 Icon icon_copy = icon;
56 if( icon.GetObject() )
57 m_EntitiesMap.Remove( icon.GetObject().GetID() );
60 int ix = m_EntitiesMap.GetKeyByValue( icon );
61 if( m_EntitiesMap.Contains( ix ) )
62 m_EntitiesMap.Remove( ix );
69 void RemoveItem(
int entity )
71 m_EntitiesMap.Remove( entity );
74 bool ContainsEntity(
EntityAI entity )
76 return m_EntitiesMap.Contains( entity.GetID() );
79 void UpdateItemsTemperature()
83 for(
int i = 0; i < m_EntitiesMap.Count(); i++ )
85 Icon icon = m_EntitiesMap.GetElement(i);
86 icon.SetTemperature();
91 override void Refresh()
95 for(
int i = 0; i < m_EntitiesMap.Count(); i++ )
97 m_EntitiesMap.GetElement(i).Refresh();