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.

74 lines
1.9 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================
  6. #ifndef MODWIZARD_TEMPLATEOPTIONS_H
  7. #define MODWIZARD_TEMPLATEOPTIONS_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. enum numOptions_e
  16. {
  17. TPOPTION_TEAMS,
  18. TPOPTION_CLASSES,
  19. TPOPTION_STAMINA,
  20. TPOPTION_SPRINTING,
  21. TPOPTION_PRONE,
  22. TPOPTION_SHOOTSPRINTING,
  23. TPOPTION_SHOOTLADDERS,
  24. TPOPTION_SHOOTJUMPING,
  25. TPOPTIONS_TOTAL,
  26. };
  27. // --------------------------------------------------------------------------------------------------------------------- //
  28. // CreateModWizard sub panel 2b (only when scratch / template sdk is chosen!)
  29. // This panel asks for options
  30. // --------------------------------------------------------------------------------------------------------------------- //
  31. namespace vgui
  32. {
  33. class CModWizardSubPanel_TemplateOptions : public WizardSubPanel
  34. {
  35. public:
  36. DECLARE_CLASS_SIMPLE( CModWizardSubPanel_TemplateOptions, vgui::WizardSubPanel );
  37. public:
  38. CModWizardSubPanel_TemplateOptions( Panel *parent, const char *panelName );
  39. virtual WizardSubPanel* GetNextSubPanel();
  40. virtual void OnDisplayAsNext();
  41. virtual void PerformLayout();
  42. virtual void OnCommand( const char *command );
  43. virtual bool OnNextButton();
  44. virtual void SetDefaultOptions();
  45. virtual void UpdateOptions(); // Must be called before GetOption is used!!!
  46. virtual char *GetOption( int optionType );
  47. public:
  48. CheckButton *m_pOptionTeams;
  49. CheckButton *m_pOptionClasses;
  50. CheckButton *m_pOptionStamina;
  51. CheckButton *m_pOptionSprinting;
  52. CheckButton *m_pOptionProne;
  53. CheckButton *m_pOptionShootSprinting;
  54. CheckButton *m_pOptionShootOnLadders;
  55. CheckButton *m_pOptionShootJumping;
  56. bool m_bOptions[TPOPTIONS_TOTAL];
  57. };
  58. }
  59. #endif // MODWIZARD_TEMPLATEOPTIONS_H