-- outside mimgui
local radioBool = imgui.new.bool()
local radioInt = imgui.new.int()
-- in mimgui
if imgui.RadioButtonBool('RadioButton',radioBool[0]) then
radioBool[0] = not radioBool[0]
end
for i = 0, 3 do
if imgui.RadioButtonIntPtr(tostring(i),radioInt,i) then
radioInt[0] = i
end
end