МимГуй Resize

Kotenok_Morenno

Новичок
Автор темы
11
1
Когда я делаю больше окно оно делается как была назад.
Хелпаните

Шшло:
script_author('MLycoris')
script_version('0.4')
require 'lib.moonloader'
local imgui = require 'mimgui'
local ffi = require 'ffi'
local encoding = require 'encoding'
encoding.default = 'CP1251'
local u8 = encoding.UTF8
local sampev = require 'lib.samp.events'
local new, str = imgui.new, ffi.string
local inicfg = require 'inicfg'
local settings = inicfg.load({
    nigger =
    {
        posX = 500,
        posY = 500,
        aroute = false, -- автовыбор маршрута
        aaroute = 0, -- список маршрутов
        sectimer = false, -- таймер
        secleftt = false, -- на экране хуйня
        timersec = 20, -- время таймера
        fgascan = false, -- бинд бензин
        fsport = false, -- фаст спорт
        cheat1 = false, -- поворот в сторону камеры
        cheat3 = false, -- резкий тормоз
        cheat4 = false, -- гм кар
        cheat6 = false, -- улучш управление
        frepair = false, -- фаст ремка
        fdom = false, -- фаст домкрат
        cheatpovorotset = 12, -- резкость улучш управ
        cheatcol = false, -- визуал доски / коллизия
        saroute = 0, -- список маршрутов СА
        tounSost = 0 -- 0 вс, 1 са
    }}, 'BusHelper.ini')
local status = inicfg.load(settings, 'BusHelper.ini')
if not doesFileExist('moonloader/config/BusHelper.ini') then inicfg.save(settings, 'BusHelper.ini') end

local FullCan, sportornotm, timeover, hpreg, hpreg2, gascheck, movewin = false, false, false, false, false, false, false
buscheck = {[14918] = true, [14919] = true, [437] = true} -- иды автобусов
local upr_status = false -- улучш управление
local vicecity_list = {u8'VC[1] Вайс Сити - экспресс (с аэропорта)', u8'VC[2] Вайс Сити - экспресс', u8'VC[3] Вайс Сити - городоской (правый берег)', u8'VC[4] Вайс Сити - городской (левый берег)'}
local vicecity = imgui.new['const char*'][#vicecity_list](vicecity_list)
local sanandreas_list = {u8'SA[1] Городской ЛС', u8'SA[2] ЖД ЛС - Джефферсон - Ферма - Завод', u8'SA[3] ЖД ЛС - Завод', u8'SA[4] ЖД ЛС - Лос Сантос - Грузчики', u8'SA[5] ЖД ЛС - ЖД ЛВ', u8'SA[6] ЖД ЛВ - ЛВПД - Спортзал - Больница ЛВ', u8'SA[7] ЖД ЛВ - Форт Карсон - ТСР - Карьер ЛВ', u8'SA[8] ЖД ЛС - Джефферсон - ЖД СФ - Центр лицензирования', u8'SA[9] ЖД ЛВ - Казино - Форт Карсон - ЖД СФ', u8'SA[10] Городской СФ', u8'SA[11] ЖД СФ - Ферма - РКШД - Завод'}
local sanandreas = imgui.new['const char*'][#sanandreas_list](sanandreas_list)

local renderWindow, saroute, cheatcol, cheatpovorotset, fdom, frepair, aroute, aaroute, sectimer, secleft, slider_timer, GasCan, sport, cheatrotation, cheattormoz, cheatgm, cheatpovorot = new.bool(), new.int(settings.nigger.saroute), new.bool(settings.nigger.cheatcol), new.int(settings.nigger.cheatpovorotset), new.bool(settings.nigger.fdom), new.bool(settings.nigger.frepair), new.bool(settings.nigger.aroute), new.int(settings.nigger.aaroute), new.bool(settings.nigger.sectimer), new.bool(settings.nigger.secleftt), new.int(settings.nigger.timersec), new.bool(settings.nigger.fgascan), new.bool(settings.nigger.fsport), new.bool(settings.nigger.cheat1), new.bool(settings.nigger.cheat3), new.bool(settings.nigger.cheat4), new.bool(settings.nigger.cheat6)
local sizeX, sizeY = getScreenResolution()
local object = nil -- ковш
local DoskaRight, DoskaLeft = nil, nil -- доска

imgui.OnInitialize(function()
    imgui.GetIO().IniFilename = nil
    theme()
end)

imgui.OnFrame(function() return renderWindow[0] end,
    function(player)
        imgui.SetNextWindowPos(imgui.ImVec2(sizeX / 2, sizeY / 2), imgui.Cond.FirstUseEver, imgui.ImVec2(0.5, 0.5))
        imgui.SetNextWindowSize(imgui.ImVec2(240, 315))
        imgui.Begin('BusHelper by MLycoris', renderWindow)
        if imgui.BeginTabBar('##Tabs') then
            if imgui.BeginTabItem(u8'Основное') then
                imgui.SetWindowSizeVec2(imgui.ImVec2(240, 345))
                imgui.CenterText(u8'Основное') imgui.Separator()
                if imgui.Checkbox(u8'Автовыбор маршрута', aroute) then -- фаст выбор
                    settings.nigger.aroute = aroute[0]
                    inicfg.save(settings, 'BusHelper.ini')
                end
                imgui.Hint('Hint1', u8'Автоматически начинает рейс по выбранному маршруту') -- подсказка
                imgui.SameLine()
                if imgui.ColoredButton('SA', 'F94242', (settings.nigger.tounSost == 1 and 50 or 25), imgui.ImVec2(30, 24)) then
                    settings.nigger.tounSost = 1
                    inicfg.save(settings, 'BusHelper.ini')
                end imgui.SameLine()
                if imgui.ColoredButton('VC', 'F94242', (settings.nigger.tounSost == 0 and 50 or 25), imgui.ImVec2(30, 24)) then
                    settings.nigger.tounSost = 0
                    inicfg.save(settings, 'BusHelper.ini')
                end
                if settings.nigger.tounSost == 0 then
                    imgui.PushItemWidth(220)
                    if imgui.Combo('##shit',aaroute,vicecity, #vicecity_list) then -- список маршрутов
                        settings.nigger.aaroute = aaroute[0]
                        inicfg.save(settings, 'BusHelper.ini')
                    end
                    imgui.PopItemWidth()
                elseif settings.nigger.tounSost == 1 then
                    imgui.PushItemWidth(220)
                    if imgui.Combo('##shittwo',saroute,sanandreas, #sanandreas_list) then -- список маршрутов
                        settings.nigger.saroute = saroute[0]
                        inicfg.save(settings, 'BusHelper.ini')
                    end
                    imgui.PopItemWidth()
                end
                if imgui.Checkbox(u8'Режим спорт', sport) then -- спорт режим
                    settings.nigger.fsport = sport[0]
                    inicfg.save(settings, 'BusHelper.ini')
                end
                imgui.Hint('Hint5', u8'Автоматически включает режим спорт. Обязательно наличие ТТ или Стейдж')
                imgui.Separator()
                -- == ТАЙМЕР == --
                imgui.CenterText(u8'Оповещение о выезде с остановки') imgui.Separator() imgui.SetCursorPosX(50)
                if imgui.Checkbox(u8'Звук', sectimer) then -- кнопка 20 сек
                    settings.nigger.sectimer = sectimer[0]
                    inicfg.save(settings, 'BusHelper.ini')
                end
                imgui.Hint('Hint2', u8'Звуковое оповещение по истечению таймера') -- подсказка
                imgui.SameLine()
                if imgui.Checkbox(u8'На экране', secleft) then -- отсчёт времени на экране
                    settings.nigger.secleftt = secleft[0]
                    inicfg.save(settings, 'BusHelper.ini')
                end imgui.PushItemWidth(230)
                imgui.Hint('Hint21', u8'Выводит оставшееся время до старта на экран')
                if imgui.SliderInt(u8'##сек', slider_timer, 10, 30) then-- ползунок
                    settings.nigger.timersec = slider_timer[0]
                    inicfg.save(settings, 'BusHelper.ini')
                end imgui.PopItemWidth() imgui.Separator()
                -- == БИНДЫ == --
                imgui.CenterText(u8'Бинды') imgui.Separator()
                if imgui.Button(u8"Полный бак", imgui.ImVec2(230, 24)) then FullCan = true end -- фаст заправка
                if imgui.Checkbox(u8'Канистра', GasCan) then-- заправка
                    settings.nigger.fgascan = GasCan[0]
                    inicfg.save(settings, 'BusHelper.ini')
                end
                imgui.Hint('Hint3', u8'Необходимо стоять у места заправки машины. Тратит 1 канистру.\nАктивация: Кнопка C+1') -- подсказка
                imgui.SameLine()
                if imgui.Checkbox(u8'Ремка', frepair) then-- заправка
                    settings.nigger.frepair = frepair[0]
                    inicfg.save(settings, 'BusHelper.ini')
                end
                imgui.Hint('Hint34', u8'Необходимо стоять у машины. Тратит 1 починку.\nАктивация: Кнопка C+2') -- подсказка
                imgui.SameLine()
                if imgui.Checkbox(u8'Домкрат', fdom) then-- заправка
                    settings.nigger.fdom = fdom[0]
                    inicfg.save(settings, 'BusHelper.ini')
                end
                imgui.Hint('Hint35', u8'Необходимо находится в машине. Тратит 1 домкрат.\nАктивация: Кнопка C+3') -- подсказка               
                imgui.EndTabItem()
            end
            if imgui.BeginTabItem(u8'Читы') then
                imgui.SetWindowSizeVec2(imgui.ImVec2(240, 325))
                if imgui.Checkbox(u8'Улучшенное управление', cheatpovorot) then -- спидхак
                    settings.nigger.cheat6 = cheatpovorot[0]
                    inicfg.save(settings, 'BusHelper.ini')
                end
                imgui.Hint('Hint612', u8'Идеально подойдёт для двуэтажных автобусов.') -- подсказка
                imgui.TextWrapped(u8'Вы можете включать/выключать этот режим, нажав цифру 3')
                imgui.Separator() imgui.CenterText(u8'Настройка резкости поворота')
                imgui.PushItemWidth(230)
                if imgui.SliderInt(u8'##12312', cheatpovorotset, 3, 18) then-- ползунок
                    settings.nigger.cheatpovorotset = cheatpovorotset[0]
                    inicfg.save(settings, 'BusHelper.ini')
                end imgui.PopItemWidth() imgui.Separator()
                if imgui.Checkbox(u8'Поворот в сторону камеры', cheatrotation) then -- повернуть абобус
                    settings.nigger.cheat1 = cheatrotation[0]
                    inicfg.save(settings, 'BusHelper.ini')
                end
                imgui.Hint('Hint6', u8'Поворачивает ваш автобус в ту сторону, куда направлена камера.\nАктивация:Правая кнопка мыши') -- подсказка
                if imgui.Checkbox(u8'Резкое торможение', cheattormoz) then -- встать на месте
                    settings.nigger.cheat3 = cheattormoz[0]
                    inicfg.save(settings, 'BusHelper.ini')
                end
                imgui.Hint('Hint8', u8'Позволяет на любой скорости резко остановится на месте.\nАктивация:Кнопка X(англ)') -- подсказка
                if imgui.Checkbox(u8'Броня', cheatcol) then -- типа гм
                    settings.nigger.cheatcol = cheatcol[0]
                    inicfg.save(settings, 'BusHelper.ini')
                    if cheatcol[0] == false then
                        deleteObject(object)
                        deleteObject(DoskaLeft)
                        deleteObject(DoskaRight)
                    end
                end
                imgui.Hint('Hint91', u8'Добавляет визуальный тюн сзади автобуса') -- подсказка
                if imgui.Checkbox(u8'GM Car', cheatgm) then -- типа гм
                    settings.nigger.cheat4 = cheatgm[0]
                    inicfg.save(settings, 'BusHelper.ini')
                end
                imgui.Hint('Hint9', u8'Автобус больше не будет получать урон.\nАктивация: Автоматическая') -- подсказка
                if imgui.Button(u8"Починить автобус") then hpreg = true end -- 1500 хп
                imgui.Hint('Hint1233', u8'Приводит автобус в изначальное состояние.') -- подсказка
                imgui.SameLine()
                if imgui.Button(u8"3000 HP") then hpreg2 = true end -- 3000 хп
                imgui.Hint('Hint123', u8'Выдаёт автобусу указанное количество HP.') -- подсказка
                imgui.EndTabItem()
            end
            imgui.EndTabBar()
        end
        imgui.End()
    end
)

function main()
    while not isSampAvailable() do wait(50) end
    sampRegisterChatCommand('bus', function()
        renderWindow[0] = not renderWindow[0]
    end)
    while true do
        if cheatcol[0] then
            if CarCheck() then
                if not doesObjectExist(object) then
                    object = createObject(19601, 0, 0, -10)
                    DoskaLeft = createObject(983, 0, 0, -10)
                    DoskaRight = createObject(983, 0, 0, -10)
                else
                    local veh = storeCarCharIsInNoSave(PLAYER_PED)
                    local c = getCarModelCorners(getCarModel(veh))
                    local offset = getDistanceBetweenCoords3d(c[1][1], c[1][2], c[1][3], c[4][1], c[4][2], c[4][3])
                    setObjectScale(object, 1)
                    setObjectScale(DoskaLeft, 1)
                    setObjectScale(DoskaRight, 1)
                    attachObjectToCar(object, veh, 0, -offset / 2, 0, 0, 0, 0) -- задница
                    attachObjectToCar(DoskaLeft, veh, -1.5, offset-13.5, 0, 0, 0, 0) -- левая
                    attachObjectToCar(DoskaRight, veh, 1.5, -offset+9, 0, 0, 0, 0) -- правая сторона
                end
            else
                deleteObject(object)
                deleteObject(DoskaLeft)
                deleteObject(DoskaRight)
            end
        end
        if movewin then
            settings.nigger.posX, settings.nigger.posY = getCursorPos()
            if isKeyJustPressed(1) then
                movewin = false
            end
            inicfg.save(settings, 'BusHelper.ini')
        end
        if cheatpovorot[0] and not sampIsCursorActive() and wasKeyPressed(0x33) then
            upr_status = not upr_status
            printStyledString(upr_status and 'ON' or 'OFF', 1000, 7)
        end
        if cheatpovorot[0] and upr_status and not sampIsCursorActive() and CarCheck() then
            if isKeyDown(65) then
                addToCarRotationVelocity(storeCarCharIsInNoSave(PLAYER_PED), 0.0, 0.0, cheatpovorotset[0]/100)
            elseif isKeyDown(68) then
                addToCarRotationVelocity(storeCarCharIsInNoSave(PLAYER_PED), 0.0, 0.0, -cheatpovorotset[0]/100)
            end
        end
        if sectimer[0] and sampIsCursorActive() and timeover and CarCheck() then
            local TimerEnd = slider_timer[0]*1000
            wait(TimerEnd)
            addOneOffSound(0.0, 0.0, 0.0, 1057)
            timeover = false
        end
        if FullCan and not isCharInAnyCar(PLAYER_PED) then
            for i = 1, 6, 1 do
                sampSendChat('/fillcar')
                sampAddChatMessage('{FF634F}[{ffffff}BusHelper{FF634F}] {ffffff}Транспортное средство {32CD32}заправлено{ffffff} (' .. i .. '/6)',-1)
                wait(11000)
            end
            FullCan = false
        end
        if frepair[0] and isKeyDown(0x43) and wasKeyPressed(0x32) and sampIsCursorActive() and not isCharInAnyCar(PLAYER_PED) then
            sampSendChat('/repcar')
            sampAddChatMessage('{FF634F}[{ffffff}BusHelper{FF634F}] {ffffff}Транспортное средство {32CD32}отремонтировано',-1)
        end
        if fdom[0] and isKeyDown(0x43) and wasKeyPressed(0x33) and sampIsCursorActive() and isCharInAnyCar(PLAYER_PED) then
            sampSendChat('/domkrat')
            sampAddChatMessage('{FF634F}[{ffffff}BusHelper{FF634F}] {ffffff}Транспортное средство {32CD32}поставлено на колёса',-1)
        end
        if GasCan[0] and isKeyDown(0x43) and wasKeyPressed(0x31) and sampIsCursorActive() and not isCharInAnyCar(PLAYER_PED) then
            sampSendChat('/fillcar') 
            gascheck = true
        end
        if cheatrotation[0] and CarCheck() and sampIsCursorActive() and isKeyJustPressed(0x02) then
            local car = storeCarCharIsInNoSave(PLAYER_PED)
            local cx, cy, _ = getActiveCameraCoordinates()
            local px, py, _ = getActiveCameraPointAt()
            local angle = getHeadingFromVector2d(px - cx, py - cy)
            setCarHeading(car, angle)
            wait(1000)
        end
        if cheattormoz[0] and CarCheck() and sampIsCursorActive() and isKeyJustPressed(VK_X) then
            local posX, posY, posZ = getCharCoordinates(PLAYER_PED)
            local posiZ = posZ - 1
            setCharCoordinates(PLAYER_PED, posX, posY, posiZ)
            wait(1000)
        end
        if cheatgm[0] and CarCheck() then
            setCarProofs(storeCarCharIsInNoSave(playerPed), true, true, true, true, true)
        end
        if sportornot and sport[0] and CarCheck() then
            sampSendChat('/style')
            sportornot = false
        end
        if hpreg or hpreg2 then
            i = 0
            repeat
                if CarCheck() and hpreg then
                    setCarRoll(storeCarCharIsInNoSave(1), 0)
                    wait(100)
                    setCarHealth(storeCarCharIsInNoSave(1), 1500)
                    wait(100)
                    fixCar(storeCarCharIsInNoSave(1))
                end
                if CarCheck() and hpreg2 then
                    setCarRoll(storeCarCharIsInNoSave(1), 0)
                    wait(100)
                    setCarHealth(storeCarCharIsInNoSave(1), 3000)
                    wait(100)
                    fixCar(storeCarCharIsInNoSave(1))
                end
                i = i + 1
            until i == 15
            hpreg = false
            hpreg2 = false
        end
        wait(0)
    end
end

function sampev.onServerMessage(color, text)
    if text:find("Остановите автобус и подождите пассажиров") then
        lua_thread.create(function()
            timeover = true
            if secleft[0] == true then
                for i = slider_timer[0], 1, -1 do
                    printStyledString(i, 1000, 7)
                    wait(1000)
                end
            end
        end)
    end
    if text:find('Изменить стиль езды можно только если у вас установлены') then
        sportcheck = false
    end
    if gascheck == true then
        lua_thread.create(function()
            if text:find('Рядом с вами нет подходящего транспорта') then
                sampAddChatMessage('{FF634F}[{ffffff}BusHelper{FF634F}] {ffffff}Заправка {FF634F}не удалась{ffffff}, попробуйте поменять позицию',-1)
            elseif text:find('заправил свой транспорт') then
                wait(1000)
                sampAddChatMessage('{FF634F}[{ffffff}BusHelper{FF634F}] {ffffff}Транспортное средство {32CD32}заправлено{ffffff} на 15 л.',-1)
                wait(9000)
                sampAddChatMessage('{FF634F}[{ffffff}BusHelper{FF634F}] {ffffff}Вы можете заправить транспортное средство ещё раз',-1)
            end
            gascheck = false
        end)
    end
end

function sampev.onShowDialog(id, style, title, button1, button2, text)
    if aroute[0] == true and CarCheck() then
        if id == 285 then
            sampSendDialogResponse(id,1,0,nil)
            return false
        end
        if id == 282 then
            sampSendDialogResponse(id,1,0,'100')
            return false
        end
        if id == 283 then
            sampSendDialogResponse(id,1,((settings.nigger.tounSost == 0 and aaroute[0]) or (settings.nigger.tounSost == 1 and saroute[0])),nil)
            return false
        end
    end
end

function sampev.onShowTextDraw(id, data)
    if data.text:match('Comfort') and sport[0] then
        sportornot = true
    end
end
function sampev.onDisplayGameText(style, time, text)
    if text:match('Comfort') and sport[0] then
        sportornot = true
    end
end
-- OTHER --
function CarCheck()
    if isCharInAnyCar(PLAYER_PED) and buscheck[getCarModel(storeCarCharIsInNoSave(playerPed))] then
        return true
    end
end
function imgui.ColoredButton(text,hex,trans,size)
    local r,g,b = tonumber("0x"..hex:sub(1,2)), tonumber("0x"..hex:sub(3,4)), tonumber("0x"..hex:sub(5,6))
    if tonumber(trans) ~= nil and tonumber(trans) < 101 and tonumber(trans) > 0 then
        a = trans
    else a = 60 end
    imgui.PushStyleColor(imgui.Col.Button, imgui.ImVec4(r/255, g/255, b/255, a/100))
    imgui.PushStyleColor(imgui.Col.ButtonHovered, imgui.ImVec4(r/255, g/255, b/255, a/100))
    imgui.PushStyleColor(imgui.Col.ButtonActive, imgui.ImVec4(r/255, g/255, b/255, a/100))
    local button = imgui.Button(text, size)
    imgui.PopStyleColor(3)
    return button
end
function getCarModelCorners(id)
    local x1, y1, z1, x2, y2, z2 = getModelDimensions(id)
    local t = {
        [1] = {getOffsetFromCarInWorldCoords(storeCarCharIsInNoSave(PLAYER_PED), x1         , y1 * -1.0, z1)}, -- {x = x1, y = y1 * -1.0, z = z1},
        [2] = {getOffsetFromCarInWorldCoords(storeCarCharIsInNoSave(PLAYER_PED), x1 * -1.0  , y1 * -1.0, z1)}, -- {x = x1 * -1.0, y = y1 * -1.0, z = z1},
        [3] = {getOffsetFromCarInWorldCoords(storeCarCharIsInNoSave(PLAYER_PED), x1 * -1.0  , y1       , z1)}, -- {x = x1 * -1.0, y = y1, z = z1},
        [4] = {getOffsetFromCarInWorldCoords(storeCarCharIsInNoSave(PLAYER_PED), x1         , y1       , z1)}, -- {x = x1, y = y1, z = z1},
        [5] = {getOffsetFromCarInWorldCoords(storeCarCharIsInNoSave(PLAYER_PED), x2 * -1.0  , y2       , z10)}, -- {x = x2 * -1.0, y = 0, z = 0},
        [6] = {getOffsetFromCarInWorldCoords(storeCarCharIsInNoSave(PLAYER_PED), x2 * -1.0  , y2 * -1.0, z2)}, -- {x = x2 * -1.0, y = y2 * -1.0, z = z2},
        [7] = {getOffsetFromCarInWorldCoords(storeCarCharIsInNoSave(PLAYER_PED), x2         , y2 * -1.0, z2)}, -- {x = x2, y = y2 * -1.0, z = z2},
        [8] = {getOffsetFromCarInWorldCoords(storeCarCharIsInNoSave(PLAYER_PED), x2         , y2       , z2)}, -- {x = x2, y = y2, z = z2},
    }
    return t
end
function imgui.Hint(str_id, hint, delay)
    local hovered = imgui.IsItemHovered()
    local animTime = 0.2
    local delay = delay or 0.00
    local show = true

    if not allHints then allHints = {} end
    if not allHints[str_id] then
        allHints[str_id] = {
            status = false,
            timer = 0
        }
    end

    if hovered then
        for k, v in pairs(allHints) do
            if k ~= str_id and os.clock() - v.timer <= animTime  then
                show = false
            end
        end
    end

    if show and allHints[str_id].status ~= hovered then
        allHints[str_id].status = hovered
        allHints[str_id].timer = os.clock() + delay
    end

    if show then
        local between = os.clock() - allHints[str_id].timer
        if between <= animTime then
            local s = function(f)
                return f < 0.0 and 0.0 or (f > 1.0 and 1.0 or f)
            end
            local alpha = hovered and s(between / animTime) or s(1.00 - between / animTime)
            imgui.PushStyleVarFloat(imgui.StyleVar.Alpha, alpha)
            imgui.SetTooltip(hint)
            imgui.PopStyleVar()
        elseif hovered then
            imgui.SetTooltip(hint)
        end
    end
end
function imgui.CenterText(text)
    local width = imgui.GetWindowWidth()
    local height = imgui.GetWindowHeight()
    local calc = imgui.CalcTextSize(text)
    imgui.SetCursorPosX( width / 2 - calc.x / 2 )
    imgui.Text(text)
end
function theme()
    imgui.SwitchContext()
    local style = imgui.GetStyle()
    local ImVec4 = imgui.ImVec4
    imgui.GetStyle().WindowPadding = imgui.ImVec2(5, 5)
    imgui.GetStyle().FramePadding = imgui.ImVec2(5, 5)
    imgui.GetStyle().ItemSpacing = imgui.ImVec2(5, 5)
    imgui.GetStyle().ItemInnerSpacing = imgui.ImVec2(2, 2)
    imgui.GetStyle().TouchExtraPadding = imgui.ImVec2(0, 0)
    imgui.GetStyle().IndentSpacing = 0
    imgui.GetStyle().ScrollbarSize = 10
    imgui.GetStyle().GrabMinSize = 10
    imgui.GetStyle().WindowBorderSize = 1
    imgui.GetStyle().ChildBorderSize = 1
    imgui.GetStyle().PopupBorderSize = 1
    imgui.GetStyle().FrameBorderSize = 1
    imgui.GetStyle().TabBorderSize = 1
    imgui.GetStyle().WindowRounding = 8
    imgui.GetStyle().ChildRounding = 8
    imgui.GetStyle().FrameRounding = 8
    imgui.GetStyle().PopupRounding = 8
    imgui.GetStyle().ScrollbarRounding = 8
    imgui.GetStyle().GrabRounding = 8
    imgui.GetStyle().TabRounding = 8
  
    imgui.GetStyle().Colors[imgui.Col.Text]                   = ImVec4(1.00, 1.00, 1.00, 1.00)
    imgui.GetStyle().Colors[imgui.Col.TextDisabled]           = ImVec4(0.50, 0.50, 0.50, 1.00)
    imgui.GetStyle().Colors[imgui.Col.WindowBg]               = ImVec4(0.06, 0.06, 0.06, 0.94)
    imgui.GetStyle().Colors[imgui.Col.ChildBg]                = ImVec4(1.00, 1.00, 1.00, 0.00)
    imgui.GetStyle().Colors[imgui.Col.PopupBg]                = ImVec4(0.08, 0.08, 0.08, 0.94)
    imgui.GetStyle().Colors[imgui.Col.Border]                 = ImVec4(0.43, 0.43, 0.50, 0.50)
    imgui.GetStyle().Colors[imgui.Col.BorderShadow]           = ImVec4(0.00, 0.00, 0.00, 0.00)
    imgui.GetStyle().Colors[imgui.Col.FrameBg]                = ImVec4(0.48, 0.16, 0.16, 0.54)
    imgui.GetStyle().Colors[imgui.Col.FrameBgHovered]         = ImVec4(0.98, 0.26, 0.26, 0.40)
    imgui.GetStyle().Colors[imgui.Col.FrameBgActive]          = ImVec4(0.98, 0.26, 0.26, 0.67)
    imgui.GetStyle().Colors[imgui.Col.TitleBg]                = ImVec4(0.04, 0.04, 0.04, 1.00)
    imgui.GetStyle().Colors[imgui.Col.TitleBgActive]          = ImVec4(0.48, 0.16, 0.16, 1.00)
    imgui.GetStyle().Colors[imgui.Col.TitleBgCollapsed]       = ImVec4(0.00, 0.00, 0.00, 0.51)
    imgui.GetStyle().Colors[imgui.Col.MenuBarBg]              = ImVec4(0.14, 0.14, 0.14, 1.00)
    imgui.GetStyle().Colors[imgui.Col.ScrollbarBg]            = ImVec4(0.02, 0.02, 0.02, 0.53)
    imgui.GetStyle().Colors[imgui.Col.ScrollbarGrab]          = ImVec4(0.31, 0.31, 0.31, 1.00)
    imgui.GetStyle().Colors[imgui.Col.ScrollbarGrabHovered]   = ImVec4(0.41, 0.41, 0.41, 1.00)
    imgui.GetStyle().Colors[imgui.Col.ScrollbarGrabActive]    = ImVec4(0.51, 0.51, 0.51, 1.00)
    imgui.GetStyle().Colors[imgui.Col.CheckMark]              = ImVec4(0.98, 0.26, 0.26, 1.00)
    imgui.GetStyle().Colors[imgui.Col.SliderGrab]             = ImVec4(0.88, 0.26, 0.24, 1.00)
    imgui.GetStyle().Colors[imgui.Col.SliderGrabActive]       = ImVec4(0.98, 0.26, 0.26, 1.00)
    imgui.GetStyle().Colors[imgui.Col.Button]                 = ImVec4(0.98, 0.26, 0.26, 0.40)
    imgui.GetStyle().Colors[imgui.Col.ButtonHovered]          = ImVec4(0.98, 0.26, 0.26, 1.00)
    imgui.GetStyle().Colors[imgui.Col.ButtonActive]           = ImVec4(0.98, 0.06, 0.06, 1.00)
    imgui.GetStyle().Colors[imgui.Col.Header]                 = ImVec4(0.98, 0.26, 0.26, 0.31)
    imgui.GetStyle().Colors[imgui.Col.HeaderHovered]          = ImVec4(0.98, 0.26, 0.26, 0.80)
    imgui.GetStyle().Colors[imgui.Col.HeaderActive]           = ImVec4(0.98, 0.26, 0.26, 1.00)
    imgui.GetStyle().Colors[imgui.Col.Separator]              = ImVec4(0.43, 0.43, 0.50, 0.50)
    imgui.GetStyle().Colors[imgui.Col.SeparatorHovered]       = ImVec4(0.75, 0.10, 0.10, 0.78)
    imgui.GetStyle().Colors[imgui.Col.SeparatorActive]        = ImVec4(0.75, 0.10, 0.10, 1.00)
    imgui.GetStyle().Colors[imgui.Col.ResizeGrip]             = ImVec4(0.98, 0.26, 0.26, 0.25)
    imgui.GetStyle().Colors[imgui.Col.ResizeGripHovered]      = ImVec4(0.98, 0.26, 0.26, 0.67)
    imgui.GetStyle().Colors[imgui.Col.ResizeGripActive]       = ImVec4(0.98, 0.26, 0.26, 0.95)
    imgui.GetStyle().Colors[imgui.Col.Tab]                    = ImVec4(0.98, 0.26, 0.26, 0.40)
    imgui.GetStyle().Colors[imgui.Col.TabHovered]             = ImVec4(0.98, 0.26, 0.26, 1.00)
    imgui.GetStyle().Colors[imgui.Col.TabActive]              = ImVec4(0.98, 0.06, 0.06, 1.00)
    imgui.GetStyle().Colors[imgui.Col.TabUnfocused]           = ImVec4(0.98, 0.26, 0.26, 1.00)
    imgui.GetStyle().Colors[imgui.Col.TabUnfocusedActive]     = ImVec4(0.98, 0.26, 0.26, 1.00)
    imgui.GetStyle().Colors[imgui.Col.PlotLines]              = ImVec4(0.61, 0.61, 0.61, 1.00)
    imgui.GetStyle().Colors[imgui.Col.PlotLinesHovered]       = ImVec4(1.00, 0.43, 0.35, 1.00)
    imgui.GetStyle().Colors[imgui.Col.PlotHistogram]          = ImVec4(0.90, 0.70, 0.00, 1.00)
    imgui.GetStyle().Colors[imgui.Col.PlotHistogramHovered]   = ImVec4(1.00, 0.60, 0.00, 1.00)
    imgui.GetStyle().Colors[imgui.Col.TextSelectedBg]         = ImVec4(0.98, 0.26, 0.26, 0.35)
end
 

Fott

Простреленный
3,435
2,280