ofxDatGui: A New User Interface for OF


#61

Hi Val, it’s not difficult at all to implement a hover event for buttons. In fact this has been on my todo list to implement for all components just not sure when I’ll get to it. You’ll need to add the hover event to ofxDatGuiEventType and create a ofxDatGuiButton::onMouseEnter(ofPoint m) method and dispatch the event from there. Take a look at ofxDatGuiButton::onMouseRelease(ofPoint m) for an example of how to dispatch an event.


#62

Also if anyone is using ofxDatGui in a project I’d love to see what you’re doing with it. Feel free to DM me a link or just post it here.


#63

hey thanks!!! I’ll try that and let you know if I ran into any weirdness :smiley:


#64

Hi everybody,

I am using ofxDatGui in a project, it is a fantastic addon. I have changed the fonttype and everythings work fine in Linux, Windows and previouses OS X.

The problem arises when I try to launch the app in a Sierra OS in which the font is not loaded and GUI texts do not appear.

Does anyone has also seen this behavior? Any idea about how to fix it?

Best regards,
Kike


#65

This is awesome!

Does it work with Android? I noticed files for Android Studio in the gitignore, but I haven’t been able to get it up and running. Any tips are appreciated.


#66

I was having this problem. To fix it I needed to copy the ofxbraitsch folder from the addon to the app’s bin/data folder.


#68

Seems quite nice…

Do you have vertical sliders? couldn’t see how to make this work if at all.

Or better sliders that look like sliders :slight_smile:

TIA


#69

Is it possible to repopulate the strings in a dropdown? Tried using update() on the component, after changing the referenced vector, but no luck.


#70

@mattfelsen thanks for your addons I tried to include a “loadSettings” and “saveSettings” inside ofxDatGui and it seems to work.
Now I can load and automatically set the ofxDatGui components (for now only slider, toggle and colorPicker) using:

gui->loadSettings("data.json");

and save all the components with:

gui->saveSettings("data.json");

I just edited a little your addon:

And added some more code on ofxDatGui:

My code is not super clean (also because it’s almost 4am) but I hope it can help somebody. For me now it’s very easy save and load my gui settings. :slight_smile: