local inicfg = require 'inicfg'
local HLcfg = inicfg.load({
config = {
slider = 3
}
}, 'test.ini')
inicfg.save(HLcfg, 'test.ini')
local slider = imgui.ImInt(HLcfg.config.slider)
--imgui
if imgui.SliderInt('test', slider, 0, 300) then
HLcfg.config.slider = slider.v
save()
end
--imgui
function save()
inicfg.save(HLcfg, 'test.ini')
end