mirror of
https://github.com/Drezil/dear-imgui.hs.git
synced 2025-07-05 20:48:47 +02:00
Wrap ImGui popups
This commit is contained in:
6
Main.hs
6
Main.hs
@ -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 ()
|
||||
|
Reference in New Issue
Block a user