Wrap ImGui popups

This commit is contained in:
Ollie Charles
2021-01-24 17:35:00 +00:00
parent c4d54a6e36
commit 93b729dae3
2 changed files with 55 additions and 1 deletions

View File

@ -45,9 +45,13 @@ loop w checked = do
text "Hello!"
button "Click me" >>= \case
True -> putStrLn "Oh hi Mark"
True -> openPopup "Button Popup"
False -> return ()
beginPopupModal "Button Popup" >>= whenTrue do
button "Close" >>= whenTrue closeCurrentPopup
endPopup
sameLine >> smallButton "Click me" >>= \case
True -> putStrLn "Oh hi Mark"
False -> return ()