сайт по нажатию картинки

goosik

Участник
Автор темы
60
5
Приветик, как сделать так, чтоб при нажатии на картинку тебя переносило на сайт бластхака?
код:
imgui.SetCursorPosX(235)
        imgui.SetCursorPosY(25)
        imgui.BeginChild("Кошэка мур мауэ", imgui.ImVec2(60, 60), true) -- рамка 3
        size = imgui.ImVec2(45,45)
        imgui.ImageButton(img, size, imgui.ImVec2(0,0),  imgui.ImVec2(1,1), -1, imgui.ImVec4(1,1,1,0), imgui.ImVec4(1,1,1,1));
        
        imgui.EndChild()

1704975425634.png
 

goosik

Участник
Автор темы
60
5
Lua:
if imgui.ImageButton(...) then
    os.execute('explorer "https://blast.hk"')
end
или
Lua:
imgui.ImageButton(...)
if imgui.IsItemClicked() then
    os.execute('explorer "https://blast.hk"')
end
не факт, что первое будет работать
спасибо сладкий

Lua:
if imgui.ImageButton(...) then
    os.execute('explorer "https://blast.hk"')
end
или
Lua:
imgui.ImageButton(...)
if imgui.IsItemClicked() then
    os.execute('explorer "https://blast.hk"')
end
не факт, что первое будет работать
второй способ сработал, спасибо