Public paste
lalala
By: cMouseMenu.h | Date: Oct 25 2009 12:42 | Format: None | Expires: never | Size: 1.06 KB | Hits: 841

  1. #include "main.h"
  2.  
  3. class cButton
  4. {
  5. private:
  6.         cButton();
  7.  
  8.         int x;
  9.         int y;
  10.         int w;
  11.         int h;
  12.         char *caption;
  13.  
  14.         int red;
  15.         int green;
  16.         int blue;
  17.         int alpha;
  18.         vgui::HFont hFont;
  19.  
  20. public:
  21.         void Init(int x, int y, int w, int h, char *caption, int r, int g, int b, int alpha);
  22.         void Draw(bool clicked);
  23.         bool bClicked();
  24. };
  25.  
  26.  
  27. class cCheckbox
  28. {
  29. private:
  30.         int x;
  31.         int y;
  32.         char *caption;
  33.         bool checked;
  34.         vgui::HFont hFont;
  35.         cCheckbox();
  36.  
  37. public:
  38.         void Init(int x, int y, char *caption, bool checked);
  39.         bool bClicked();
  40.         void Draw();
  41. };
  42.  
  43. class cLabel
  44. {
  45. private:
  46.         int x;
  47.         int y;
  48.         char *caption;
  49.         vgui::HFont hFont;
  50.        
  51.         cLabel();
  52.  
  53. public:
  54.         void Init(int x, int y, char *caption);
  55.         void Draw();
  56. };
  57.  
  58. class cMenu
  59. {
  60. private:
  61.         cMenu();
  62.  
  63.         int x;
  64.         int y;
  65.         int w;
  66.         int h;
  67.        
  68.         int a;
  69.         int r;
  70.         int g;
  71.         int b;
  72.  
  73.         char *caption;
  74.         vgui::HFont hFont;
  75.  
  76. public:
  77.         void Draw();
  78.         void Init(int x, int y, int w, int h, int r, int g, int b, int a, char *caption, char *fontname);
  79.         void SetAlpha(int a);
  80.         void SetColor(int r, int g, int b, int a);
  81. };