fn draw_question(&self)
	{
		let option = match self.yn_question
		{
			None => {return;},
			Some(ref v) => v
		};
		let box_width = option.text.len()+2;
		let box_x = self.width/2-box_width/2;
		let box_y = self.height/2-2;
		self.fill_rect(box_x, box_y, box_width, 5);
		self.rustbox.print(box_x+1, box_y+1, rustbox::RB_BOLD, Color::Black, Color::White, &option.text);
		if self.yn_question_state == true
		{
			self.rustbox.print(box_x+box_width/2-7, box_y+3, rustbox::RB_BOLD, Color::Black, COLOR, &format!("<YES>"));
			self.rustbox.print(box_x+box_width/2+3, box_y+3, rustbox::RB_BOLD, Color::Black, Color::White, &format!("<NO>"));
		}
		else 
		{
		    self.rustbox.print(box_x+box_width/2-7, box_y+3, rustbox::RB_BOLD, Color::Black, Color::White, &format!("<YES>"));
			self.rustbox.print(box_x+box_width/2+3, box_y+3, rustbox::RB_BOLD, Color::Black, COLOR, &format!("<NO>"));
		}
	}
//draw a box displaying the question to the user
draw a box displaying the question to the user
draw a box displaying the question to the user
fn draw_question(&self)
	{
		let option = match self.yn_question
		{
			None => {return;},
			Some(ref v) => v
		};
		let box_width = option.text.len()+2;
		let box_x = self.width/2-box_width/2;
		let box_y = self.height/2-2;
		self.fill_rect(box_x, box_y, box_width, 5);
		self.rustbox.print(box_x+1, box_y+1, rustbox::RB_BOLD, Color::Black, Color::White, &option.text);
		if self.yn_question_state == true
		{
			self.rustbox.print(box_x+box_width/2-7, box_y+3, rustbox::RB_BOLD, Color::Black, COLOR, &format!("<YES>"));
			self.rustbox.print(box_x+box_width/2+3, box_y+3, rustbox::RB_BOLD, Color::Black, Color::White, &format!("<NO>"));
		}
		else 
		{
		    self.rustbox.print(box_x+box_width/2-7, box_y+3, rustbox::RB_BOLD, Color::Black, Color::White, &format!("<YES>"));
			self.rustbox.print(box_x+box_width/2+3, box_y+3, rustbox::RB_BOLD, Color::Black, COLOR, &format!("<NO>"));
		}
	}
fn draw_question ( & self ) { let option = match self . yn_question { None => { return ; } , Some ( ref v ) => v } ; let box_width = option . text . len ( ) + 2 ; let box_x = self . width / 2 - box_width / 2 ; let box_y = self . height / 2 - 2 ; self . fill_rect ( box_x , box_y , box_width , 5 ) ; self . rustbox . print ( box_x + 1 , box_y + 1 , rustbox :: RB_BOLD , Color :: Black , Color :: White , & option . text ) ; if self . yn_question_state == true { self . rustbox . print ( box_x + box_width / 2 - 7 , box_y + 3 , rustbox :: RB_BOLD , Color :: Black , COLOR , & format ! ( " " ) ) ; self . rustbox . print ( box_x + box_width / 2 + 3 , box_y + 3 , rustbox :: RB_BOLD , Color :: Black , Color :: White , & format ! ( " " ) ) ; } else { self . rustbox . print ( box_x + box_width / 2 - 7 , box_y + 3 , rustbox :: RB_BOLD , Color :: Black , Color :: White , & format ! ( " " ) ) ; self . rustbox . print ( box_x + box_width / 2 + 3 , box_y + 3 , rustbox :: RB_BOLD , Color :: Black , COLOR , & format ! ( " " ) ) ; } }
draw a box displaying the question to the user
draw a box displaying the question to the user
&self
&self