𝐅𝐄𝐀𝐓𝐔𝐑𝐄𝐒𝐓𝐈𝐂 𝐋𝐄𝐀𝐊𝐒
Відкрити в Telegram
📌 Educational & Research Purpose Only 🔍 Sharing publicly available source code for learning ❌ No selling ❌ No buying ❌ No promotions ⚠️ I am not responsible for misuse 📚 For knowledge & awareness only MODs & Kernel Resources.☑️
Показати більше2 087
Підписники
+1124 години
+657 днів
+23130 днів
Архів дописів
2 091
if (Dusman) {
ImGui::SetNextWindowPos(ImVec2(glWidth / 2.0f, glHeight / 10.0f), ImGuiCond_FirstUseEver, ImVec2(0.5f, 0.5f));
float speed = 1.5f;
float time = ImGui::GetTime() * speed;
ImVec4 rgbColors[] = {
ImVec4(1.0f, 0.0f, 0.0f, 1.0f),
ImVec4(1.0f, 0.5f, 0.0f, 1.0f),
ImVec4(1.0f, 1.0f, 0.0f, 1.0f),
ImVec4(0.0f, 1.0f, 0.0f, 1.0f),
ImVec4(0.6f, 0.0f, 1.0f, 1.0f),
ImVec4(1.0f, 0.2f, 0.8f, 1.0f)
};
int count = 6;
float t = fmod(time, (float)count);
int i1 = (int)t % count;
int i2 = (i1 + 1) % count;
float blend = t - (int)t;
ImVec4 finalColor = ImVec4(
rgbColors[i1].x + (rgbColors[i2].x - rgbColors[i1].x) * blend,
rgbColors[i1].y + (rgbColors[i2].y - rgbColors[i1].y) * blend,
rgbColors[i1].z + (rgbColors[i2].z - rgbColors[i1].z) * blend,
1.0f
);
ImGui::PushStyleColor(ImGuiCol_Border, finalColor);
ImGui::PushStyleColor(ImGuiCol_WindowBg, ImVec4(0.02f, 0.02f, 0.02f, 0.95f));
ImGui::PushStyleVar(ImGuiStyleVar_WindowRounding, 8.0f);
ImGui::PushStyleVar(ImGuiStyleVar_WindowBorderSize, 2.5f);
ImGuiWindowFlags flags = ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoScrollbar | ImGuiWindowFlags_AlwaysAutoResize;
if (ImGui::Begin("##OverlayInfo", nullptr, flags)) {
float windowWidth = ImGui::GetWindowSize().x;
float textWidth = ImGui::CalcTextSize("BOTS: 00 PLAYERS: 00").x;
ImGui::SetCursorPosX((windowWidth - textWidth) * 0.5f);
ImGui::SetCursorPosY(ImGui::GetWindowHeight() * 0.3f);
ImGui::TextColored(ImVec4(1,1,1,1), "BOTS:");
ImGui::SameLine();
ImGui::TextColored(finalColor, "%d", totalBots);
ImGui::SameLine(0, 20.0f);
ImGui::TextColored(ImVec4(1,1,1,1), "PLAYERS:");
ImGui::SameLine();
ImGui::TextColored(finalColor, "%d", totalEnemies);
}
ImGui::End();
ImGui::PopStyleVar(2);
ImGui::PopStyleColor(2);
}