Advertisement
Guest User

Untitled

a guest
Mar 25th, 2017
318
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.81 KB | None | 0 0
  1. /* MenuClass.h */
  2.  
  3. struct rgba {
  4.     int r, g, b, a;
  5. };
  6.  
  7. extern float menux;
  8. extern rgba titleText;
  9. extern rgba titleRect;
  10. extern rgba scroller;
  11. extern rgba options;
  12. extern rgba optionsrect;
  13.  
  14. class Menu {
  15. public:
  16.     static int getKeyPressed(int key);
  17.     static char* StringToChar(std::string string);
  18.     static bool currentMenu(char* menuname);
  19.     static void changeMenu(char* menuname);
  20.     static void backMenu();
  21.    
  22.     static void drawText(char* text, int font, float x, float y, float scalex, float scaley, rgba rgba, bool center);
  23.     static void drawNotification(char* msg);
  24.     static void drawRect(float x, float y, float width, float height, rgba rgba);
  25.     static void drawSprite(char* Streamedtexture, char* textureName, float x, float y, float width, float height, float rotation, rgba rgba);
  26.    
  27.     static void Title(char* title);
  28.     static bool Option(char* option);
  29.     static bool MenuOption(char* option, char* menu);
  30.     static bool IntOption(char* option, int *var, int min, int max, int step = 1);
  31.     static bool FloatOption(char* option, float *var, float min, float max, float step = 0.1);
  32.     static bool BoolOption(char* option, bool *b00l);
  33.     static bool BoolSpriteOption(char* option, bool b00l, char* category, char* spriteOn, char* spriteOff);
  34.     static bool IntArray(char* option, int display[], int *PlaceHolderInt);
  35.     static bool FloatArray(char* option, float display[], int *PlaceHolderInt);
  36.     static bool CharArray(char* option, char* display[], int *PlaceHolderInt);
  37.     static void TeleportOption(char* option, float x, float y, float z);
  38.  
  39.     static void IniWriteInt(LPCWSTR file, LPCWSTR section, LPCWSTR key, int value);
  40.     static int IniReadInt(LPCWSTR file, LPCWSTR section, LPCWSTR key);
  41.  
  42.     static void LoadMenuTheme(LPCWSTR file);
  43.     static void SaveMenuTheme(LPCWSTR file);
  44.  
  45.     static void endMenu();
  46.     static void checkKeys();
  47. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement