summaryrefslogtreecommitdiff
path: root/gui/src/chainImageSet.cpp
diff options
context:
space:
mode:
authorTim Redfern <tim@getdrop.com>2017-12-15 09:24:22 +0000
committerTim Redfern <tim@getdrop.com>2017-12-15 09:24:22 +0000
commit3418dd0859106791d5534c53b901c2be4ea6b4c4 (patch)
treecfa88e599b5e94867bd4dc74a171b9a57e01af41 /gui/src/chainImageSet.cpp
parent75094cedeb1910d8a7cdb86ac56617af25f21a54 (diff)
better paths
Diffstat (limited to 'gui/src/chainImageSet.cpp')
-rw-r--r--gui/src/chainImageSet.cpp22
1 files changed, 19 insertions, 3 deletions
diff --git a/gui/src/chainImageSet.cpp b/gui/src/chainImageSet.cpp
index 8f73013..65ea5f9 100644
--- a/gui/src/chainImageSet.cpp
+++ b/gui/src/chainImageSet.cpp
@@ -194,17 +194,24 @@ void chainImageSet::drawGui(int x,int y,bool is_selected){
glPopMatrix();
}
+
+ //DRAW PATH PREVIEW
glPushMatrix();
- ofSetColor(255,0,255);
+ if (((*ii)->linked)->link==(*currentImage)->link){ //seems like cheating
+ ofSetColor(0,255,0);
+ }
+ else {
+ ofSetColor(255,255,255);
+ }
glTranslatef(t_xoffs+borderwidth+thumbx,borderwidth+thumby,0);
//this gets us to the middle of the image
- ofDrawRectangle(-5,-5,10,10);
+ //ofDrawRectangle(-2,-2,4,4);
- ofSetLineWidth(5);
+ ofSetLineWidth(2);
float pathscale=thumbscale/(((*ii)->linked)->linkScale);
@@ -218,9 +225,18 @@ void chainImageSet::drawGui(int x,int y,bool is_selected){
glTranslatef(-start.x,-start.y,0);
((*ii)->linked)->path.draw();
+ if (((*ii)->linked)->link==(*currentImage)->link){ //seems like cheating
+ ofPoint currentpos=((*ii)->linked)->getPathPoint();
+ glTranslatef(currentpos.x,currentpos.y,0);
+ ofSetColor(255,255,255);
+ ofDrawRectangle(-2,-2,4,4);
+ }
+
ofSetLineWidth(1);
glPopMatrix();
+
+ //jump to next image
t_xoffs+=(*ii)->thumbnail.getWidth()+(borderwidth*2);