кнопкa imgui

Mr.Mastire222

Известный
Автор темы
529
259
Версия MoonLoader
.026-beta
Как поместить кнопки imgui в child?

codeode:
if imgui.Button(u8"Информация", imgui.ImVec2(100, 50)) then
            textinfo = not textinfo
         end
        if textinfo then
            imgui.SameLine()
            imgui.Text(u8(info_text_dialog))
        end

        if imgui.Button(u8"Отладка", imgui.ImVec(100, 50)) then
            ptext = not ptext
        end
        if ptext then
            imguiSameLine()
            imgui.Text(u8"ec")
        end
 

chapo

🫡 В армии с 17.10.2023. В ЛС НЕ ОТВЕЧАЮ
Друг
8,768
11,210
Как поместить кнопки imgui в child?

codeode:
if imgui.Button(u8"Информация", imgui.ImVec2(100, 50)) then
            textinfo = not textinfo
         end
        if textinfo then
            imgui.SameLine()
            imgui.Text(u8(info_text_dialog))
        end

        if imgui.Button(u8"Отладка", imgui.ImVec(100, 50)) then
            ptext = not ptext
        end
        if ptext then
            imguiSameLine()
            imgui.Text(u8"ec")
        end
создать чайлд и переместить код в него (после imgui.BeginChild и до imgui.EndChild)
 
  • Нравится
Реакции: Mr.Mastire222