Вопрос ImGui menu

yoo bro, i see a big paster)()
Начинающий
Статус
Оффлайн
Регистрация
29 Июл 2019
Сообщения
257
Реакции[?]
26
Поинты[?]
0
Привет, короче у меня такая проблема: две колонки показывает нормально, а другие две - снизу, что можно сделать? Скрин -
Пожалуйста, авторизуйтесь для просмотра ссылки.

C++:
void RenderLegitTab()
    {

        // ImGui::SetNextWindowSize(ImVec2{ 1200, 0 }, ImGuiSetCond_Once);
        auto& style = ImGui::GetStyle();
        float group_w = ImGui::GetCurrentWindow()->Size.x - style.WindowPadding.x * 2;

        bool placeholder_true = true;



        ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(0, 0));
        ImGui::ToggleButton("AIM", &placeholder_true, ImVec2{ group_w, 25.0f });
        ImGui::PopStyleVar();

        ImGui::BeginGroupBox("##body_content");
        {
            ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2{ style.WindowPadding.x, style.ItemSpacing.y });
            ImGui::Columns(4, nullptr, false);
            ImGui::SetColumnOffset(1, group_w / 4.0f);
            ImGui::SetColumnOffset(2, 2 * group_w / 4.0f);
            ImGui::SetColumnOffset(3, 3 * group_w / 4.f);
            ImGui::SetColumnOffset(4, group_w);

            ImGui::BeginGroupBox("##body_content");
            {
               // ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2{ style.WindowPadding.x, style.ItemSpacing.y });
               // ImGui::Columns(4, nullptr, false);

                ImGui::BeginChild("##aimbot.weapons", ImVec2(0, 0), true);
                {
                    ImGui::Text("Weapons");
                    ImGui::Separator();
                    ImGui::PushItemWidth(-1);
                    ImGui::ListBoxHeader("##weaponslist", ImVec2(220, 222));
                    {
                        for (auto weapon : k_weapon_names) {
                            if (ImGui::Selectable(weapon.second, weapon_index == weapon.first))
                                weapon_index = weapon.first;
                        }
                    }
                    //ImGui::ListBoxFooter();
                   // RenderCurrentWeaponButton();
                    //ImGui::PopItemWidth();
                }
                ImGui::EndChild();
            }
            ImGui::EndGroupBox();

            ImGui::NextColumn();
            auto settings = &g_Options.aimbot[weapon_index];
            ImGui::BeginGroupBox("##body_content");
            {
                //ImGui::Columns(4, nullptr, false);
               // ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2{ style.WindowPadding.x, style.ItemSpacing.y });
                ImGui::BeginChild("##aimbot.general", ImVec2(0, 0), true);
                {
                    ImGui::Text("General");
                    ImGui::Separator();
                    ImGui::PushItemWidth(-1);
                    ImGui::Checkbox("Enabled", &settings->enabled);
                    ImGui::Checkbox("Deathmatch", &settings->deathmatch);
                    if (weapon_index == WEAPON_P250 ||
                        weapon_index == WEAPON_USP_SILENCER ||
                        weapon_index == WEAPON_GLOCK ||
                        weapon_index == WEAPON_FIVESEVEN ||
                        weapon_index == WEAPON_TEC9 ||
                        weapon_index == WEAPON_DEAGLE ||
                        weapon_index == WEAPON_ELITE ||
                        weapon_index == WEAPON_HKP2000) {
                        ImGui::Checkbox("Autopistol", &settings->autopistol);
                    }
                    ImGui::Checkbox("Check Smoke", &settings->check_smoke);
                    ImGui::Checkbox("Check Flash", &settings->check_flash);
                    ImGui::Checkbox("Autowall", &settings->autowall);
                    ImGui::Checkbox("Backtrack", &settings->backtrack.enabled);
                    ImGui::Checkbox("Silent", &settings->silent);
                    ImGui::Checkbox("Humanize", &settings->humanize);
                    if (weapon_index == WEAPON_AWP || weapon_index == WEAPON_SSG08) {
                        ImGui::Checkbox("Only In Zoom", &settings->only_in_zoom);
                    }
                    // ImGui::PopItemWidth();
                }
                ImGui::EndChild();
            }
          
            ImGui::EndGroupBox();
            ImGui::NextColumn();

            ImGui::BeginChild("##aimbot.misc", ImVec2(0, 0), true);
            {
                ImGui::Text("Misc");
                ImGui::Separator();
                ImGui::PushItemWidth(-1);
                static char* priorities[] = {
                "Fov",
                "Health",
                "Damage",
                "Distance"
                };
                static char* aim_types[] = {
                "Hitbox",
                "Nearest"
                };
                static char* fov_types[] = {
                "Static",
                "Dynamic"
                };
                static char* hitbox_list[] = {
                "Head",
                "Neck",
                "Lower Neck",
                "Body",
                "Thorax",
                "Chest",
                "Right Thing",
                "Left Thing", // 7
                };
                ImGui::Text("Aim Type:");
                ImGui::Combo("##aimbot.aim_type", &settings->aim_type, aim_types, IM_ARRAYSIZE(aim_types));
                if (settings->aim_type == 0) {
                    ImGui::Text("Hitbox:");
                    ImGui::Combo("##aimbot.hitbox", &settings->hitbox, hitbox_list, IM_ARRAYSIZE(hitbox_list));
                }
                ImGui::Text("Priority:");
                ImGui::Combo("##aimbot.priority", &settings->priority, priorities, IM_ARRAYSIZE(priorities));
                ImGui::Text("Fov Type:");
                ImGui::Combo("##aimbot.fov_type", &settings->fov_type, fov_types, IM_ARRAYSIZE(fov_types));
                ImGui::SliderFloat("##aimbot.fov", &settings->fov, 0, 20, "Fov: %.2f");
                if (settings->silent) {
                    ImGui::SliderFloat("##aimbot.silent_fov", &settings->silent_fov, 0, 20, "Silent Fov: %.2f");
                }
                ImGui::SliderFloat("##aimbot.smooth", &settings->smooth, 1, 15, "Smooth: %.2f");
                if (!settings->silent) {
                    ImGui::SliderInt("##aimbot.shot_delay", &settings->shot_delay, 0, 100, "Shot Delay: %.0f");
                }
                ImGui::SliderInt("##aimbot.kill_delay", &settings->kill_delay, 0, 1000, "Kill Delay: %.0f");
                if (settings->backtrack.enabled) {
                    ImGui::SliderInt("##aimbot_backtrack_ticks", &settings->backtrack.ticks, 0, 12, "BackTrack Ticks: %.0f");
                }
                if (settings->autowall) {
                    ImGui::SliderInt("##aimbot.min_damage", &settings->min_damage, 1, 100, "Min Damage: %.0f");
                }
                ImGui::PopItemWidth();
            }
            ImGui::EndChild();
            ImGui::NextColumn();
            
            

            ImGui::BeginGroupBox("##body_content2");
            {
                ImGui::BeginChild("##aimbot.rcs", ImVec2(0, 0), true);
                {
                    ImGui::Text("Recoil Control System");
                    ImGui::Separator();
                    ImGui::PushItemWidth(-1);
                    ImGui::Checkbox("Enabled##aimbot.rcs", &settings->rcs);
                    ImGui::Text("RCS Type:");
                    static char* rcs_types[] = {
                    "Standalone",
                    "Aim"
                    };
                    ImGui::Combo("##aimbot.rcs_type", &settings->rcs_type, rcs_types, IM_ARRAYSIZE(rcs_types));
                    ImGui::Checkbox("RCS Custom Fov", &settings->rcs_fov_enabled);
                    if (settings->rcs_fov_enabled) {
                        ImGui::SliderFloat("##aimbot.rcs_fov", &settings->rcs_fov, 0, 20, "RCS Fov: %.2f");
                    }
                    ImGui::Checkbox("RCS Custom Smooth", &settings->rcs_smooth_enabled);
                    if (settings->rcs_smooth_enabled) {
                        ImGui::SliderFloat("##aimbot.rcs_smooth", &settings->rcs_smooth, 1, 15, "RCS Smooth: %.2f");
                    }
                    ImGui::SliderInt("##aimbot.rcs_x", &settings->rcs_x, 0, 100, "RCS X: %.0f");
                    ImGui::SliderInt("##aimbot.rcs_y", &settings->rcs_y, 0, 100, "RCS Y: %.0f");
                    ImGui::SliderInt("##aimbot.rcs_start", &settings->rcs_start, 1, 30, "RCS Start: %.0f");
                   // ImGui::PopItemWidth();
                }
                ImGui::EndChild();

            }
            ImGui::EndGroupBox();
            
        }
        ImGui::Columns(1, nullptr, false);
        ImGui::EndGroupBox();
       // ImGui::Columns(1, nullptr, false);
    }
 
Похожие темы
Сверху Снизу