- feature: Added filter buttons for Misc items to Bobby Rays

new exe build (656)

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@657 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Wanne
2007-01-07 21:03:32 +00:00
parent 3d1337ebeb
commit 358fc9e31c
14 changed files with 382 additions and 68 deletions
+17 -7
View File
@@ -42,10 +42,15 @@ BOOLEAN EnterBobbyRMisc()
guiPrevMiscFilterMode = -1;
guiCurrentMiscFilterMode = -1;
SetFirstLastPagesForNew( IC_BOBBY_MISC, guiCurrentMiscFilterMode );
//Draw menu bar
InitBobbyMenuBar( );
// WANNE
InitBobbyRMiscFilterBar();
SetFirstLastPagesForNew( IC_BOBBY_MISC, guiCurrentMiscFilterMode );
// CalculateFirstAndLastIndexs();
RenderBobbyRMisc( );
@@ -58,9 +63,14 @@ void ExitBobbyRMisc()
DeleteVideoObjectFromIndex(guiMiscBackground);
DeleteVideoObjectFromIndex(guiMiscGrid);
DeleteBobbyBrTitle();
DeleteMouseRegionForBigImage();
DeleteBobbyMenuBar();
// WANNE
DeleteBobbyRMiscFilter();
DeleteMouseRegionForBigImage();
guiLastBobbyRayPage = LAPTOP_MODE_BOBBY_R_MISC;
}
@@ -79,16 +89,16 @@ void RenderBobbyRMisc()
// GunForm
GetVideoObject(&hPixHandle, guiMiscGrid);
BltVideoObject(FRAME_BUFFER, hPixHandle, 0, BOBBYR_GRIDLOC_X, BOBBYR_GRIDLOC_Y, VO_BLT_SRCTRANSPARENCY,NULL);
BltVideoObject(FRAME_BUFFER, hPixHandle, 0, BOBBYR_GRIDLOC_X, BOBBYR_GRIDLOC_Y, VO_BLT_SRCTRANSPARENCY,NULL);
// WANNE
DisplayItemInfo(IC_BOBBY_MISC, guiCurrentMiscFilterMode);
UpdateButtonText(guiCurrentLaptopMode);
// TODO
UpdateMiscFilterButtons();
MarkButtonsDirty( );
MarkButtonsDirty( );
RenderWWWProgramTitleBar( );
InvalidateRegion(LAPTOP_SCREEN_UL_X,LAPTOP_SCREEN_WEB_UL_Y,LAPTOP_SCREEN_LR_X,LAPTOP_SCREEN_WEB_LR_Y);
InvalidateRegion(LAPTOP_SCREEN_UL_X,LAPTOP_SCREEN_WEB_UL_Y,LAPTOP_SCREEN_LR_X,LAPTOP_SCREEN_WEB_LR_Y);
fReDrawScreenFlag = TRUE;
fPausedReDrawScreenFlag = TRUE;
}