local ffi = require('ffi');
local imgui = require('mimgui');
local encoding = require('encoding');
encoding.default = 'CP1251';
local u8 = encoding.UTF8;
local komanda = imgui.new.bool(false);
function() return komanda[0] end,
function(this)
local size, res = imgui.ImVec2(400, 400), imgui.ImVec2(getScreenResolution());
imgui.SetNextWindowPos(imgui.ImVec2(res.x / 2, res.y / 2), imgui.Cond.FirstUseEver, imgui.ImVec2(0.5, 0.5));
imgui.SetNextWindowSize(size, imgui.Cond.FirstUseEver)
if imgui.Begin(u8'test', komanda, imgui.TableColumnFlags.NoResize) then
if imgui.InputTextWithHint(u8'##add', u8'a', inputField, 256) then
ini.settings.bikerlit_komanda = u8:decode(str(inputField))
end
imgui.SameLine()
if imgui.Button(u8'Сохранить') then
end
end
)