void RenderIMPPersonalityFinish( void )
{
   // the background
	RenderProfileBackGround( );

		// indent for text
  RenderBeginIndent( 110, 93 );

	// check confirm flag to decide if we have to display appropriate response to button action
	if( fConfirmHasBeenSelectedFlag )
	{
		// confirm was yes, display yes string
		if(fConfirmIsYesFlag == TRUE)
		{
      // display yes string
			PrintImpText( );
		}
		else
		{
			// display no string
      PrintImpText( );
		}
	}
	return;
}
void BtnIMPPersonalityQuizAnswer8Callback(GUI_BUTTON *btn,INT32 reason)
{

	// btn callback for IMP personality quiz answer button
	if (!(btn->uiFlags & BUTTON_ENABLED))
		return;

	if( reason & MSYS_CALLBACK_REASON_LBUTTON_DWN )
	{
		btn->uiFlags|=(BUTTON_CLICKED_ON);

		if (btn->uiFlags & BUTTON_CLICKED_ON)
		{
		// reset buttons
			ResetQuizAnswerButtons( );

			// now set this button on
		btn->uiFlags|=(BUTTON_CLICKED_ON);

			// ok, check to see if button was disabled, if so, re enable
		CheckStateOfTheConfirmButton( );

			iCurrentAnswer = 8;

			PrintImpText( );

			// the current and last question numbers
	 PrintQuizQuestionNumber( );

			fReDrawCharProfile = TRUE;

		}
	}
}
void RenderIMPPersonalityQuiz( void )
{
	// the background
	RenderProfileBackGround( );

	// highlight answer
	PrintImpText( );

	// indent for current and last page numbers
	//RenderAttrib2IndentFrame(BTN_FIRST_COLUMN_X + 2, 365 );

	// the current and last question numbers
	PrintQuizQuestionNumber( );



	return;
}
void RenderIMPPortraits( void )
{
  

  // render background
	RenderProfileBackGround( );

		// the Voices frame
	RenderPortraitFrame( 191, 167 );

	// render the current portrait
	RenderPortrait( 200, 176 );

	// indent for the text
	RenderAttrib1IndentFrame( 128, 65); 
	
	// text
	PrintImpText( );

	return;
}
Beispiel #5
0
void RenderIMPVoices( void )
{


	// render background
	RenderProfileBackGround( );

	// the Voices frame
	RenderPortraitFrame( 191, 167 );

	// the sillouette
	RenderLargeSilhouette( 200, 176 );

	// indent for the text
	RenderAttrib1IndentFrame( 128, 65);

	// render voice index value
	RenderVoiceIndex( );

	// text
	PrintImpText( );

	return;
}
void CreateIMPPersonalityQuizAnswerButtons( void )
{
	// this function will create the buttons for the personality quiz answer selections

	if( IMP_PERSONALITY_QUIZ != iCurrentImpPage )
	{
		// not valid pagre, get out
		return;
	}


	if( giCurrentPersonalityQuizQuestion == giPreviousPersonalityQuizQuestion )
	{
		// mode has not changed, return;
		return;
	}

	// destroy old screens buttons
	DestroyPersonalityQuizButtons( );

	// re-render screen
	RenderProfileBackGround( );

	switch( giCurrentPersonalityQuizQuestion )
	{
		case ( -1 ):
		// do nothing
		break;
		case ( 0 ):
		// 6 buttons
		iNumberOfPersonaButtons = 6;
		break;
		case ( 3 ):
			// 5 buttons
			iNumberOfPersonaButtons = 5;
	break;
		case ( 5 ):
			// 5 buttons
			iNumberOfPersonaButtons = 5;
	break;
		case ( 10 ):
			// 5 buttons
			iNumberOfPersonaButtons = 5;
	break;
		case ( 11 ):
			// 5 buttons
			iNumberOfPersonaButtons = 8;

	break;
		default:
		// 4 buttons
			iNumberOfPersonaButtons = 4;

		break;
	}

	AddIMPPersonalityQuizAnswerButtons( iNumberOfPersonaButtons );

	ToggleQuestionNumberButtonOn( iQuizAnswerList[ giCurrentPersonalityQuizQuestion ] );

	// re render text
	PrintImpText( );

	// the current and last question numbers
	PrintQuizQuestionNumber( );

	// title bar
	RenderWWWProgramTitleBar( );

	return;
}