56 lines
1.5 KiB
C++
56 lines
1.5 KiB
C++
//========= Copyright Valve Corporation, All rights reserved. ============//
|
|
//
|
|
// Purpose: Implements a dialog that allows the user to type in a brush ID
|
|
// to select the corresponding brush. Used for locating errors
|
|
// reported by the map compile tools.
|
|
//
|
|
//=============================================================================//
|
|
|
|
#include "stdafx.h"
|
|
#include "hammer.h"
|
|
#include "GotoBrushDlg.h"
|
|
|
|
// memdbgon must be the last include file in a .cpp file!!!
|
|
#include <tier0/memdbgon.h>
|
|
|
|
|
|
BEGIN_MESSAGE_MAP(CGotoBrushDlg, CDialog)
|
|
//{{AFX_MSG_MAP(CGotoBrushDlg)
|
|
//}}AFX_MSG_MAP
|
|
END_MESSAGE_MAP()
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
// Purpose:
|
|
//-----------------------------------------------------------------------------
|
|
CGotoBrushDlg::CGotoBrushDlg(CWnd *pParent)
|
|
: CDialog(CGotoBrushDlg::IDD, pParent)
|
|
{
|
|
//{{AFX_DATA_INIT(CGotoBrushDlg)
|
|
m_nBrushID = 0;
|
|
//}}AFX_DATA_INIT
|
|
}
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
// Purpose:
|
|
// Input : pDX -
|
|
//-----------------------------------------------------------------------------
|
|
void CGotoBrushDlg::DoDataExchange(CDataExchange* pDX)
|
|
{
|
|
CDialog::DoDataExchange(pDX);
|
|
//{{AFX_DATA_MAP(CGotoBrushDlg)
|
|
DDX_Text(pDX, IDC_BRUSH_NUMBER, m_nBrushID);
|
|
//}}AFX_DATA_MAP
|
|
}
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
// Purpose:
|
|
//-----------------------------------------------------------------------------
|
|
void CGotoBrushDlg::OnOK()
|
|
{
|
|
CDialog::OnOK();
|
|
}
|
|
|