Team Fortress 2 Source Code as on 22/4/2020
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.

45 lines
1.3 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================
  7. #ifndef MAPCYCLEEDITDIALOG_H
  8. #define MAPCYCLEEDITDIALOG_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include <vgui_controls/Frame.h>
  13. #include "utlvector.h"
  14. #include "utlsymbol.h"
  15. //-----------------------------------------------------------------------------
  16. // Purpose: Dialog for editing the game server map cycle list
  17. //-----------------------------------------------------------------------------
  18. class CMapCycleEditDialog : public vgui::Frame
  19. {
  20. DECLARE_CLASS_SIMPLE( CMapCycleEditDialog, vgui::Frame );
  21. public:
  22. CMapCycleEditDialog(vgui::Panel *parent, const char *name);
  23. ~CMapCycleEditDialog();
  24. virtual void Activate(vgui::Panel *updateTarget, CUtlVector<CUtlSymbol> &availableMaps, CUtlVector<CUtlSymbol> &mapCycle);
  25. protected:
  26. virtual void OnCommand(const char *command);
  27. virtual void PerformLayout();
  28. private:
  29. MESSAGE_FUNC_PTR( OnItemSelected, "ItemSelected", panel );
  30. vgui::ListPanel *m_pAvailableMapList;
  31. vgui::ListPanel *m_pMapCycleList;
  32. vgui::Button *m_RightArrow;
  33. vgui::Button *m_LeftArrow;
  34. vgui::Button *m_UpArrow;
  35. vgui::Button *m_DownArrow;
  36. };
  37. #endif // MAPCYCLEEDITDIALOG_H