Mercurial > hg > soniczoomios
diff grid.mm @ 8:e2c6cfe8c6b7
JSON logs and presets.
author | Robert Tubb <rt300@eecs.qmul.ac.uk> |
---|---|
date | Thu, 10 Jan 2013 18:24:26 +0000 |
parents | 845ea04f8e33 |
children | 346807b47860 |
line wrap: on
line diff
--- a/grid.mm Thu Dec 06 18:26:51 2012 +0000 +++ b/grid.mm Thu Jan 10 18:24:26 2013 +0000 @@ -33,8 +33,8 @@ pixSize.setCoord(ofGetWidth(), ofGetHeight()); //set scale and position to mid way - scale = pow(32.0,6.0); - snapDist = TwoVector(10,10); + scale = pow(32.0,3.0); + snapDist = TwoVector(9,9); snapped = false; size.setCoord(pixSize.x*scale, pixSize.y*scale); @@ -371,10 +371,7 @@ presetManager.drawPresetsInRange(topLeft, topLeft + size); // draw snapped preset info if(snapped && closestPreset != NULL){ - ostringstream temp; - temp << "Name: \t" << closestPreset->name << "\nCreation time: \t" << closestPreset->savetime << '\n'; - string s = temp.str(); - ofDrawBitmapString( s, pixSize.x/2+10, pixSize.y/2+10 ); + ofDrawBitmapString( closestPreset->displayTextDescription(), pixSize.x/2+10, pixSize.y/2+10 ); } }