From: <bal...@us...> - 2003-11-30 13:04:12
|
Update of /cvsroot/gemrb/gemrb/gemrb/plugins/Core In directory sc8-pr-cvs1:/tmp/cvs-serv6824/plugins/Core Modified Files: GameControl.cpp Log Message: Added Feature : GameControl.cpp : Implemented Cursor Change based on EA value Index: GameControl.cpp =================================================================== RCS file: /cvsroot/gemrb/gemrb/gemrb/plugins/Core/GameControl.cpp,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -d -r1.19 -r1.20 *** GameControl.cpp 30 Nov 2003 09:51:19 -0000 1.19 --- GameControl.cpp 30 Nov 2003 13:04:09 -0000 1.20 *************** *** 121,125 **** Font * font = core->GetFont(9); Region rgn(infoPoints[i]->outline->BBox.x+(infoPoints[i]->outline->BBox.w/2)-100, infoPoints[i]->outline->BBox.y, 200, 400); ! font->Print(rgn, (unsigned char*)infoPoints[i]->String, InfoTextPalette, IE_FONT_ALIGN_CENTER | IE_FONT_ALIGN_TOP, false); } } --- 121,125 ---- Font * font = core->GetFont(9); Region rgn(infoPoints[i]->outline->BBox.x+(infoPoints[i]->outline->BBox.w/2)-100, infoPoints[i]->outline->BBox.y, 200, 400); ! font->Print(rgn, (unsigned char*)infoPoints[i]->String, InfoTextPalette, IE_FONT_ALIGN_LEFT | IE_FONT_ALIGN_TOP, false); } } *************** *** 182,185 **** --- 182,207 ---- lastActor = actor; lastActor->actor->anims->DrawCircle = true; + switch(lastActor->actor->BaseStats[IE_EA]) { + case EVILCUTOFF: + case GOODCUTOFF: + break; + + case PC: + case FAMILIAR: + case ALLY: + case CONTROLLED: + case CHARMED: + case EVILBUTGREEN: + nextCursor = 0; + break; + + case ENEMY: + case GOODBUTRED: + nextCursor = 12; + break; + default: + nextCursor = 18; + break; + } } } *************** *** 192,196 **** if(overContainer) { if(overContainer->TrapDetected && overContainer->Trapped) { ! nextCursor=39; } else { --- 214,218 ---- if(overContainer) { if(overContainer->TrapDetected && overContainer->Trapped) { ! nextCursor=38; } else { |