//----------------------------------------------------------------------------- // Purpose: sets loading info text //----------------------------------------------------------------------------- int CGameUI::SetProgressBarStatusText(const char *statusText) { if (!g_hLoadingDialog.Get()) return 0; g_hLoadingDialog->SetStatusText(statusText); return 1; }
//----------------------------------------------------------------------------- // Purpose: sets loading info text //----------------------------------------------------------------------------- bool CGameUI::SetProgressBarStatusText(const char *statusText) { if (!g_hLoadingDialog.Get()) return false; if (!statusText) return false; if (!stricmp(statusText, m_szPreviousStatusText)) return false; g_hLoadingDialog->SetStatusText(statusText); Q_strncpy(m_szPreviousStatusText, statusText, sizeof(m_szPreviousStatusText)); return true; }