need help

Runbu73

Участник
Автор темы
75
2
I need to transfer this to an imgui

if uv0.vxweapon.v and fonts_loaded then
slot11, slot12 = getScreenResolution()

d3dxfont_draw(font_weap2, slot13, {
slot9 + uv2.x - 2,
slot10 + uv2.y - 2,
slot11,
slot12
}, 4278190080.0, 16)
d3dxfont_draw(font_weap, uv1[getCurrentCharWeapon(v)][2], {
slot9+uv2.x,
slot10+uv2.y,
slot11,
slot12
}, 4294967295.0, 16)
end
end
end
end
end
end
end
 

zhangfx111

Участник
73
13
?

if uv0.vxweapon.v and fonts_loaded then
slot11, slot12 = getScreenResolution()
imgui.SetCursorPos(slot9 + uv2.x - 2, slot10 + uv2.y - 2)
imgui.ImageButton(slot13, slot11, slot12, { 0, 0 }, { 1, 1 }, { 0, 0, 0, 0.5 }, { 0, 0, 0, 0.5 })
imgui.SetCursorPos(slot9 + uv2.x, slot10 + uv2.y)
imgui.TextColored(1.0, 1.0, 1.0, 1.0, uv1[getCurrentCharWeapon(v)][2])
end