local backgroundImage = nil
imgui.OnInitialize(function()
backgroundImage = imgui.CreateTextureFromFile('file.png')
end)
local Frame = imgui.OnFrame(
function() return renderWindow[0] end,
function(this)
imgui.GetBackgroundDrawList():AddImage(backgroundImage, imgui.ImVec2(0, 0), imgui.ImVec2(getScreenResolution()))
if imgui.Begin('Window', renderWindow) then
imgui.Text('text')
imgui.End()
end
end
)