vvvv / VL.StandardLibs

A collection of standard libraries for vvvv including VL.Stride, VL.Skia, VL.ImGui, msgpack.org[VL]
https://visualprogramming.net
GNU Lesser General Public License v3.0
40 stars 15 forks source link

How to open a Popup: 2 ways #53

Closed antongit closed 2 years ago

antongit commented 2 years ago

In Imgui the "Popup definition" and visibility of the popup is controlled by two different calls. Definition: BeginPopup/EndPopup Visibility: OpenPopup.

We can add an "Open" Input pin to the PopupWindow, no other nodes needed. Or/And visibility is controlled by a special OpenPopup node. If we'll have OpenPopup node, it should probably listening to the BSubject.

Here are the two versions (see the HowTo Popup). Visibility of the Popup1 is triggered by the Input pin. Visibility of the Popup2 is triggered by the extra node OpenPopup (at the moment, it has only "Label" and "Flags" inputs and should be wrapped in the If region).

image

antongit commented 2 years ago

Closed by 0d3f8189204f57b822800e71c075829d8e44cbe8