本文整理汇总了C++中vgui::DHANDLE::Close方法的典型用法代码示例。如果您正苦于以下问题:C++ DHANDLE::Close方法的具体用法?C++ DHANDLE::Close怎么用?C++ DHANDLE::Close使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类vgui::DHANDLE
的用法示例。
在下文中一共展示了DHANDLE::Close方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: StopProgressBar
//-----------------------------------------------------------------------------
// Purpose: stops progress bar, displays error if necessary
//-----------------------------------------------------------------------------
void CGameUI::StopProgressBar(bool bError, const char *failureReason, const char *extendedReason)
{
if (!g_hLoadingDialog.Get() && bError)
{
g_hLoadingDialog = new CLoadingDialog(staticPanel);
}
if (!g_hLoadingDialog.Get())
return;
if (bError)
{
// turn the dialog to error display mode
g_hLoadingDialog->DisplayError(failureReason,extendedReason);
}
else
{
// close loading dialog
g_hLoadingDialog->Close();
g_hLoadingDialog = NULL;
}
// stop drawing loading screen
staticPanel->SetBackgroundRenderState(CBasePanel::BACKGROUND_DESKTOPIMAGE);
}
示例2: CloseBriefingFrame
void BriefingImagePanel::CloseBriefingFrame()
{
if (g_hBriefingFrame.Get())
{
if (GetClientModeASW())
GetClientModeASW()->StopBriefingMusic();
g_hBriefingFrame->SetDeleteSelfOnClose(true);
g_hBriefingFrame->Close();
FadeInPanel *pFadeIn = dynamic_cast<FadeInPanel*>(GetClientMode()->GetViewport()->FindChildByName("FadeIn", true));
if (pFadeIn)
{
pFadeIn->AllowFastRemove();
}
// clear the currently visible part of the chat
CHudChat *pChat = GET_HUDELEMENT( CHudChat );
if (pChat && pChat->GetChatHistory())
pChat->GetChatHistory()->ResetAllFades( false, false, 0 );
// if (m_pChatEcho)
// {
// m_pChatEcho->SetVisible(false);
// }
}
g_hBriefingFrame = NULL;
}
示例3: StopProgressBar
//-----------------------------------------------------------------------------
// Purpose: stops progress bar, displays error if necessary
//-----------------------------------------------------------------------------
void CGameUI::StopProgressBar(bool bError, const char *failureReason, const char *extendedReason)
{
if (!g_hLoadingDialog.Get())
return;
if ( !IsX360() && bError )
{
// turn the dialog to error display mode
g_hLoadingDialog->DisplayGenericError(failureReason, extendedReason);
}
else
{
// close loading dialog
g_hLoadingDialog->Close();
g_hLoadingDialog = NULL;
}
// should update the background to be in a transition here
}