[IMGUI] Прозрачность окна

Miron_Diamond

Новичок
Автор темы
8
0
Версия MoonLoader
.026-beta
Как можно изменить прозрачность окна imgui? Или как вообще её можно убрать?
 
Решение
Lua:
-- Где-то в коде:
function apply_custom_style()
    imgui.SwitchContext()
    local style = imgui.GetStyle()
    local colors = style.Colors
    local clr = imgui.Col
    local ImVec4 = imgui.ImVec4
    colors[clr.FrameBg]                = ImVec4(0.48, 0.23, 0.16, 0.54) -- R, G, B, A
    colors[clr.FrameBgHovered]         = ImVec4(0.98, 0.43, 0.26, 0.40) -- R, G, B, A
    colors[clr.FrameBgActive]          = ImVec4(0.98, 0.43, 0.26, 0.67) -- R, G, B, A
end
apply_custom_style()

CaJlaT

Овощ
Модератор
2,808
2,613
Lua:
-- Где-то в коде:
function apply_custom_style()
    imgui.SwitchContext()
    local style = imgui.GetStyle()
    local colors = style.Colors
    local clr = imgui.Col
    local ImVec4 = imgui.ImVec4
    colors[clr.FrameBg]                = ImVec4(0.48, 0.23, 0.16, 0.54) -- R, G, B, A
    colors[clr.FrameBgHovered]         = ImVec4(0.98, 0.43, 0.26, 0.40) -- R, G, B, A
    colors[clr.FrameBgActive]          = ImVec4(0.98, 0.43, 0.26, 0.67) -- R, G, B, A
end
apply_custom_style()