From 020617876de02a8776e799635fc9983cd0cf2a7b Mon Sep 17 00:00:00 2001 From: Krisjanis Rijnieks Date: Tue, 16 Aug 2016 22:11:22 +0200 Subject: [PATCH] Add label to the layer panel --- src/Application/ProjectionMappingState.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Application/ProjectionMappingState.cpp b/src/Application/ProjectionMappingState.cpp index dcd3b6b..168ac4d 100644 --- a/src/Application/ProjectionMappingState.cpp +++ b/src/Application/ProjectionMappingState.cpp @@ -35,14 +35,17 @@ void ProjectionMappingState::draw(Application * app){ ofNoFill(); } - int layerIconWidth = 20; + int layerIconWidth = 45; int layerIconHeight = 20; int offsetRight = 20; - int offsetTop = 20; + int offsetTop = 40; int verticalSpacing = 10; int layerIconX = ofGetWidth() - offsetRight - layerIconWidth; int layerIconY = offsetTop + ((layerIconHeight + verticalSpacing) * (numSurfaces - i - 1)); + string label = "Layers"; + ofDrawBitmapString(label, ofGetWidth() - 66, 30); + ofRectangle layerIcon = ofRectangle( layerIconX, layerIconY,