Skip to content

Latest commit

 

History

History
33 lines (26 loc) · 1.27 KB

File metadata and controls

33 lines (26 loc) · 1.27 KB

ofxDatGui (LoopyDev fork)

ofxDatGui is a simple, fully customizable, high-resolution GUI for openFrameworks, inspired by dat.gui.

This repository is a maintained fork by LoopyDev.
Upstream: https://github.com/braitsch/ofxDatGui

ofxDatGui
(Image credit: upstream project)


What’s different in this fork

  • Working in OF 0.12.1
  • Mouse capture - prevents control when dragging clicked mouse over GUI
  • Folder nesting

New components!

  • Horizontal button bar/radio group (it's a bit messy right now but it works, expect changes)
  • Cubic Bezier
  • Radio Group
  • Curve Editor

ofxDatGui-LoopyDev

Temp: Restructuring horizontally stacked gui components. To add a horizontally stacked GUI panel:

gui = new ofxDatGui(ofxDatGuiAnchor::TOP_LEFT);
gui->setWidth(ofGetWidth());
auto * row = gui->addPanel(ofxDatGuiPanel::Orientation::HORIZONTAL);
row->attachItem(new ofxDatGuiButton("Play"));
row->attachItem(new ofxDatGuiButton("Pause"));
row->attachItem(new ofxDatGuiButton("Stop"));
row->attachItem(new ofxDatGuiButton("Okeyyeh"));