ofxGuiPlus integration in of v0.10


#1

Hi everybody,

I know that the next OF release will include most of the features of ofxGuiPlus. That’s great! The standard gui will be really useful and complete.

Right now, I can’t add a ofxSliderPlus to ofParamtersGroup. So it’s not immediate to switch my old code from ofxGui to ofxGuiPlus. On the other side, the ofxGui addon in the nightly build doesn’t seem to include features like keyboard input and fine controls…

I’m going to start two long term projects and I would lie to do the jump to ofxGuiPlus and give back my feedback to the community.

So, which are the plans for this addon? What really I’ll found in the 0.10 version?

thanks a lot,

Paolo


#2

on the nightly builds you can right click on any sldier to edit them as a text field


#3

Thanks Arturo!! That’s great. What about add a description pop for any ofParameter?

ofParameterGroup parameters;
ofParameter<int> number;

parameters.add(number.set("number",2,1,20, "number of circles, can slow down performances"));

As many other OF coders, I made several projects in the past years and I collected hundreds of widgets. So, it’s hard now to remember what they are for. Until ofXUI was not deprecated it was quite simple to add the widget description pop up, but on ofxGui it looks more complicate and I’m not a super programmer…


#4

Hi Paolo,
I wrote ofxGuiPlus, I stopped using it some weeks ago when the parameter keyboard input was added to the core ofxGui.
(btw, ofxGui now has a super nice color selector also).
The one handy thing that I has, that the ofxGui has not is being able to change slider values using the arrow keys.
I haven’t looked at ofxGuiPlus code for a while and I see no problem updating it to 0.10 but I think (and hope) that it´s features will eventually become part of the OF core.
Anyways, I would be happy to get some feedback.
Best regards


#5

Hi Roy,

I saw the color selector, it’s very nice.

The ability to change values using arrow keys is very useful, but if I can give all my suggestions, there are two other features that could improve the usability of ofGUI.

  1. parameter description. As I mentioned in the previous post, by the time it’s quite easy to forget how to use some of the gui controls.

  2. vertical arrangement of ofParameterGroup elements: you have 10 group with 10 parameter each one. In order to access to your 100 widgets you have to continuously minimize and maximize your groups and then search the widgets inside the group.

It could be better if you could arrange ofParameterGroup elements on different columns (A) or even better having a left panel with the names of the groups and a right panel with the current selected group maximized (B).

(A)

group01 | group04 | group07
group02 | group05 | group08
group03 | group06 | group09

(B)

 group01| parameterA
[group02] parameterB
 group03| parameterC
 group04| parameterD
        | parameterE

That’s all!

Best,

Paolo


#6

Hi Paolo,
Thanks for the feedback!
The parameter description would be great. I actually got in a situation last week where it would have been super useful!
As of the arangement issue, have you seen ofxGuiExtended? It has a ton of features and I’m almost sure that there are
some options for arranging.

I’m not really sure what it is keeping a lot of these improvements out of the core ofxGui. @arturo are there any plans on further
improving ofxGui? If so where should I check in order to help?
cheers!


#7

Hi Roy,

I just implemented a really draft extension of ofxGui that allows pop-up descriptions for both ofParameters and ofParametersGroup. it works with float, int and bool ofParameters and automatically split the description on multiple lines. So you can write as much as you need. Finally it writes a formatted markdown file with all descriptions created. I don’t know if this can be a new Addon, but I will soon post the code with a simple example, so you can think about.



ofxGuiExtended updates
#8

That looks great. Have you shared this anywhere?
best


#9

I’ll do it this weekend, I still have to add a little bit of documentation and a simple example, to make you understand if this code can become an addon


#10

I also think ofxGuiExtended and its sister addons (ofxSortableList & ofxMasterSlaveControl ) have some cool features and it would be great if they could be part of ofxGui. I think that was initially the plan @frauzufall?


#11

Here is the code, it’s super simple but it’s able to create tooltips and write the help file in the md format.

I have tested on OSX 10.11 Xcode 7.0.1 OF 0.9.8

For Roy: I have written few comments to show where the code should be better integrated with ofxGui. Feel free to contact me for any question.

Best,

Paolo

ofxGuiTooltip.zip (34.8 KB)


#12

HEy @Paolo, thanks. I’ll take a look at it and come back with comments.
Cheers!


#13

Hey @clem, sorry for unintentionally ignoring your question. Yes, the initial plan of ofxGuiExtended was to develop ofxGui further and we got far, but at one point I ran into issues with the layout development and other things that I could not fix and got no other feedback, so I decided to base ofxGuiExtended on ofxDOM to separate the layout from the gui. With this step the issues vanished and I am even able to add other things than the gui to the layout, but it also got more complex. @arturo didn’t want to bloat it up like this and I completely understand that. My flexbox-like layout implementation is also far from perfect. But I had to abandon ofxGui and kept working with ofxGuiExtended because my OF projects have complex layouts where I need all that functionality, here is a shot of my biggest personal project:

I am still trying to provide minimal methods to create simple interfaces like a one-liner panel or menu, but the addon source code probably won’t shrink.


#14

Hey @frauzufall. This looks great. I’ll have a play with the new features and let you know as well. By the way, it would be great if you could update the color parameters element to match the new ofGui one (now with a color picker). I’m slowly starting to get a grip on things so should be able to chip in with code soon.