void RenderImpHomePage( void ) { // the background RenderProfileBackGround( ); // the IMP symbol RenderIMPSymbol( 107, 45 ); // the second button image RenderButton2Image( 134, 314); // render the indents //activation indents RenderActivationIndent( 257, 328 ); // the two font page indents RenderFrontPageIndent( 3, 64 ); RenderFrontPageIndent( 396,64 ); // render the activation string DisplayPlayerActivationString( ); return; }
void RenderIMPMinorTrait( void ) { //render the metal background graphic RenderProfileBackGround(); IMPMinorTraitDisplaySkills(); }
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 RenderIMPAttributeEntrance( void ) { // the background RenderProfileBackGround( ); // avg merc indent RenderAvgMercIndentFrame(90, 40 ); return; }
void RenderIMPDisabilityTrait( void ) { //render the metal background graphic RenderProfileBackGround(); // Display title DrawTextToScreen( gzIMPDisabilityTraitText[IMP_DISABILITIES_NUMBER], LAPTOP_SCREEN_UL_X - 111, LAPTOP_TITLE_Y, LAPTOP_TEXT_WIDTH, FONT14ARIAL, FONT_MCOLOR_WHITE, FONT_MCOLOR_BLACK, FALSE, CENTER_JUSTIFIED ); IMPDisabilityTraitDisplayDisabilityTraits(); }
void RenderIMPAttributeFinish( void ) { // render background RenderProfileBackGround( ); // indent for text RenderBeginIndent( 110, 93 ); return; }
void RenderIMPPersonalityEntrance( void ) { // the background RenderProfileBackGround( ); // the IMP symbol //RenderIMPSymbol( 112, 30 ); // indent RenderAvgMercIndentFrame(90, 40 ); return; }
void RenderIMPFinish( void ) { // the background RenderProfileBackGround( ); // render merc fullname RenderCharFullName( ); // indent for text RenderBeginIndent( 110, 50 ); return; }
void RenderIMPMainPage( void ) { // rneders the IMP about us page // the background RenderProfileBackGround( ); // the IMP symbol //RenderIMPSymbol( 106, 1 ); // indent RenderMainIndentFrame( 164, 74 ); return; }
void RenderIMPPrejudice( void ) { //render the metal background graphic RenderProfileBackGround(); IMPPrejudiceDisplay(); DropDownTemplate<DROPDOWNNR_APPEARANCE>::getInstance().Display(); DropDownTemplate<DROPDOWNNR_APPEARANCECARE>::getInstance().Display(); DropDownTemplate<DROPDOWNNR_REFINEMENT>::getInstance().Display(); DropDownTemplate<DROPDOWNNR_REFINEMENTCARE>::getInstance().Display(); DropDownTemplate<DROPDOWNNR_NATIONALITY>::getInstance().Display(); DropDownTemplate<DROPDOWNNR_HATEDNATIONALITY>::getInstance().Display(); DropDownTemplate<DROPDOWNNR_HATEDNATIONALITYCARE>::getInstance().Display(); DropDownTemplate<DROPDOWNNR_RACIST>::getInstance().Display(); DropDownTemplate<DROPDOWNNR_RACE>::getInstance().Display(); DropDownTemplate<DROPDOWNNR_SEXIST>::getInstance().Display(); }
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; }
void RenderIMPBeginScreen( void ) { // the background RenderProfileBackGround( ); // fourth button image 3X RenderButton4Image( 64, 118 ); RenderButton4Image( 64, 178 ); RenderButton4Image( 64, 238 ); // the begin screen indents RenderBeginIndent( 105, 58); // full name indent RenderNameIndent( 194, 132); // nick name RenderNickNameIndent( 194, 192); // gender indents RenderGenderIndent( 192, 252 ); RenderGenderIndent( 302, 252 ); // render warning string Print8CharacterOnlyString( ); // display player name DisplayPlayerFullNameString( ); DisplayPlayerNickNameString( ); RenderMaleGenderIcon( ); RenderFemaleGenderIcon( ); // the gender itself RenderGender( ); return; }
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 EnterIMPPrejudice( void ) { RenderProfileBackGround(); giIMPPrejudiceFinishButtonImage = LoadButtonImage( "LAPTOP\\button_5.sti" ,-1,0,-1,1,-1 ); giIMPPrejudiceFinishButton = CreateIconAndTextButton( giIMPPrejudiceFinishButtonImage, pImpButtonText[ 24 ], FONT12ARIAL, FONT_WHITE, DEFAULT_SHADOW, FONT_WHITE, DEFAULT_SHADOW, TEXT_CJUSTIFIED, LAPTOP_SCREEN_UL_X + ( 350 ), LAPTOP_SCREEN_WEB_UL_Y + ( 340 ), BUTTON_TOGGLE, MSYS_PRIORITY_HIGH, BtnGenericMouseMoveButtonCallback, (GUI_CALLBACK)BtnIMPPrejudiceFinishCallback ); SetButtonCursor( giIMPPrejudiceFinishButton, CURSOR_WWW); UINT16 usX = LAPTOP_SCREEN_UL_X + 5 + StringPixLength ( szPersonalityDisplayText[PERSONALITYTEXT_YOULOOK], FONT12ARIAL ) + 10; UINT16 usY = LAPTOP_SCREEN_WEB_UL_Y + 43; ////////////////// DropDown_Appearance ////////////////////////// std::vector<std::pair<INT16, STR16> > entryvecDropDown_Appearance; for(UINT8 i = 0; i < NUM_APPEARANCES; ++i) entryvecDropDown_Appearance.push_back( std::make_pair(i, szAppearanceText[i]) ); DropDownTemplate<DROPDOWNNR_APPEARANCE>::getInstance().SetEntries(entryvecDropDown_Appearance); DropDownTemplate<DROPDOWNNR_APPEARANCE>::getInstance().SetHelpText( szPersonalityHelpText[DROPDOWNNR_APPEARANCE] ); DropDownTemplate<DROPDOWNNR_APPEARANCE>::getInstance().Create(usX, usY); ////////////////// DropDown_Appearance ////////////////////////// usX = DropDownTemplate<DROPDOWNNR_APPEARANCE>::getInstance().GetLastX() + StringPixLength ( szPersonalityDisplayText[PERSONALITYTEXT_ANDAPPEARANCEIS], FONT12ARIAL ) + 20; ////////////////// DropDown_AppearanceCare ////////////////////////// std::vector<std::pair<INT16, STR16> > entryvecDropDown_AppearanceCare; for(UINT8 i = 0; i < NUM_CARELEVELS; ++i) entryvecDropDown_AppearanceCare.push_back( std::make_pair(i, szCareLevelText[i]) ); DropDownTemplate<DROPDOWNNR_APPEARANCECARE>::getInstance().SetEntries(entryvecDropDown_AppearanceCare); DropDownTemplate<DROPDOWNNR_APPEARANCECARE>::getInstance().SetHelpText( szPersonalityHelpText[DROPDOWNNR_APPEARANCECARE] ); DropDownTemplate<DROPDOWNNR_APPEARANCECARE>::getInstance().SetColorLine( Get16BPPColor( FROMRGB( 38, 191, 60 ) ) ); DropDownTemplate<DROPDOWNNR_APPEARANCECARE>::getInstance().Create(usX, usY); ////////////////// DropDown_AppearanceCare ////////////////////////// usX = LAPTOP_SCREEN_UL_X + 5 + StringPixLength ( szPersonalityDisplayText[PERSONALITYTEXT_YOUHAVE], FONT12ARIAL ) + 10; usY += DROPDOWN_MARKUP_Y; ////////////////// DropDown_Refinement ////////////////////////// std::vector<std::pair<INT16, STR16> > entryvecDropDown_Refinement; for(UINT8 i = 0; i < NUM_REFINEMENT; ++i) entryvecDropDown_Refinement.push_back( std::make_pair(i, szRefinementText[i]) ); DropDownTemplate<DROPDOWNNR_REFINEMENT>::getInstance().SetEntries(entryvecDropDown_Refinement); DropDownTemplate<DROPDOWNNR_REFINEMENT>::getInstance().SetHelpText( szPersonalityHelpText[DROPDOWNNR_REFINEMENT] ); DropDownTemplate<DROPDOWNNR_REFINEMENT>::getInstance().Create(usX, usY); ////////////////// DropDown_Refinement ////////////////////////// usX = DropDownTemplate<DROPDOWNNR_REFINEMENT>::getInstance().GetLastX() + StringPixLength ( szPersonalityDisplayText[PERSONALITYTEXT_ANDCARE], FONT12ARIAL ) + 20; ////////////////// DropDownTemplate<DROPDOWNNR_REFINEMENTCARE> ////////////////////////// std::vector<std::pair<INT16, STR16> > entryvecDropDown_RefinementCare; for(UINT8 i = 0; i < NUM_CARELEVELS; ++i) entryvecDropDown_RefinementCare.push_back( std::make_pair(i, szCareLevelText[i]) ); DropDownTemplate<DROPDOWNNR_REFINEMENTCARE>::getInstance().SetEntries(entryvecDropDown_RefinementCare); DropDownTemplate<DROPDOWNNR_REFINEMENTCARE>::getInstance().SetHelpText( szPersonalityHelpText[DROPDOWNNR_REFINEMENTCARE] ); DropDownTemplate<DROPDOWNNR_REFINEMENTCARE>::getInstance().SetColorLine( Get16BPPColor( FROMRGB( 38, 191, 60 ) ) ); DropDownTemplate<DROPDOWNNR_REFINEMENTCARE>::getInstance().Create(usX, usY); ////////////////// DropDownTemplate<DROPDOWNNR_REFINEMENTCARE> ////////////////////////// usX = LAPTOP_SCREEN_UL_X + 5 + StringPixLength ( szPersonalityDisplayText[PERSONALITYTEXT_YOUARE], FONT12ARIAL ) + 10; usY += DROPDOWN_MARKUP_Y; ////////////////// DropDownTemplate<DROPDOWNNR_NATIONALITY> ////////////////////////// std::vector<std::pair<INT16, STR16> > entryvecDropDown_Nationality; for(UINT8 i = 0; i < NUM_NATIONALITIES; ++i) entryvecDropDown_Nationality.push_back( std::make_pair(i, szNationalityText[i]) ); DropDownTemplate<DROPDOWNNR_NATIONALITY>::getInstance().SetEntries(entryvecDropDown_Nationality); DropDownTemplate<DROPDOWNNR_NATIONALITY>::getInstance().SetHelpText( szPersonalityHelpText[DROPDOWNNR_NATIONALITY] ); DropDownTemplate<DROPDOWNNR_NATIONALITY>::getInstance().Create(usX, usY); ////////////////// DropDownTemplate<DROPDOWNNR_NATIONALITY> ////////////////////////// usX = DropDownTemplate<DROPDOWNNR_NATIONALITY>::getInstance().GetLastX() + StringPixLength ( szPersonalityDisplayText[PERSONALITYTEXT_ADHATEEVERYONE], FONT12ARIAL ) + 20; ////////////////// DropDownTemplate<DROPDOWNNR_HATEDNATIONALITY> ////////////////////////// std::vector<std::pair<INT16, STR16> > entryvecDropDown_HatedNationality; // we can also hate no nation at all... entryvecDropDown_HatedNationality.push_back( std::make_pair(-1, szNationalityText_Special[1]) ); for(UINT8 i = 0; i < NUM_NATIONALITIES; ++i) entryvecDropDown_HatedNationality.push_back( std::make_pair(i, szNationalityText[i]) ); DropDownTemplate<DROPDOWNNR_HATEDNATIONALITY>::getInstance().SetEntries(entryvecDropDown_HatedNationality); DropDownTemplate<DROPDOWNNR_HATEDNATIONALITY>::getInstance().SetHelpText( szPersonalityHelpText[DROPDOWNNR_HATEDNATIONALITY] ); DropDownTemplate<DROPDOWNNR_HATEDNATIONALITY>::getInstance().Create(usX, usY); ////////////////// DropDownTemplate<DROPDOWNNR_HATEDNATIONALITY> ////////////////////////// usX = DropDownTemplate<DROPDOWNNR_HATEDNATIONALITY>::getInstance().GetLastX() + 5; ////////////////// DropDownTemplate<DROPDOWNNR_HATEDNATIONALITYCARE> ////////////////////////// std::vector<std::pair<INT16, STR16> > entryvecDropDown_HatedNationalityCare; for(UINT8 i = 0; i < NUM_CARELEVELS; ++i) entryvecDropDown_HatedNationalityCare.push_back( std::make_pair(i, szCareLevelText[i]) ); DropDownTemplate<DROPDOWNNR_HATEDNATIONALITYCARE>::getInstance().SetEntries(entryvecDropDown_HatedNationalityCare); DropDownTemplate<DROPDOWNNR_HATEDNATIONALITYCARE>::getInstance().SetHelpText( szPersonalityHelpText[DROPDOWNNR_HATEDNATIONALITYCARE] ); DropDownTemplate<DROPDOWNNR_HATEDNATIONALITYCARE>::getInstance().SetColorLine( Get16BPPColor( FROMRGB( 38, 191, 60 ) ) ); DropDownTemplate<DROPDOWNNR_HATEDNATIONALITYCARE>::getInstance().Create(usX, usY); ////////////////// DropDownTemplate<DROPDOWNNR_HATEDNATIONALITYCARE> ////////////////////////// usX = LAPTOP_SCREEN_UL_X + 5 + StringPixLength ( szPersonalityDisplayText[PERSONALITYTEXT_YOUARE], FONT12ARIAL ) + 10; usY += DROPDOWN_MARKUP_Y; ////////////////// DropDownTemplate<DROPDOWNNR_RACIST> ////////////////////////// std::vector<std::pair<INT16, STR16> > entryvecDropDown_Racist; for(UINT8 i = 0; i < NUM_RACIST; ++i) entryvecDropDown_Racist.push_back( std::make_pair(i, szRacistText[i]) ); DropDownTemplate<DROPDOWNNR_RACIST>::getInstance().SetEntries(entryvecDropDown_Racist); DropDownTemplate<DROPDOWNNR_RACIST>::getInstance().SetHelpText( szPersonalityHelpText[DROPDOWNNR_RACIST] ); DropDownTemplate<DROPDOWNNR_RACIST>::getInstance().SetColorLine( Get16BPPColor( FROMRGB( 38, 191, 60 ) ) ); DropDownTemplate<DROPDOWNNR_RACIST>::getInstance().Create(usX, usY); ////////////////// DropDownTemplate<DROPDOWNNR_RACIST> ////////////////////////// usX = DropDownTemplate<DROPDOWNNR_RACIST>::getInstance().GetLastX() + StringPixLength ( szPersonalityDisplayText[PERSONALITYTEXT_RACISTAGAINSTNON], FONT12ARIAL ) + 10; ////////////////// DropDownTemplate<DROPDOWNNR_RACE> ////////////////////////// std::vector<std::pair<INT16, STR16> > entryvecDropDown_Race; for(UINT8 i = 0; i < NUM_RACES; ++i) entryvecDropDown_Race.push_back( std::make_pair(i, szRaceText[i]) ); DropDownTemplate<DROPDOWNNR_RACE>::getInstance().SetEntries(entryvecDropDown_Race); DropDownTemplate<DROPDOWNNR_RACE>::getInstance().SetHelpText( szPersonalityHelpText[DROPDOWNNR_RACE] ); DropDownTemplate<DROPDOWNNR_RACE>::getInstance().Create(usX, usY); ////////////////// DropDownTemplate<DROPDOWNNR_RACE> ////////////////////////// usX = LAPTOP_SCREEN_UL_X + 5 + StringPixLength ( szPersonalityDisplayText[PERSONALITYTEXT_YOUARE], FONT12ARIAL ) + 10; usY += DROPDOWN_MARKUP_Y; ////////////////// DropDownTemplate<DROPDOWNNR_SEXIST> ////////////////////////// std::vector<std::pair<INT16, STR16> > entryvecDropDown_Sexist; for(UINT8 i = 0; i < NUM_SEXIST; ++i) entryvecDropDown_Sexist.push_back( std::make_pair(i, szSexistText[i]) ); DropDownTemplate<DROPDOWNNR_SEXIST>::getInstance().SetEntries(entryvecDropDown_Sexist); DropDownTemplate<DROPDOWNNR_SEXIST>::getInstance().SetHelpText( szPersonalityHelpText[DROPDOWNNR_SEXIST] ); DropDownTemplate<DROPDOWNNR_SEXIST>::getInstance().SetColorLine( Get16BPPColor( FROMRGB( 38, 191, 60 ) ) ); DropDownTemplate<DROPDOWNNR_SEXIST>::getInstance().Create(usX, usY); ////////////////// DropDownTemplate<DROPDOWNNR_SEXIST> ////////////////////////// }
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; }