diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /public/dme_controls/DmeSourceSkinPanel.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'public/dme_controls/DmeSourceSkinPanel.h')
| -rw-r--r-- | public/dme_controls/DmeSourceSkinPanel.h | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/public/dme_controls/DmeSourceSkinPanel.h b/public/dme_controls/DmeSourceSkinPanel.h new file mode 100644 index 0000000..aee46a9 --- /dev/null +++ b/public/dme_controls/DmeSourceSkinPanel.h @@ -0,0 +1,62 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +//============================================================================= + +#ifndef DMESOURCESKINPANEL_H +#define DMESOURCESKINPANEL_H +#ifdef _WIN32 +#pragma once +#endif + +#include "vgui_controls/EditablePanel.h" +#include "datamodel/dmehandle.h" + + +//----------------------------------------------------------------------------- +// Forward declarations +//----------------------------------------------------------------------------- +namespace vgui +{ + class TextEntry; + class CheckButton; +} + +class CDmeSourceSkin; + + +//----------------------------------------------------------------------------- +// Purpose: Asset builder +//----------------------------------------------------------------------------- +class CDmeSourceSkinPanel : public vgui::EditablePanel +{ + DECLARE_CLASS_SIMPLE( CDmeSourceSkinPanel, EditablePanel ); + +public: + CDmeSourceSkinPanel( vgui::Panel *pParent, const char *pPanelName ); + virtual ~CDmeSourceSkinPanel(); + + void SetDmeElement( CDmeSourceSkin *pSourceSkin ); + + /* + messages sent: + "DmeElementChanged" The element has been changed + */ + +private: + MESSAGE_FUNC_PARAMS( OnTextChanged, "TextChanged", kv ); + MESSAGE_FUNC_INT( OnCheckButtonChecked, "CheckButtonChecked", state ); + + // Marks the file as dirty + void SetDirty( ); + + vgui::TextEntry *m_pSkinName; + vgui::TextEntry *m_pScale; + vgui::CheckButton *m_pFlipTriangles; + + CDmeHandle< CDmeSourceSkin > m_hSourceSkin; +}; + + +#endif // DMESOURCESKINPANEL_H |