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.

50 lines
1.1 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #include "DemoPage.h"
  8. #include <VGUI/IVGui.h>
  9. #include <Keyvalues.h>
  10. #include <vgui_controls/Controls.h>
  11. using namespace vgui;
  12. class SampleRadioButtons: public DemoPage
  13. {
  14. public:
  15. SampleRadioButtons(Panel *parent, const char *name);
  16. ~SampleRadioButtons();
  17. private:
  18. };
  19. //-----------------------------------------------------------------------------
  20. // Purpose: Constructor
  21. //-----------------------------------------------------------------------------
  22. SampleRadioButtons::SampleRadioButtons(Panel *parent, const char *name) : DemoPage(parent, name)
  23. {
  24. LoadControlSettings("Demo/SampleRadioButtons.res");
  25. }
  26. //-----------------------------------------------------------------------------
  27. // Purpose: Destructor
  28. //-----------------------------------------------------------------------------
  29. SampleRadioButtons::~SampleRadioButtons()
  30. {
  31. }
  32. Panel* SampleRadioButtons_Create(Panel *parent)
  33. {
  34. return new SampleRadioButtons(parent, "Radio buttons");
  35. }