end2end.space
Recent Pastes
Login
Register
Untitled Paste
Language:
Text |
Created:
1 week ago |
By:
Guest
Options:
[Raw View]
Views: 13
void RenderModuleList() { if (!cfg_get(bool, g_cfg.module_list)) return; std::vector<std::string> active_modules; if (cfg_get(bool, g_cfg.legit_enabled)) active_modules.push_back("Aimbot"); if (cfg_get(bool, g_cfg.legit_trigger_enabled)) active_modules.push_back("Triggerbot"); if (cfg_get(bool, g_cfg.legit_semi_autowall)) active_modules.push_back("AutoWall"); if (cfg_get(bool, g_cfg.backtrack)) active_modules.push_back("Backtrack"); if (cfg_get(bool, g_cfg.bVisualOverlay)) active_modules.push_back("ESP"); if (cfg_get(bool, g_cfg.bVisualChams)) active_modules.push_back("Chams"); if (cfg_get(bool, g_cfg.bGlow)) active_modules.push_back("Glow"); if (cfg_get(bool, g_cfg.radar)) active_modules.push_back("Radar"); ... int module_count = (int)active_modules.size(); std::sort(active_modules.begin(), active_modules.end(), [](const std::string& a, const std::string& b) { return a.length() > b.length(); }); ImGuiIO& io = ImGui::GetIO(); ImDrawList* draw = ImGui::GetForegroundDrawList(); const float PADDING_X = 8.0f; const float LINE_HEIGHT = 18.0f; const float RIGHT_MARGIN = 5.0f; const float TOP_MARGIN = 5.0f; ImGui::PushFont(render::m_default_font); const char* brand_text = "WallbangBros.com"; ImVec2 brand_size = ImGui::CalcTextSize(brand_text); const float LOGO_SIZE = 24.0f; const float LOGO_MARGIN = 6.0f; const float WM_PADDING = 8.0f; float wm_width = brand_size.x + LOGO_SIZE + LOGO_MARGIN + WM_PADDING * 2; float wm_height = LOGO_SIZE + 6.0f; float wm_x = io.DisplaySize.x - wm_width - RIGHT_MARGIN; float wm_y = TOP_MARGIN; ImVec2 wm_start = ImVec2(wm_x, wm_y); ImVec2 wm_end = ImVec2(io.DisplaySize.x - RIGHT_MARGIN, wm_y + wm_height); draw->AddRectFilled(wm_start, wm_end, ImColor(15, 15, 20, 220), 4.0f); float text_x = wm_x + WM_PADDING; float text_y = wm_y + (wm_height - brand_size.y) / 2; draw->AddText(ImVec2(text_x, text_y), ImColor(200, 200, 200), brand_text); if (g_SecureloaderLogo) { float logo_x = wm_end.x - LOGO_SIZE - 5.0f; float logo_y = wm_y + (wm_height - LOGO_SIZE) / 2; draw->AddImage((ImTextureID)g_SecureloaderLogo, ImVec2(logo_x, logo_y), ImVec2(logo_x + LOGO_SIZE, logo_y + LOGO_SIZE)); } float y_pos = wm_end.y + 8; if (!active_modules.empty()) { for (size_t i = 0; i < active_modules.size(); i++) { const std::string& module = active_modules[i]; ImVec2 text_size = ImGui::CalcTextSize(module.c_str()); float x_pos = io.DisplaySize.x - text_size.x - PADDING_X * 2 - RIGHT_MARGIN; ImVec2 bg_start = ImVec2(x_pos, y_pos); ImVec2 bg_end = ImVec2(io.DisplaySize.x - RIGHT_MARGIN, y_pos + LINE_HEIGHT); ImU32 bg_left = ImColor(20, 20, 25, 200); ImU32 bg_right = ImColor(30, 30, 35, 220); draw->AddRectFilledMultiColor(bg_start, bg_end, bg_left, bg_right, bg_right, bg_left); ImVec2 accent_start = ImVec2(io.DisplaySize.x - RIGHT_MARGIN - 2, y_pos); ImVec2 accent_end = ImVec2(io.DisplaySize.x - RIGHT_MARGIN, y_pos + LINE_HEIGHT); draw->AddRectFilled(accent_start, accent_end, ImColor(ui::accent_color)); ImVec2 text_pos = ImVec2(x_pos + PADDING_X, y_pos + (LINE_HEIGHT - text_size.y) / 2); draw->AddText(ImVec2(text_pos.x + 1, text_pos.y + 1), ImColor(0, 0, 0, 150), module.c_str()); draw->AddText(text_pos, ImColor(255, 255, 255, 255), module.c_str()); y_pos += LINE_HEIGHT + 1; } } ImGui::PopFont(); }