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.
 
 
 
 
 
 

56 lines
1.2 KiB

//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
//=============================================================================//
#ifndef TEXTUREBAR_H
#define TEXTUREBAR_H
#ifdef _WIN32
#pragma once
#endif
#include "TextureBox.h"
#include "IEditorTexture.h"
#include "wndTex.h"
#include "ControlBarIDs.h"
#include "HammerBar.h"
class IEditorTexture;
class CTextureBar : public CHammerBar
{
public:
CTextureBar() : CHammerBar() {}
BOOL Create(CWnd *pParentWnd, int IDD = IDD_TEXTUREBAR, int iBarID = IDCB_TEXTUREBAR);
void NotifyGraphicsChanged(void);
void NotifyNewMaterial( IEditorTexture *pTexture );
void SelectTexture(LPCSTR pszTextureName);
protected:
void UpdateTexture(void);
IEditorTexture *m_pCurTex;
CTextureBox m_TextureList;
CComboBox m_TextureGroupList;
wndTex m_TexturePic;
afx_msg void UpdateControl(CCmdUI *);
afx_msg void OnBrowse(void);
afx_msg void OnChangeTextureGroup(void);
afx_msg void OnReplace(void);
afx_msg void OnUpdateTexname(void);
afx_msg void OnWindowPosChanged(WINDOWPOS *pPos);
virtual afx_msg void OnSelChangeTexture(void);
DECLARE_MESSAGE_MAP()
};
#endif // TEXTUREBAR_H