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.8 KiB
58 lines
1.8 KiB
//======= Copyright (c) 1996-2009, Valve Corporation, All rights reserved. ======
|
|
//
|
|
// CAttributeSheetSequencePickerPanel - Panel for editing int attributes that select a sprite sheet sequence
|
|
//
|
|
//===============================================================================
|
|
|
|
#ifndef ATTRIBUTESHEETSEQUENCEPICKERPANEL_H
|
|
#define ATTRIBUTESHEETSEQUENCEPICKERPANEL_H
|
|
|
|
#ifdef _WIN32
|
|
#pragma once
|
|
#endif
|
|
|
|
#include "dme_controls/AttributeTextPanel.h"
|
|
|
|
//-----------------------------------------------------------------------------
|
|
// Forward declarations
|
|
//-----------------------------------------------------------------------------
|
|
class CSheetSequencePanel;
|
|
|
|
namespace vgui
|
|
{
|
|
class MenuButton;
|
|
}
|
|
|
|
//-----------------------------------------------------------------------------
|
|
// CAttributeSheetSequencePickerPanel
|
|
//-----------------------------------------------------------------------------
|
|
class CAttributeSheetSequencePickerPanel : public CAttributeTextPanel
|
|
{
|
|
DECLARE_CLASS_SIMPLE( CAttributeSheetSequencePickerPanel, CAttributeTextPanel );
|
|
|
|
public:
|
|
CAttributeSheetSequencePickerPanel( vgui::Panel *parent, const AttributeWidgetInfo_t &info );
|
|
~CAttributeSheetSequencePickerPanel();
|
|
|
|
virtual void PerformLayout();
|
|
|
|
void UpdateSheetPanel();
|
|
|
|
private:
|
|
MESSAGE_FUNC_INT( OnSheetSequenceSelected, "SheetSequenceSelected", nSequenceNumber );
|
|
|
|
vgui::MenuButton *m_pSequenceSelection;
|
|
CSheetSequencePanel *m_pSheetPanel;
|
|
bool m_bIsSecondView;
|
|
};
|
|
|
|
// Like the picker panel, except shows the color channel for dual-sequence VMTs
|
|
class CAttributeSheetSequencePickerPanel_Secondary : public CAttributeSheetSequencePickerPanel
|
|
{
|
|
DECLARE_CLASS_SIMPLE( CAttributeSheetSequencePickerPanel_Secondary, CAttributeSheetSequencePickerPanel );
|
|
CAttributeSheetSequencePickerPanel_Secondary( vgui::Panel *parent, const AttributeWidgetInfo_t &info );
|
|
|
|
};
|
|
|
|
|
|
#endif // ATTRIBUTEMDLPICKERPANEL_H
|