SHARE
TWEET

new menu test.cpp

a guest Aug 17th, 2019 87 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. namespace fs = std::experimental::filesystem;
  3.  
  4. bool visualstabbool = false;
  5. bool misctabbool = false;
  6. bool aimbottabbool = false;
  7. bool configtabbool = false;
  8.  
  9. void menu::render()
  10. {
  11.     static bool checkbox;
  12.     static float sliderf;
  13.     static int slideri, dropdown;
  14.  
  15.     zgui::poll_input("Counter-Strike: Global Offensive");
  16.  
  17.     if (zgui::begin_window("sdk for Counter-Strike: Global Offensive", { 580, 410 }, render::main_font, zgui::zgui_window_flags_none))
  18.     {
  19.         zgui::begin_groupbox("", { 90, 370 });
  20.         {
  21.             if (zgui::clickable_text("Aim Assistance"))
  22.             {
  23.                 aimbottabbool = true;
  24.                 visualstabbool = false;
  25.                 misctabbool = false;
  26.                 configtabbool = false;
  27.             }
  28.  
  29.             if (zgui::clickable_text("Visualization"))
  30.             {
  31.                 aimbottabbool = false;
  32.                 visualstabbool = true;
  33.                 misctabbool = false;
  34.                 configtabbool = false;
  35.             }
  36.  
  37.             if (zgui::clickable_text("Miscellaneous"))
  38.             {
  39.                 aimbottabbool = false;
  40.                 visualstabbool = false;
  41.                 misctabbool = true;
  42.                 configtabbool = false;
  43.             }
  44.  
  45.             if (zgui::clickable_text("Configuration"))
  46.             {
  47.                 aimbottabbool = false;
  48.                 visualstabbool = false;
  49.                 misctabbool = false;
  50.                 configtabbool = true;
  51.             }
  52.         }
  53.         zgui::end_groupbox();
  54.  
  55.  
  56.         //zgui::next_column(-373, 40);
  57.         zgui::next_column(95, 0);
  58.  
  59.         if (aimbottabbool)aimbottab();
  60.         if (visualstabbool)visualstab();
  61.         if (misctabbool)misctab();
  62.         if (configtabbool)configstab();
  63.  
  64.         zgui::end_window();
  65.     }
  66. }
  67.  
  68. void menu::visualstab()
  69. {
  70.     zgui::begin_groupbox("Visualization", { 453, 370 });
  71.     {
  72.         zgui::checkbox("Enabled ESP", config_system.item.esp_enabled);
  73.         zgui::checkbox("Player Boxes", config_system.item.esp_box);
  74.         zgui::checkbox("Player Names", config_system.item.esp_name);
  75.         zgui::checkbox("Player Health", config_system.item.esp_healthbar);
  76.     }
  77.     zgui::end_groupbox();
  78. }
  79.  
  80. void menu::configstab()
  81. {
  82.     zgui::begin_groupbox("Visualization", { 453, 370 });
  83.     {
  84.  
  85.     }
  86.     zgui::end_groupbox();
  87. }
  88.  
  89. void menu::misctab()
  90. {
  91.     zgui::begin_groupbox("Miscellaneous", { 453, 370 });
  92.     {
  93.         zgui::checkbox("Auto Jump", config_system.item.misc_bhop);
  94.         zgui::checkbox("Auto Strafe", config_system.item.misc_autostrafer);
  95.  
  96.         //zgui::slider_float("Example slider (float)", 0.0f, 100.0f, sliderf);
  97.         //zgui::slider_int("Example slider (int)", 0, 100, slideri);
  98.         //zgui::combobox("Example dropdown", { "aaaa", "bbbb", "cccc", "dddd" }, dropdown);
  99.     }
  100.     zgui::end_groupbox();
  101. }
  102.  
  103. void menu::aimbottab()
  104. {
  105.     zgui::begin_groupbox("", { 453, 370 });
  106.     {
  107.         //constexpr auto& config_items = config_system.get_configs();
  108.         //static int current_config = -1;
  109.  
  110.         //if (static_cast<size_t>(current_config) >= config_items.size())
  111.             //current_config = -1;
  112.  
  113.         //static char buffer[16];
  114.  
  115.         //bool example_7;
  116.         //bool example_8;
  117.         //bool example_9;
  118.         //bool example_10;
  119.  
  120.         //const std::vector<zgui::multi_select_item> multi_select_items_2 = { { "zgui", &example_7 }, { "framework", &example_8 }, { "by zxvnme", &example_9 }, { "& contributors", &example_10 } };
  121.  
  122.         //zgui::listbox("listbox#listbox_1", multi_select_items_2);
  123.  
  124.         //zgui::listbox("", &current_config, [](void* data, int idx, const char** out_text);
  125.  
  126.         //zgui::slider_float("Example slider (float)", 0.0f, 100.0f, sliderf);
  127.         //zgui::slider_int("Example slider (int)", 0, 100, slideri);
  128.         //zgui::combobox("Example dropdown", { "aaaa", "bbbb", "cccc", "dddd" }, dropdown);
  129.     }
  130.     zgui::end_groupbox();
  131. }
  132.  
  133. void menu::draw_watermark()
  134. {
  135.     /*
  136.     const auto chrono_time = std::chrono::system_clock::to_time_t(std::chrono::system_clock::now());
  137.     const auto time = ctime(&chrono_time);
  138.     auto fps = static_cast<int>(1.f / interfaces::globals->frame_time );
  139.  
  140.     int width, height;
  141.     interfaces::engine->get_screen_size(width, height);
  142.  
  143.     render::filled_rect(width - 280, 20, 260, 28, color(1, 1, 1, 255));
  144.     render::filled_rect(width - 279, 21, 258, 26, color(51, 51, 51, 255));
  145.     render::filled_rect(width - 278, 22, 256, 24, color(41, 41, 41, 255));
  146.     render::filled_rect(width - 277, 23, 254, 22, color(51, 51, 51, 255));
  147.     render::filled_rect(width - 276, 24, 252, 20, color(1, 1, 1, 255));
  148.     render::filled_rect(width - 275, 25, 250, 18, color(31, 31, 31, 255));
  149.     render::filled_rect(width - 275, 42, 250, 1, color(255, 85, 85, 255));
  150.  
  151.     const auto connected =  interfaces::engine->get_local_player() && interfaces::engine->is_in_game() && interfaces::engine->is_connected();
  152.     //const auto ping_str = connected ? std::string (static_cast<int>(interfaces::engine->get_net_channel_info()->get_average_latency(0) * 1000)) : "0";
  153.  
  154.     render::text(width - 271, 27, color(255, 255, 255), render::main_font, false, ("__TIME__", "  FPS:", fps));
  155.     */
  156. }
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
 
Top