Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace fs = std::experimental::filesystem;
- bool visualstabbool = false;
- bool misctabbool = false;
- bool aimbottabbool = false;
- bool configtabbool = false;
- void menu::render()
- {
- static bool checkbox;
- static float sliderf;
- static int slideri, dropdown;
- zgui::poll_input("Counter-Strike: Global Offensive");
- if (zgui::begin_window("sdk for Counter-Strike: Global Offensive", { 580, 410 }, render::main_font, zgui::zgui_window_flags_none))
- {
- zgui::begin_groupbox("", { 90, 370 });
- {
- if (zgui::clickable_text("Aim Assistance"))
- {
- aimbottabbool = true;
- visualstabbool = false;
- misctabbool = false;
- configtabbool = false;
- }
- if (zgui::clickable_text("Visualization"))
- {
- aimbottabbool = false;
- visualstabbool = true;
- misctabbool = false;
- configtabbool = false;
- }
- if (zgui::clickable_text("Miscellaneous"))
- {
- aimbottabbool = false;
- visualstabbool = false;
- misctabbool = true;
- configtabbool = false;
- }
- if (zgui::clickable_text("Configuration"))
- {
- aimbottabbool = false;
- visualstabbool = false;
- misctabbool = false;
- configtabbool = true;
- }
- }
- zgui::end_groupbox();
- //zgui::next_column(-373, 40);
- zgui::next_column(95, 0);
- if (aimbottabbool)aimbottab();
- if (visualstabbool)visualstab();
- if (misctabbool)misctab();
- if (configtabbool)configstab();
- zgui::end_window();
- }
- }
- void menu::visualstab()
- {
- zgui::begin_groupbox("Visualization", { 453, 370 });
- {
- zgui::checkbox("Enabled ESP", config_system.item.esp_enabled);
- zgui::checkbox("Player Boxes", config_system.item.esp_box);
- zgui::checkbox("Player Names", config_system.item.esp_name);
- zgui::checkbox("Player Health", config_system.item.esp_healthbar);
- }
- zgui::end_groupbox();
- }
- void menu::configstab()
- {
- zgui::begin_groupbox("Visualization", { 453, 370 });
- {
- }
- zgui::end_groupbox();
- }
- void menu::misctab()
- {
- zgui::begin_groupbox("Miscellaneous", { 453, 370 });
- {
- zgui::checkbox("Auto Jump", config_system.item.misc_bhop);
- zgui::checkbox("Auto Strafe", config_system.item.misc_autostrafer);
- //zgui::slider_float("Example slider (float)", 0.0f, 100.0f, sliderf);
- //zgui::slider_int("Example slider (int)", 0, 100, slideri);
- //zgui::combobox("Example dropdown", { "aaaa", "bbbb", "cccc", "dddd" }, dropdown);
- }
- zgui::end_groupbox();
- }
- void menu::aimbottab()
- {
- zgui::begin_groupbox("", { 453, 370 });
- {
- //constexpr auto& config_items = config_system.get_configs();
- //static int current_config = -1;
- //if (static_cast<size_t>(current_config) >= config_items.size())
- //current_config = -1;
- //static char buffer[16];
- //bool example_7;
- //bool example_8;
- //bool example_9;
- //bool example_10;
- //const std::vector<zgui::multi_select_item> multi_select_items_2 = { { "zgui", &example_7 }, { "framework", &example_8 }, { "by zxvnme", &example_9 }, { "& contributors", &example_10 } };
- //zgui::listbox("listbox#listbox_1", multi_select_items_2);
- //zgui::listbox("", ¤t_config, [](void* data, int idx, const char** out_text);
- //zgui::slider_float("Example slider (float)", 0.0f, 100.0f, sliderf);
- //zgui::slider_int("Example slider (int)", 0, 100, slideri);
- //zgui::combobox("Example dropdown", { "aaaa", "bbbb", "cccc", "dddd" }, dropdown);
- }
- zgui::end_groupbox();
- }
- void menu::draw_watermark()
- {
- /*
- const auto chrono_time = std::chrono::system_clock::to_time_t(std::chrono::system_clock::now());
- const auto time = ctime(&chrono_time);
- auto fps = static_cast<int>(1.f / interfaces::globals->frame_time );
- int width, height;
- interfaces::engine->get_screen_size(width, height);
- render::filled_rect(width - 280, 20, 260, 28, color(1, 1, 1, 255));
- render::filled_rect(width - 279, 21, 258, 26, color(51, 51, 51, 255));
- render::filled_rect(width - 278, 22, 256, 24, color(41, 41, 41, 255));
- render::filled_rect(width - 277, 23, 254, 22, color(51, 51, 51, 255));
- render::filled_rect(width - 276, 24, 252, 20, color(1, 1, 1, 255));
- render::filled_rect(width - 275, 25, 250, 18, color(31, 31, 31, 255));
- render::filled_rect(width - 275, 42, 250, 1, color(255, 85, 85, 255));
- const auto connected = interfaces::engine->get_local_player() && interfaces::engine->is_in_game() && interfaces::engine->is_connected();
- //const auto ping_str = connected ? std::string (static_cast<int>(interfaces::engine->get_net_channel_info()->get_average_latency(0) * 1000)) : "0";
- render::text(width - 271, 27, color(255, 255, 255), render::main_font, false, ("__TIME__", " FPS:", fps));
- */
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement