vt_video::StillImage* GlobalMedia::GetElementalIcon(GLOBAL_ELEMENTAL element_type, GLOBAL_INTENSITY intensity) { GLOBAL_STATUS status_type = GLOBAL_STATUS_INVALID; switch (element_type) { default: return NULL; case GLOBAL_ELEMENTAL_FIRE: status_type = GLOBAL_STATUS_FIRE; break; case GLOBAL_ELEMENTAL_WATER: status_type = GLOBAL_STATUS_WATER; break; case GLOBAL_ELEMENTAL_EARTH: status_type = GLOBAL_STATUS_EARTH; break; case GLOBAL_ELEMENTAL_VOLT: status_type = GLOBAL_STATUS_VOLT; break; case GLOBAL_ELEMENTAL_LIFE: status_type = GLOBAL_STATUS_LIFE; break; case GLOBAL_ELEMENTAL_DEATH: status_type = GLOBAL_STATUS_DEATH; break; case GLOBAL_ELEMENTAL_NEUTRAL: status_type = GLOBAL_STATUS_NEUTRAL; break; } return GetStatusIcon(status_type, intensity); }
void App::HideWindow() { #ifdef TARGET_OS_MACOSX // Mac OS X doesn't like it if we try to hide a fullscreen app. if (!g_windowManager->Windowed()) { g_preferences->SetInt(PREFS_SCREEN_WINDOWED, true); ReinitialiseWindow(); } #endif g_windowManager->HideWin(); if( GetStatusIcon() ) { GetStatusIcon()->SetIcon(STATUS_ICON_MAIN); m_hidden = true; } }