Fixed glitch with textures
All TextInputs are temporarily inactive
imgui.OnInitialize has been removed
imgui.onFrame has been replaced by imgui.Paint
Lua:local ImGui = require( 'cimgui' ) ImGui.Paint( function( ) ImGui.Begin( 'Test' ) ImGui.End( ) end )
DrawBlurRect has been replaced by DrawBlur
Lua:local ImGui = require( 'cimgui' ) ImGui.Paint( function( ) ImGui.Begin( 'Test' ) local draw_list = ImGui.GetWindowDrawList( ) local pos, size = ImGui.GetWindowPos( ), ImGui.GetWindowSize( ) ImGui.DrawBlur( draw_list, pos, pos + size, ImGui.ImColor( 255, 0, 0, 255 ):U32( ) ) ImGui.End( ) end )
Updated VT
DrawCornerFlags replaced by DrawFlags
Added a new U32 method for ImColor and ImVec4
Lua:local ImGui = require( 'cimgui' ) ImGui.OnFrame( function( ) return true end, function( ) local draw_list = ImGui.GetBackgroundDrawList( ) local pos = ImGui.ImVec2( 200, 200 ) local size = ImGui.ImVec2( 100, 100 ) draw_list:AddRectFilled( pos, pos + size, ImGui.ImColor( 255, 255, 255, 255 ):U32( ) ) --does not crash draw_list:AddRectFilled( pos, pos + size, ImGui.ImVec4( 1, 1, 1, 1 ):U32( ) ) --does not crash draw_list:AddRectFilled( pos, pos + size, ImGui.U32( 1, 1, 1, 1 ) ) --does not crash draw_list:AddRectFilled( pos, pos + size, ImGui.ImColor( 255, 255, 255, 255 ) ) --crash draw_list:AddRectFilled( pos, pos + size, ImGui.ImVec4( 1, 1, 1, 1 ) ) --crash end )
Added DrawBlur( draw_list )
Added DrawBlurRect( draw_list, min, max, col, rounding, flags )
Updated VT