コード例 #1
0
ファイル: CNewsBrowser.cpp プロジェクト: Audifire/mtasa-blue
////////////////////////////////////////////////////
//
//  CNewsBrowser::SetVisible
//
//
//
////////////////////////////////////////////////////
void CNewsBrowser::SetVisible(bool bVisible)
{
    if (!bVisible && !m_pWindow)
        return;

    // HACK: Recreate GUI if left shift held (for editing)
    if ((GetAsyncKeyState(VK_LSHIFT) & 0x8000) != 0)
    {
        DestroyGUI();
        CreateGUI();
    }

    if (!m_pWindow)
        CreateGUI();

    // Hide / show the form
    m_pWindow->SetVisible(bVisible);

    if (bVisible)
    {
        // Bring it all forward
        m_pWindow->Activate();
        m_pWindow->SetAlwaysOnTop(true);
        m_pWindow->BringToFront();
        if (GetApplicationSettingInt("news-updated") == 1)
        {
            SetApplicationSettingInt("news-updated", 0);
            CreateHeadlines();
        }
    }
}
コード例 #2
0
ファイル: VoxGame.cpp プロジェクト: Digmaster/Vox
// Destruction
void VoxGame::Destroy()
{
	if (c_instance)
	{
		delete m_pSkybox;
		delete m_pItemManager;
		delete m_pLightingManager;
		delete m_pInventoryManager;
		delete m_pPlayer;
		delete m_pSceneryManager;
		delete m_pBlockParticleManager;
		delete m_pInstanceManager;
		delete m_pChunkManager;
		delete m_pQubicleBinaryManager;
		delete m_pFrontendManager;
		delete m_pGameCamera;
		delete m_pInventoryGUI;
		delete m_pCharacterGUI;
		delete m_pLootGUI;
		delete m_pCraftingGUI;
		delete m_pActionBar;
		DestroyGUI();  // Destroy the GUI components before we delete the GUI manager object.
		delete m_pGUI;
		delete m_pRenderer;

		m_pVoxWindow->Destroy();
		m_pVoxApplication->Destroy();

		delete m_pVoxWindow;
		delete m_pVoxApplication;

		delete c_instance;
	}
}
コード例 #3
0
ファイル: VoxGame.cpp プロジェクト: shuidong/Vox
// Destruction
void VoxGame::Destroy()
{
	if (c_instance)
	{
		delete m_pLightingManager;
		delete m_pPlayer;
		delete m_pQubicleBinaryManager;
		delete m_pGameCamera;
		DestroyGUI();
		delete m_pGUI;
		delete m_pRenderer;

		m_pVoxWindow->Destroy();
		m_pVoxApplication->Destroy();

		delete m_pVoxWindow;
		delete m_pVoxApplication;

		delete c_instance;
	}
}
コード例 #4
0
ファイル: VoxGame.cpp プロジェクト: Clever-Boy/Vox
// Destruction
void VoxGame::Destroy()
{
	if (c_instance)
	{
		delete m_pLightingManager;
		delete m_pPlayer;
		delete m_pQubicleBinaryManager;
		delete m_pChunkManager;
		delete m_pFrontendManager;
		delete m_pGameCamera;
		DestroyGUI();  // Destroy the GUI components before we delete the GUI manager object.
		delete m_pGUI;
		delete m_pRenderer;

		m_pVoxWindow->Destroy();
		m_pVoxApplication->Destroy();

		delete m_pVoxWindow;
		delete m_pVoxApplication;

		delete c_instance;
	}
}
コード例 #5
0
ファイル: CNewsBrowser.cpp プロジェクト: Audifire/mtasa-blue
////////////////////////////////////////////////////
//
//  CNewsBrowser::~CNewsBrowser
//
//
//
////////////////////////////////////////////////////
CNewsBrowser::~CNewsBrowser(void)
{
    DestroyGUI();
}
コード例 #6
0
ファイル: CNewsBrowser.cpp プロジェクト: ccw808/mtasa-blue
////////////////////////////////////////////////////
//
//  CNewsBrowser::~CNewsBrowser
//
//
//
////////////////////////////////////////////////////
CNewsBrowser::~CNewsBrowser()
{
    DestroyGUI();
}