Imgui

Kareli

Участник
Автор темы
76
6
Версия MoonLoader
.027.0-preview
Как создать если нажмешь на эту вкладку откроется функции
Screenshot_12.png
 
Последнее редактирование:

histor

Известный
175
111
Наверное надо использовать imgui combo или открывать другое окно путём
Code:
if imgui.Button('Button', imgui.ImVec2(ширина, высота)) then
    --code
end
или
Code:
if imgui.Button('ImGui Example', btn_size) then
    show_imgui_example.v = not show_imgui_example.v
end

if show_imgui_example.v then
    imgui.Begin('ImGui example', show_imgui_example)
    imgui.Text('Hello, world!')
    imgui.SliderFloat('float', slider_float, 0.0, 1.0)
    imgui.ColorEdit3('clear color', clear_color)
    if imgui.Button('Test Window') then
        show_test_window.v = not show_test_window.v
    end
    if imgui.Button('Another Window') then
        show_another_window.v = not show_another_window.v
    end
    local framerate = imgui.GetIO().Framerate
    imgui.Text(string.format('Application average %.3f ms/frame (%.1f FPS)', 1000.0 / framerate, framerate))
    imgui.End()
end