upd
This commit is contained in:
@@ -9,6 +9,8 @@
|
||||
|
||||
#include "../utils/logging/log.h"
|
||||
|
||||
bool g_ShowMenu = true;
|
||||
|
||||
void ApplyImGuiTheme() {
|
||||
ImGui::StyleColorsDark();
|
||||
|
||||
@@ -89,18 +91,30 @@ void Menu::init(HWND& window, ID3D11Device* pDevice, ID3D11DeviceContext* pConte
|
||||
|
||||
ApplyImGuiTheme();
|
||||
|
||||
io.Fonts->AddFontFromFileTTF("C:\\Windows\\Fonts\\arial.ttf", 16.0f);
|
||||
// --- Поддержка кириллицы ---
|
||||
ImFontConfig font_cfg;
|
||||
font_cfg.OversampleH = 2;
|
||||
font_cfg.OversampleV = 2;
|
||||
font_cfg.PixelSnapH = true;
|
||||
static const ImWchar ranges[] = {
|
||||
0x0020, 0x00FF, // Basic Latin + Latin Supplement
|
||||
0x0400, 0x052F, // Кириллица
|
||||
0
|
||||
};
|
||||
io.Fonts->AddFontFromFileTTF("C:\\Windows\\Fonts\\arial.ttf", 16.0f, &font_cfg, ranges);
|
||||
// --- конец кириллицы ---
|
||||
|
||||
std::cout << "initialized menu\n";
|
||||
}
|
||||
|
||||
void Menu::render() {
|
||||
keybind.pollInputs();
|
||||
g_ShowMenu = showMenu;
|
||||
if (showMenu) {
|
||||
ImGuiWindowFlags window_flags = ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoCollapse |
|
||||
ImGuiWindowFlags_NoScrollbar | ImGuiWindowFlags_NoTitleBar;
|
||||
|
||||
ImGui::SetNextWindowSize(ImVec2(600, 400), ImGuiCond_Once);
|
||||
ImGui::SetNextWindowSize(ImVec2(900, 600), ImGuiCond_Once);
|
||||
ImGui::SetNextWindowPos(ImVec2(50, 50), ImGuiCond_Once);
|
||||
|
||||
ImGui::Begin("TempleWare | Internal", nullptr, window_flags);
|
||||
@@ -139,14 +153,21 @@ void Menu::render() {
|
||||
ImGui::Separator();
|
||||
|
||||
ImGui::Checkbox("Enable##AimBot", &Config::aimbot);
|
||||
ImGui::SameLine();
|
||||
// Селектор кости для аимбота
|
||||
const char* boneNames[] = { "Head", "Neck", "Body", "Nearest" };
|
||||
ImGui::Combo("Aimbot Bone", &Config::aimbot_bone, boneNames, IM_ARRAYSIZE(boneNames));
|
||||
|
||||
ImGui::Text("Key:");
|
||||
ImGui::SameLine();
|
||||
keybind.menuButton(Config::aimbot);
|
||||
keybind.menuButton(Config::aimbot_key);
|
||||
|
||||
ImGui::Checkbox("Team Check", &Config::team_check);
|
||||
ImGui::SliderFloat("FOV", &Config::aimbot_fov, 0.f, 90.f);
|
||||
ImGui::Checkbox("Aimbot on LMB", &Config::aimbot_on_lmb);
|
||||
ImGui::SliderFloat("Smooth", &Config::aimbot_smooth, 0.f, 10.f, "%.2f");
|
||||
ImGui::Checkbox("Dynamic Smooth", &Config::aimbot_dynamic_smooth);
|
||||
if (Config::aimbot_dynamic_smooth) {
|
||||
ImGui::SliderFloat("Dynamic Smooth Factor", &Config::aimbot_dynamic_smooth_factor, 0.1f, 25.0f, "%.2f");
|
||||
}
|
||||
ImGui::Checkbox("Draw FOV Circle", &Config::fov_circle);
|
||||
if (Config::fov_circle) {
|
||||
ImGui::ColorEdit4("Circle Color##FovColor", (float*)&Config::fovCircleColor);
|
||||
@@ -158,8 +179,14 @@ void Menu::render() {
|
||||
ImGui::BeginChild("AimRight", ImVec2(0, 0), true);
|
||||
ImGui::Text("TriggerBot");
|
||||
ImGui::Separator();
|
||||
ImGui::Text("No additional settings");
|
||||
|
||||
ImGui::Checkbox("Enable##TriggerBot", &Config::triggerbot);
|
||||
ImGui::Checkbox("Shooter After Aim", &Config::shooterAfterAim);
|
||||
ImGui::Checkbox("TriggerBot Hold LMB", &Config::triggerbot_hold_lmb);
|
||||
ImGui::Checkbox("Always On##TriggerBot", &Config::always_on_triggerbot);
|
||||
ImGui::Text("Key:");
|
||||
ImGui::SameLine();
|
||||
keybind.menuButton(Config::triggerbot_key);
|
||||
ImGui::SliderFloat("Delay (ms)", &Config::triggerbot_delay, 0.0f, 500.0f, "%.0f");
|
||||
ImGui::EndChild();
|
||||
}
|
||||
break;
|
||||
|
||||
@@ -18,3 +18,5 @@ private:
|
||||
bool showMenu;
|
||||
int activeTab;
|
||||
};
|
||||
|
||||
extern bool g_ShowMenu;
|
||||
|
||||
Reference in New Issue
Block a user