как это фиксить

.KOHTOP.

Активный
Автор темы
219
35
Версия MoonLoader
.026-beta
1709994288679.png
- цвета рандомные, не осуждайте

Lua:
                for k, v in ipairs(color) do
                    if imgui.ColoredRadioButtonBool('###color1', false or true, v) then
                        cradio = true
                    end
                end

Lua:
function imgui.ColoredRadioButtonBool(label, state, color)
    local DL, p, size = imgui.GetWindowDrawList(), imgui.GetCursorScreenPos(), imgui.ImVec2(20, 20)
    local button = imgui.InvisibleButton('##radio_'..label, size)
    DL:AddCircleFilled(imgui.ImVec2(p.x + size.x / 2, p.y + size.y / 2), size.x / 2, imgui.GetColorU32Vec4(imgui.ImVec4(color.x, color.y, color.z, 0.5)), 100)
    DL:AddCircleFilled(imgui.ImVec2(p.x + size.x / 2, p.y + size.y / 2), size.x / 2.7, imgui.GetColorU32Vec4(color), 100)
    if state then
        DL:AddCircle(imgui.ImVec2(p.x + size.x / 2, p.y + size.y / 2), size.x / 2 + 1, 0xCCffffff, 100, 2)
    end
    return button
end
Lua:
local color = {
    imgui.ImVec4(0.8, 1, 0.3, 1),
    imgui.ImVec4(0.23, 0.45, 1, 1),
    imgui.ImVec4(0.8, 1, 0.3, 1),
    imgui.ImVec4(0.23, 0.45, 1, 1),
    }

мда
 
Последнее редактирование:
  • Эм
Реакции: Дядя Энрик.