mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
* More unused stuff removal
delete:
- giant 'metaheaders' (JA2 All.h, Laptop All.h, etc), preferring to add #includes directly where needed
- unused ExceptionHandling and DbMan translation units
- unused WizShare.h, Bitmap.h, trle.h, video_private.h headers
* remove mentions from vc proj files too
* remove preprocessor conditionals for unused definitions
find . -iname '*.h' -o -iname '*.cpp' -exec unifdef.exe -m -UPRECOMPILED_HEADERS -UJA2_PRECOMPILED_HEADERS -UWIZ8_PRECOMPILED_HEADERS -UPRECOMPILEDHEADERS {} ';'
then manually fixed a couple files the tool errored out on
* yes, the comments too
as title
111 lines
2.4 KiB
C++
111 lines
2.4 KiB
C++
#include "laptop.h"
|
|
#include "BobbyRMisc.h"
|
|
#include "BobbyR.h"
|
|
#include "BobbyRGuns.h"
|
|
#include "Utilities.h"
|
|
#include "WCheck.h"
|
|
#include "WordWrap.h"
|
|
#include "Text.h"
|
|
|
|
|
|
UINT32 guiMiscBackground;
|
|
UINT32 guiMiscGrid;
|
|
|
|
|
|
|
|
void GameInitBobbyRMisc()
|
|
{
|
|
|
|
}
|
|
|
|
BOOLEAN EnterBobbyRMisc()
|
|
{
|
|
VOBJECT_DESC VObjectDesc;
|
|
|
|
// load the background graphic and add it
|
|
VObjectDesc.fCreateFlags=VOBJECT_CREATE_FROMFILE;
|
|
FilenameForBPP("LAPTOP\\miscbackground.sti", VObjectDesc.ImageFile);
|
|
CHECKF(AddVideoObject(&VObjectDesc, &guiMiscBackground));
|
|
|
|
// load the gunsgrid graphic and add it
|
|
VObjectDesc.fCreateFlags=VOBJECT_CREATE_FROMFILE;
|
|
FilenameForBPP("LAPTOP\\miscgrid.sti", VObjectDesc.ImageFile);
|
|
CHECKF(AddVideoObject(&VObjectDesc, &guiMiscGrid));
|
|
|
|
InitBobbyBrTitle();
|
|
|
|
guiPrevMiscFilterMode = -1;
|
|
guiCurrentMiscFilterMode = -1;
|
|
guiCurrentMiscSubFilterMode = -1;
|
|
guiPrevMiscSubFilterMode = -1;
|
|
|
|
SetFirstLastPagesForNew( IC_BOBBY_MISC, guiCurrentMiscFilterMode, guiCurrentMiscSubFilterMode );
|
|
|
|
//Draw menu bar
|
|
InitBobbyMenuBar( );
|
|
|
|
InitBobbyRMiscFilterBar();
|
|
|
|
// CalculateFirstAndLastIndexs();
|
|
|
|
RenderBobbyRMisc( );
|
|
|
|
return(TRUE);
|
|
}
|
|
|
|
void ExitBobbyRMisc()
|
|
{
|
|
DeleteVideoObjectFromIndex(guiMiscBackground);
|
|
DeleteVideoObjectFromIndex(guiMiscGrid);
|
|
DeleteBobbyBrTitle();
|
|
|
|
DeleteBobbyMenuBar();
|
|
|
|
DeleteBobbyRMiscFilter();
|
|
|
|
DeleteMouseRegionForBigImage();
|
|
|
|
guiLastBobbyRayPage = LAPTOP_MODE_BOBBY_R_MISC;
|
|
}
|
|
|
|
void HandleBobbyRMisc()
|
|
{
|
|
HandleBobbyRGuns();
|
|
}
|
|
|
|
void RenderBobbyRMisc()
|
|
{
|
|
HVOBJECT hPixHandle;
|
|
|
|
WebPageTileBackground(BOBBYR_NUM_HORIZONTAL_TILES, BOBBYR_NUM_VERTICAL_TILES, BOBBYR_BACKGROUND_WIDTH, BOBBYR_BACKGROUND_HEIGHT, guiMiscBackground);
|
|
|
|
//Display title at top of page
|
|
//DisplayBobbyRBrTitle();
|
|
|
|
// GunForm
|
|
GetVideoObject(&hPixHandle, guiMiscGrid);
|
|
BltVideoObject(FRAME_BUFFER, hPixHandle, 0, BOBBYR_GRIDLOC_X, BOBBYR_GRIDLOC_Y, VO_BLT_SRCTRANSPARENCY,NULL);
|
|
|
|
DisplayItemInfo(IC_BOBBY_MISC, guiCurrentMiscFilterMode, guiCurrentMiscSubFilterMode);
|
|
UpdateButtonText(guiCurrentLaptopMode);
|
|
UpdateMiscFilterButtons();
|
|
|
|
MarkButtonsDirty( );
|
|
RenderWWWProgramTitleBar( );
|
|
InvalidateRegion(LAPTOP_SCREEN_UL_X,LAPTOP_SCREEN_WEB_UL_Y,LAPTOP_SCREEN_LR_X,LAPTOP_SCREEN_WEB_LR_Y);
|
|
//Moa removed below. See comment above LAPTOP_SCREEN_UL_X in laptop.h
|
|
// fReDrawScreenFlag = TRUE;
|
|
//fPausedReDrawScreenFlag = TRUE;
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|