imgui pos

who?.

Участник
Автор темы
56
2
Версия MoonLoader
.026-beta
как изменить расположение имгуи окна в реальном времени
к премеру,нажал я на кнопку - и имгуи окно в другом месте
 

sat0ry

Известный
1,087
298
как изменить расположение имгуи окна в реальном времени
к премеру,нажал я на кнопку - и имгуи окно в другом месте
lua:
if imgui.Button('Pos') then
    imgui.SetNextWindowPos(x, y) -- x, y пиши свои координаты
end
 

who?.

Участник
Автор темы
56
2
lua:
if imgui.Button('Pos') then
    imgui.SetNextWindowPos(x, y) -- x, y пиши свои координаты
end
[15:33:41.089787] (error) anims.lua: D:\GTA\GTASHKA\moonloader\anims.lua:1224: stack index 1, expected userdata, received number: value is not a valid userdata (bad argument into 'void(const structImVec2&, sol::optional<int>, sol::optional<ImVec2 const *>)')
stack traceback:
[C]: in function 'SetNextWindowPos'
D:\GTA\GTASHKA\moonloader\anims.lua:1224: in function 'OnDrawFrame'
D:\GTA\GTASHKA\moonloader\lib\imgui.lua:1378: in function <D:\GTA\GTASHKA\moonloader\lib\imgui.lua:1367>
[15:33:41.091788] (error) anims.lua: Script died due to an error. (16670444)
 

sat0ry

Известный
1,087
298
[15:33:41.089787] (error) anims.lua: D:\GTA\GTASHKA\moonloader\anims.lua:1224: stack index 1, expected userdata, received number: value is not a valid userdata (bad argument into 'void(const structImVec2&, sol::optional<int>, sol::optional<ImVec2 const *>)')
stack traceback:
[C]: in function 'SetNextWindowPos'
D:\GTA\GTASHKA\moonloader\anims.lua:1224: in function 'OnDrawFrame'
D:\GTA\GTASHKA\moonloader\lib\imgui.lua:1378: in function <D:\GTA\GTASHKA\moonloader\lib\imgui.lua:1367>
[15:33:41.091788] (error) anims.lua: Script died due to an error. (16670444)
imgui:
imgui.SetNextWindowSize(imgui.ImVec2(размер_х, размер_у), imgui.Cond.FirstUseEver)