mirror of
https://github.com/Drezil/dear-imgui.hs.git
synced 2025-11-12 02:51:04 +01:00
Wrap ImGui::Begin/EndTooltip()
This commit is contained in:
7
Main.hs
7
Main.hs
@@ -48,7 +48,12 @@ loop w checked = do
|
||||
True -> openPopup "Button Popup"
|
||||
False -> return ()
|
||||
|
||||
beginPopupModal "Button Popup" >>= whenTrue do
|
||||
isItemHovered >>= whenTrue do
|
||||
beginTooltip
|
||||
text "Tooltip?"
|
||||
endTooltip
|
||||
|
||||
beginPopup "Button Popup" >>= whenTrue do
|
||||
button "Close" >>= whenTrue closeCurrentPopup
|
||||
endPopup
|
||||
|
||||
|
||||
Reference in New Issue
Block a user