- 49
- 3
- Версия MoonLoader
- Другое
Нужно сделать NoResize совместно с NoCollapse, и убрать крестик
code:
local success, imgui = pcall(require, 'mimgui')
if not success then
print('error 101 (mimgui not found!)')
end
local success, ffi = pcall(require, 'ffi')
if not success then
print('error 102 (ffi not found)')
end
local encoding = require 'encoding'
encoding.default = 'CP1251'
u8 = encoding.UTF8
local window = imgui.new.bool(true)
imgui.OnInitialize(function()
imgui.GetIO().IniFilename = nil
end)
local active = imgui.new.bool(false)
local text = imgui.new.char[64]()
imgui.OnFrame(
function() return true end,
function(this)
local size, res = imgui.ImVec2(450, 250), imgui.ImVec2(getScreenResolution())
imgui.SetNextWindowSize(size, imgui.Cond.FirstUseEver)
imgui.SetNextWindowPos(imgui.ImVec2(450, 250), imgui.Cond.FirstUseEver,
imgui.ImVec2(0.5, 0.5))
if (imgui.Begin('Apathy', window, imgui.WindowFlags.NoCollapse)) then
if (imgui.Button(u8'test')) then
sampSendChat('test') return
end
end
imgui.End()
end)