- 116
 
- 69
 
- Версия MoonLoader
 - .026-beta
 
Привет, у меня проблема с открытием ModalPopup в mimgui, он не открывается в окне Child. Мне нужно чтобы popup открывался и в Child и вне его
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
	
		
	
			
			
			
				Lua:
			
		
		
		imgui.OnFrame(function() return MainMenu[0] and not isPauseMenuActive() and not sampIsScoreboardOpen() end, function()
    imgui.SetNextWindowPos(imgui.ImVec2(500, 500), imgui.Cond.FirstUseEver, imgui.ImVec2(1, 1))
    imgui.Begin('Settings', MainMenu, imgui.WindowFlags.NoResize)
    if imgui.BeginPopupModal('Form') then
        imgui.Text('Test')
        if imgui.Button(u8'Pакрыть', imgui.ImVec2(280, 24)) then
            imgui.CloseCurrentPopup()
        end
        imgui.EndPopup()
    end
    if imgui.BeginChild('SettingTwo', imgui.ImVec2(225, 213), true, imgui.WindowFlags.NoScrollbar) then
        if imgui.Button(u8'Открыть', imgui.ImVec2(280, 24)) then
            imgui.OpenPopup('Form') -- Здесь не открывается
        end
        imgui.EndChild()
    end
    if imgui.Button(u8'Открыть2', imgui.ImVec2(280, 24)) then
        imgui.OpenPopup('Form') -- Здесь открывается
    end
    imgui.End()
end)
	
			
				Последнее редактирование: