1. void
  2. UIManager::SetCurrentUI(const char* state)
  3. {
  4. if(strcmp(m_state,state)!=0)
  5. {
  6. m_state = state;
  7.  
  8. for (int i = 0; i < m_objects.GetNumEntries(); i++)
  9. {
  10. if(strcmp(m_objects[i]->GetAssignedState(),state) != 0)
  11. {
  12. m_objects[i]->SetVisible(false);
  13. }
  14. else
  15. {
  16. m_objects[i]->SetVisible(true);
  17. }
  18. }
  19. }
  20. }