-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to disable gui auto draw to draw manually in draw() to set order #70
Comments
Hi, yes, the idea was to have the GUI on top of everything and the ability to hide it with
.. and then draw it like this:
Hope it helps :) Maybe I should wrap this somehow because it is a bit ugly... I like your suggested methods. |
I have a similar need but this fix didn't work. I use the gui so that the user chooses from a list of videos. After pressing the button, the gui should disappear and the video should start. However, even if I use the tip above there is still a black background being drawn on top of the video. The only way I can draw is by not creating the gui object. Should I somehow delete the gui object altogether to make it go away? |
I generally use gui.getVisible().set(false). To hide all gui. Maybe you can move the panel outside the window.. |
Thanks for the suggestion, but I had already tried gui.getVisible().set(false) without success. It seems like the gui draws some kid of black blackground with a bit of transparency. I can almost see the video playing behind it... |
hey @brunovianna, look around this code to see if it helps in some way:
|
Also you can change the background color of the panel to maximum alpha .. |
Thanks @moebiussurfing . I have found the bug - I was setting ofSetColor to draw some text when the gui was visible. For some reason, even after I stopped using the gui, this was messing up with the drawing of the video. I tested using ofSetColor(255,20,20) and got a red tainted video. I don't if it is worth looking into the issue. |
I am using an ofxGuiGraphics into a container to draw the background of my app.
I tried to send back the panel with groupBackground->moveToBack();
but when I draw other things into ofApp::draw(), all goes into background, gui is in front.
theres some way to disable auto draw to be able to draw in front all gui?
something like:
setup
gui_background.disaleAutoDraw();
draw
gui_background.draw();
myCubes.draw();
The text was updated successfully, but these errors were encountered: