summaryrefslogtreecommitdiff
path: root/hammer/texturebar.h
diff options
context:
space:
mode:
authorFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
committerFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
commit3bf9df6b2785fa6d951086978a3e66f49427166a (patch)
tree2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /hammer/texturebar.h
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'hammer/texturebar.h')
-rw-r--r--hammer/texturebar.h56
1 files changed, 56 insertions, 0 deletions
diff --git a/hammer/texturebar.h b/hammer/texturebar.h
new file mode 100644
index 0000000..dbc5a6d
--- /dev/null
+++ b/hammer/texturebar.h
@@ -0,0 +1,56 @@
+//========= 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