mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
-SGP debugging now works again (corrected some typos and one missing include). -Memmory debugging works again (wrong types corrected) -Laptop screen heigth macro and all references is now usable. (was 'C: y + A' 'D: B - C' which translates to 'D: B - y + A' instead of 'D: B - y - A') -Laptop screens do not need to rerender as often then before as the laptop screen width/heigth macros works now and invalidating screen will do the trick -> almost no render calls neccessary. -MercProfile.ubMiscFlag was used instead of .ubMiscFlag2 -> enter sector action schedule for soldiers which dont need to be insertered is now canceled as intended git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@6509 3b4a5df2-a311-0410-b5c6-a8a6f20db521
115 lines
2.4 KiB
C++
115 lines
2.4 KiB
C++
#ifdef PRECOMPILEDHEADERS
|
|
#include "Laptop All.h"
|
|
#else
|
|
#include "laptop.h"
|
|
#include "BobbyRArmour.h"
|
|
#include "BobbyRGuns.h"
|
|
#include "BobbyR.h"
|
|
#include "Utilities.h"
|
|
#include "WCheck.h"
|
|
#include "WordWrap.h"
|
|
#include "Text.h"
|
|
#endif
|
|
|
|
|
|
UINT32 guiArmourBackground;
|
|
UINT32 guiArmourGrid;
|
|
|
|
|
|
|
|
void GameInitBobbyRArmour()
|
|
{
|
|
|
|
}
|
|
|
|
BOOLEAN EnterBobbyRArmour()
|
|
{
|
|
VOBJECT_DESC VObjectDesc;
|
|
|
|
// load the background graphic and add it
|
|
VObjectDesc.fCreateFlags=VOBJECT_CREATE_FROMFILE;
|
|
FilenameForBPP("LAPTOP\\Armourbackground.sti", VObjectDesc.ImageFile);
|
|
CHECKF(AddVideoObject(&VObjectDesc, &guiArmourBackground));
|
|
|
|
// load the gunsgrid graphic and add it
|
|
VObjectDesc.fCreateFlags=VOBJECT_CREATE_FROMFILE;
|
|
FilenameForBPP("LAPTOP\\Armourgrid.sti", VObjectDesc.ImageFile);
|
|
CHECKF(AddVideoObject(&VObjectDesc, &guiArmourGrid));
|
|
|
|
InitBobbyBrTitle();
|
|
|
|
guiPrevArmourFilterMode = -1;
|
|
guiCurrentArmourFilterMode = -1;
|
|
|
|
SetFirstLastPagesForNew( IC_ARMOUR, guiCurrentArmourFilterMode );
|
|
|
|
//Draw menu bar
|
|
InitBobbyMenuBar( );
|
|
|
|
InitBobbyRArmourFilterBar();
|
|
|
|
RenderBobbyRArmour( );
|
|
|
|
return(TRUE);
|
|
}
|
|
|
|
void ExitBobbyRArmour()
|
|
{
|
|
DeleteVideoObjectFromIndex(guiArmourBackground);
|
|
DeleteVideoObjectFromIndex(guiArmourGrid);
|
|
DeleteBobbyMenuBar();
|
|
|
|
DeleteBobbyRArmourFilter();
|
|
|
|
DeleteBobbyBrTitle();
|
|
DeleteMouseRegionForBigImage();
|
|
|
|
giCurrentSubPage = gusCurWeaponIndex;
|
|
guiLastBobbyRayPage = LAPTOP_MODE_BOBBY_R_ARMOR;
|
|
}
|
|
|
|
void HandleBobbyRArmour()
|
|
{
|
|
HandleBobbyRGuns();
|
|
}
|
|
|
|
void RenderBobbyRArmour()
|
|
{
|
|
|
|
HVOBJECT hPixHandle;
|
|
|
|
WebPageTileBackground(BOBBYR_NUM_HORIZONTAL_TILES, BOBBYR_NUM_VERTICAL_TILES, BOBBYR_BACKGROUND_WIDTH, BOBBYR_BACKGROUND_HEIGHT, guiArmourBackground);
|
|
|
|
//Display title at top of page
|
|
//DisplayBobbyRBrTitle();
|
|
|
|
// GunForm
|
|
GetVideoObject(&hPixHandle, guiArmourGrid);
|
|
BltVideoObject(FRAME_BUFFER, hPixHandle, 0, BOBBYR_GRIDLOC_X, BOBBYR_GRIDLOC_Y, VO_BLT_SRCTRANSPARENCY,NULL);
|
|
|
|
DisplayItemInfo(IC_ARMOUR, guiCurrentArmourFilterMode);
|
|
|
|
UpdateButtonText(guiCurrentLaptopMode);
|
|
// TODO
|
|
|
|
UpdateArmourFilterButtons();
|
|
|
|
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;
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|