Counter Strike : Global Offensive Source Code
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

  1. //======= Copyright (c) 1996-2009, Valve Corporation, All rights reserved. ======
  2. //
  3. // CAttributeSheetSequencePickerPanel - Panel for editing int attributes that select a sprite sheet sequence
  4. //
  5. //===============================================================================
  6. #ifndef ATTRIBUTESHEETSEQUENCEPICKERPANEL_H
  7. #define ATTRIBUTESHEETSEQUENCEPICKERPANEL_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. #include "dme_controls/AttributeTextPanel.h"
  12. //-----------------------------------------------------------------------------
  13. // Forward declarations
  14. //-----------------------------------------------------------------------------
  15. class CSheetSequencePanel;
  16. namespace vgui
  17. {
  18. class MenuButton;
  19. }
  20. //-----------------------------------------------------------------------------
  21. // CAttributeSheetSequencePickerPanel
  22. //-----------------------------------------------------------------------------
  23. class CAttributeSheetSequencePickerPanel : public CAttributeTextPanel
  24. {
  25. DECLARE_CLASS_SIMPLE( CAttributeSheetSequencePickerPanel, CAttributeTextPanel );
  26. public:
  27. CAttributeSheetSequencePickerPanel( vgui::Panel *parent, const AttributeWidgetInfo_t &info );
  28. ~CAttributeSheetSequencePickerPanel();
  29. virtual void PerformLayout();
  30. void UpdateSheetPanel();
  31. private:
  32. MESSAGE_FUNC_INT( OnSheetSequenceSelected, "SheetSequenceSelected", nSequenceNumber );
  33. vgui::MenuButton *m_pSequenceSelection;
  34. CSheetSequencePanel *m_pSheetPanel;
  35. bool m_bIsSecondView;
  36. };
  37. // Like the picker panel, except shows the color channel for dual-sequence VMTs
  38. class CAttributeSheetSequencePickerPanel_Secondary : public CAttributeSheetSequencePickerPanel
  39. {
  40. DECLARE_CLASS_SIMPLE( CAttributeSheetSequencePickerPanel_Secondary, CAttributeSheetSequencePickerPanel );
  41. CAttributeSheetSequencePickerPanel_Secondary( vgui::Panel *parent, const AttributeWidgetInfo_t &info );
  42. };
  43. #endif // ATTRIBUTEMDLPICKERPANEL_H