Modified source engine (2017) developed by valve and leaked in 2020. Not for commercial purporses
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
1.3 KiB

5 years ago
//--------------------------------------------------------------------------------------------------------
//========= Copyright Valve Corporation, All rights reserved. ============//
#include "cbase.h"
#ifdef SERVER_USES_VGUI
#include <filesystem.h>
#include "NavMenu.h"
#include "vgui_controls/MenuItem.h"
#endif // SERVER_USES_VGUI
// memdbgon must be the last include file in a .cpp file!!!
#include "tier0/memdbgon.h"
#ifdef SERVER_USES_VGUI
using namespace vgui;
//--------------------------------------------------------------------------------------------------------
NavMenu::NavMenu( Panel *parent, const char *panelName ) : Menu( parent, panelName )
{
}
//--------------------------------------------------------------------------------------------------------
bool NavMenu::LoadFromFile( const char * fileName) // load menu from KeyValues
{
KeyValues * kv = new KeyValues(fileName);
if ( !kv->LoadFromFile( filesystem, fileName, "GAME" ) )
return false;
bool ret = false;//LoadFromKeyValues( kv );
kv->deleteThis();
return ret;
}
//--------------------------------------------------------------------------------------------------------
NavMenu::~NavMenu()
{
}
#endif // SERVER_USES_VGUI
//--------------------------------------------------------------------------------------------------------