mirror of
https://github.com/1dot13/source.git
synced 2026-08-12 14:10:23 +02:00
- 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:
+17
-7
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user