//////////////////////////////////////////////////// // // 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(); } } }
// 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; } }
// 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; } }
// 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; } }
//////////////////////////////////////////////////// // // CNewsBrowser::~CNewsBrowser // // // //////////////////////////////////////////////////// CNewsBrowser::~CNewsBrowser(void) { DestroyGUI(); }
//////////////////////////////////////////////////// // // CNewsBrowser::~CNewsBrowser // // // //////////////////////////////////////////////////// CNewsBrowser::~CNewsBrowser() { DestroyGUI(); }