예제 #1
0
bool ofxGuiGroup::setValue(float mx, float my, bool bCheck){
    
	if( !isGuiDrawing() ){
		bGuiActive = false;
		return false;
	}


	if( bCheck ){
		if( b.inside(mx, my) ){
			bGuiActive = true;

			ofRectangle minButton(b.x+b.width-textPadding*3,b.y,textPadding*3,header);
			if(minButton.inside(mx,my)){
				minimized = !minimized;
				if(minimized){
					minimize();
				}else{
					maximize();
				}
				return true;
			}
        }
	}

	return false;
}
예제 #2
0
void ofxGuiGroup::setValue(float mx, float my, bool bCheck){
    
	if( ofGetFrameNum() - currentFrame > 1 ){
		bGuiActive = false;
		return;
	}


	if( bCheck ){
		ofRectangle minButton(b.x+b.width-textPadding-10,b.y,10,header);
		if(minButton.inside(mx,my)){
			minimized = !minimized;
			if(minimized){
				minimize();
			}else{
				maximize();
			}
		}
		if( b.inside(mx, my) ){
			bGuiActive = true;
        }
	}

}