function imgui.TextHex(text, hex, trans)
imgui.PushStyleColor(imgui.Col.Text, imgui.ImVec4(tonumber(hex:sub(1, 2), 16) / 255, tonumber(hex:sub(5, 6), 16) / 255, tonumber(hex:sub(5, 6), 16) / 255, (tonumber(trans) ~= nil and tonumber(trans) < 101 and tonumber(trans) > 0 and tonumber(trans)) or 100 / 100))
local colsep = imgui.Text(text)
imgui.PopStyleColor(1)
return colsep
end
function imgui.ButtonHex(label, size, hex, trans)
local r,g,b,a = tonumber("0x"..hex:sub(1,2)), tonumber("0x"..hex:sub(3,4)), tonumber("0x"..hex:sub(5,6)), (tonumber(trans) ~= nil and tonumber(trans) < 101 and tonumber(trans) > 0 and tonumber(trans)) or 100
imgui.PushStyleColor(imgui.Col.Button, imgui.ImVec4(r / 255, g / 255, b / 255, a / 60))
imgui.PushStyleColor(imgui.Col.ButtonHovered, imgui.ImVec4(r / 255, g / 255, b / 255, a / 80))
imgui.PushStyleColor(imgui.Col.ButtonActive, imgui.ImVec4(r / 255, g / 255, b / 255, a / 100))
local button = imgui.Button(lable, size)
imgui.PopStyleColor(3)
return button
end