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.

53 lines
1.4 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================
  6. #ifndef MODWIZARD_GETMODINFO_H
  7. #define MODWIZARD_GETMODINFO_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. #include <vgui_controls/WizardSubPanel.h>
  12. #include <vgui_controls/TextEntry.h>
  13. #include <vgui_controls/Label.h>
  14. #include "configs.h"
  15. // --------------------------------------------------------------------------------------------------------------------- //
  16. // CreateModWizard sub panel 2.
  17. // This panel asks for the directory to install in and the mod name.
  18. // --------------------------------------------------------------------------------------------------------------------- //
  19. namespace vgui
  20. {
  21. class CModWizardSubPanel_GetModInfo : public WizardSubPanel
  22. {
  23. public:
  24. DECLARE_CLASS_SIMPLE( CModWizardSubPanel_GetModInfo, vgui::WizardSubPanel );
  25. public:
  26. CModWizardSubPanel_GetModInfo( Panel *parent, const char *panelName );
  27. virtual WizardSubPanel* GetNextSubPanel();
  28. virtual void OnDisplayAsNext();
  29. virtual void PerformLayout();
  30. virtual void OnCommand( const char *command );
  31. virtual bool OnNextButton();
  32. MESSAGE_FUNC_CHARPTR( OnChooseDirectory, "DirectorySelected", dir );
  33. public:
  34. TextEntry *m_pModPath;
  35. TextEntry *m_pModName;
  36. Label *m_pModNameInfoLabel;
  37. ModType_t m_ModType;
  38. };
  39. }
  40. #endif // MODWIZARD_GETMODINFO_H