renderFontDrawText and ColorEdit4

Tak

Известный
Автор темы
176
70
Ребятушки, привет. Помогите пжлста, как из ColorEdit4 достать цвет и присвоить его renderFontDrawText ? (принимает цвет ARGB по типу: 0xFF97F363)
Как достать я понял, а как дальше - тупик

Lua:
local cedit = imgui.ImFloat4(1.00, 1.00, 1.00, 1.00)
local r, g, b, a = imgui.ImColor.FromFloat4(cedit.v[1], cedit.v[2], cedit.v[3], cedit.v[4]):GetRGBA()

imgui.ColorEdit4('Text', cedit)
renderFontDrawText(my_font, string.format("%s[%d]", name, ID), playerX, playerY, 0xFF97F363)
 
Последнее редактирование: