Required shit
I've heard you could do it with
AwesomiumBut its kinda messy from what i have heard so we will be using CEF instead because it comes pre-installed with src13 so we will be using that
The first thing you want to do is download these two files
basemenu.h and basemenu.cppand add these files to VPC (client)
Now you will need to do some fuckery with cdll_client_int.cpp so here is what you will need to do:
if ( CommandLine()->FindParm( "-gameui" ) == 0 ) { if ( !IBaseMenu ) { OverrideUI->Create( NULL ); IBaseMenu = OverrideUI->GetMenuBase(); OverrideRootUI(); } }
if ( IBaseMenu ) { IBaseMenu->~RootPanel(); }
IBaseMenu->m_pHTMLPanel->RunJavascript("togglevisible(true);"); IBaseMenu->m_pHTMLPanel->RequestFocus();
IBaseMenu->m_pHTMLPanel->RunJavascript("togglevisible(false);"); IBaseMenu->m_pHTMLPanel->RequestFocus();
// check if alert if (strstr(pCmd->pchMessage, "cmd:") == pCmd->pchMessage) { const char* command = pCmd->pchMessage + 4; if (command && strlen(command) > 0) { engine->ClientCmd_Unrestricted(command); RequestFocus(); } RequestFocus(); } else { MessageBox* pDlg = new MessageBox(m_sCurrentURL, (const char*)pCmd->pchMessage, this); pDlg->AddActionSignalTarget(this); pDlg->SetCommand(new KeyValues("DismissJSDialog", "result", false)); pDlg->DoModal(); } RequestFocus();