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.
 
 
 
 
 
 

58 lines
1.3 KiB

//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//=============================================================================//
#ifndef CDKEYENTRYDIALOG_H
#define CDKEYENTRYDIALOG_H
#ifdef _WIN32
#pragma once
#endif
#include "vgui_controls/Frame.h"
//-----------------------------------------------------------------------------
// Purpose:
//-----------------------------------------------------------------------------
class CCDKeyEntryDialog : public vgui::Frame
{
DECLARE_CLASS_SIMPLE( CCDKeyEntryDialog, vgui::Frame );
public:
CCDKeyEntryDialog(vgui::Panel *parent, bool inConnect = false);
~CCDKeyEntryDialog();
virtual void Activate();
static bool IsValidWeakCDKeyInRegistry();
private:
enum { MAX_CDKEY_ERRORS = 5 };
virtual void OnCommand(const char *command);
virtual void OnClose();
virtual void OnThink();
MESSAGE_FUNC_PTR( OnTextChanged, "TextChanged", panel );
bool IsEnteredKeyValid();
vgui::Button *m_pOK;
vgui::Button *m_pQuitGame;
vgui::TextEntry *m_pEntry1;
vgui::TextEntry *m_pEntry2;
vgui::TextEntry *m_pEntry3;
vgui::TextEntry *m_pEntry4;
vgui::TextEntry *m_pEntry5;
vgui::DHANDLE<vgui::MessageBox> m_hErrorBox;
bool m_bEnteredValidCDKey;
bool m_bInConnect;
int m_iErrCount;
};
#endif // CDKEYENTRYDIALOG_H