SHARE
TWEET

Untitled

a guest Jul 21st, 2019 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include "menu.hpp"
  2.  
  3. //  note from alpha:
  4. //  i strongly suggest people to use namespaces insteas of classes and singletons
  5. //  not only is it a bad habit, i overused singletons in this sdk, and they're not thread safe.
  6. void menu::render() {
  7.     static bool checkbox;
  8.     static bool Test;
  9.     static bool test2;
  10.     static float sliderf;
  11.     static int slideri, dropdown;
  12.  
  13.     zgui::poll_input("Counter-Strike: Global Offensive");
  14.  
  15.  
  16.  
  17.     //  could add an if statement but whatever
  18.     if (zgui::begin_window("FatalCheats - Non-Paste", { 500, 350 }, render::main_font)) {
  19.  
  20.  
  21.         if (zgui::tab_button("Test", { 165,30 }, Test))
  22.         {
  23.             Test = true;
  24.             test2 = false;
  25.         }
  26.  
  27.         zgui::next_column(-5, 0);
  28.  
  29.         if (zgui::tab_button("Test2", { 165,30 }, test2))
  30.         {
  31.             Test = false;
  32.             test2 = true;
  33.         }
  34.  
  35.         zgui::next_column(-327, 34);
  36.  
  37.  
  38.         if (Test) draw_tab_1();
  39.         if (test2) draw_tab_2();
  40.  
  41.  
  42.  
  43.         zgui::end_window();
  44.     }
  45. }
  46.  
  47. void menu::draw_tab_1()
  48. {
  49.     static bool checkbox;
  50.     zgui::checkbox("yikes", checkbox);
  51. }
  52.  
  53.  
  54. void menu::draw_tab_2()
  55. {
  56.     static bool checkbox;
  57.     zgui::checkbox("yikes", checkbox);
  58. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top