mirror of
https://github.com/1dot13/source.git
synced 2026-09-09 14:46:05 +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:
+2
-2
@@ -23,12 +23,12 @@ INT16 zVersionLabel[256] = { L"Beta v. 0.98" };
|
|||||||
#else
|
#else
|
||||||
|
|
||||||
//RELEASE BUILD VERSION
|
//RELEASE BUILD VERSION
|
||||||
INT16 zVersionLabel[256] = { L"Release v1.13.654" };
|
INT16 zVersionLabel[256] = { L"Release v1.13.656" };
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
INT8 czVersionNumber[16] = { "Build 06.12.17" };
|
INT8 czVersionNumber[16] = { "Build 07.01.07" }; //YY.MM.DD
|
||||||
INT16 zTrackingNumber[16] = { L"Z" };
|
INT16 zTrackingNumber[16] = { L"Z" };
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -43,7 +43,7 @@
|
|||||||
<Tool
|
<Tool
|
||||||
Name="VCLinkerTool"
|
Name="VCLinkerTool"
|
||||||
AdditionalDependencies="libexpatMT.lib mss32.lib winmm.lib smackw32.lib fmodvc.lib"
|
AdditionalDependencies="libexpatMT.lib mss32.lib winmm.lib smackw32.lib fmodvc.lib"
|
||||||
OutputFile="C:\Games\Jagged Alliance 2 v1.13\ja2_debug_654.exe"
|
OutputFile="C:\Games\Jagged Alliance 2 v1.13\ja2_debug_656.exe"
|
||||||
LinkIncremental="2"
|
LinkIncremental="2"
|
||||||
SuppressStartupBanner="TRUE"
|
SuppressStartupBanner="TRUE"
|
||||||
AdditionalLibraryDirectories=".\..\..\Standard Gaming Platform\"
|
AdditionalLibraryDirectories=".\..\..\Standard Gaming Platform\"
|
||||||
@@ -546,7 +546,7 @@
|
|||||||
<Tool
|
<Tool
|
||||||
Name="VCLinkerTool"
|
Name="VCLinkerTool"
|
||||||
AdditionalDependencies="libexpatMT.lib winmm.lib smackw32.lib mss32.lib fmodvc.lib"
|
AdditionalDependencies="libexpatMT.lib winmm.lib smackw32.lib mss32.lib fmodvc.lib"
|
||||||
OutputFile="C:\games\Jagged Alliance 2 v1.13\ja2 v1.13.654_EN.exe"
|
OutputFile="C:\games\Jagged Alliance 2 v1.13\ja2 v1.13.656_EN.exe"
|
||||||
LinkIncremental="1"
|
LinkIncremental="1"
|
||||||
SuppressStartupBanner="TRUE"
|
SuppressStartupBanner="TRUE"
|
||||||
AdditionalLibraryDirectories=".\..\..\Standard Gaming Platform\"
|
AdditionalLibraryDirectories=".\..\..\Standard Gaming Platform\"
|
||||||
|
|||||||
+241
-27
@@ -140,6 +140,7 @@ BobbyRayPurchaseStruct BobbyRayPurchases[ MAX_PURCHASE_AMOUNT ];
|
|||||||
#define FILTER_BUTTONS_AMMO_START_X FILTER_BUTTONS_GUN_START_X
|
#define FILTER_BUTTONS_AMMO_START_X FILTER_BUTTONS_GUN_START_X
|
||||||
#define FILTER_BUTTONS_USED_START_X FILTER_BUTTONS_GUN_START_X //FILTER_BUTTONS_GUN_START_X + 122
|
#define FILTER_BUTTONS_USED_START_X FILTER_BUTTONS_GUN_START_X //FILTER_BUTTONS_GUN_START_X + 122
|
||||||
#define FILTER_BUTTONS_ARMOUR_START_X FILTER_BUTTONS_GUN_START_X
|
#define FILTER_BUTTONS_ARMOUR_START_X FILTER_BUTTONS_GUN_START_X
|
||||||
|
#define FILTER_BUTTONS_MISC_START_X FILTER_BUTTONS_GUN_START_X
|
||||||
#define FILTER_BUTTONS_Y BOBBYR_PREVIOUS_BUTTON_Y + 25
|
#define FILTER_BUTTONS_Y BOBBYR_PREVIOUS_BUTTON_Y + 25
|
||||||
|
|
||||||
// WANNE
|
// WANNE
|
||||||
@@ -147,7 +148,7 @@ BobbyRayPurchaseStruct BobbyRayPurchases[ MAX_PURCHASE_AMOUNT ];
|
|||||||
#define NUMBER_GUNS_FILTER_BUTTONS 9
|
#define NUMBER_GUNS_FILTER_BUTTONS 9
|
||||||
#define NUMBER_AMMO_FILTER_BUTTONS 8
|
#define NUMBER_AMMO_FILTER_BUTTONS 8
|
||||||
#define NUMBER_ARMOUR_FILTER_BUTTONS 4
|
#define NUMBER_ARMOUR_FILTER_BUTTONS 4
|
||||||
#define NUMBER_MISC_FILTER_BUTTONS 1
|
#define NUMBER_MISC_FILTER_BUTTONS 9
|
||||||
#define NUMBER_USED_FILTER_BUTTONS 3
|
#define NUMBER_USED_FILTER_BUTTONS 3
|
||||||
|
|
||||||
// WANNE
|
// WANNE
|
||||||
@@ -155,6 +156,7 @@ BobbyRayPurchaseStruct BobbyRayPurchases[ MAX_PURCHASE_AMOUNT ];
|
|||||||
#define BOBBYR_AMMO_FILTER_BUTTON_GAP BOBBYR_CATALOGUE_BUTTON_GAP - 1
|
#define BOBBYR_AMMO_FILTER_BUTTON_GAP BOBBYR_CATALOGUE_BUTTON_GAP - 1
|
||||||
#define BOBBYR_USED_FILTER_BUTTON_GAP BOBBYR_CATALOGUE_BUTTON_GAP - 1
|
#define BOBBYR_USED_FILTER_BUTTON_GAP BOBBYR_CATALOGUE_BUTTON_GAP - 1
|
||||||
#define BOBBYR_ARMOUR_FILTER_BUTTON_GAP BOBBYR_CATALOGUE_BUTTON_GAP - 1
|
#define BOBBYR_ARMOUR_FILTER_BUTTON_GAP BOBBYR_CATALOGUE_BUTTON_GAP - 1
|
||||||
|
#define BOBBYR_MISC_FILTER_BUTTON_GAP BOBBYR_CATALOGUE_BUTTON_GAP - 1
|
||||||
|
|
||||||
// WANNE
|
// WANNE
|
||||||
UINT32 guiBobbyRFilterGuns[ NUMBER_GUNS_FILTER_BUTTONS ];
|
UINT32 guiBobbyRFilterGuns[ NUMBER_GUNS_FILTER_BUTTONS ];
|
||||||
@@ -172,6 +174,7 @@ void BtnBobbyRFilterGunsCallback(GUI_BUTTON *btn,INT32 reason);
|
|||||||
void BtnBobbyRFilterAmmoCallback(GUI_BUTTON *btn,INT32 reason);
|
void BtnBobbyRFilterAmmoCallback(GUI_BUTTON *btn,INT32 reason);
|
||||||
void BtnBobbyRFilterUsedCallback(GUI_BUTTON *btn,INT32 reason);
|
void BtnBobbyRFilterUsedCallback(GUI_BUTTON *btn,INT32 reason);
|
||||||
void BtnBobbyRFilterArmourCallback(GUI_BUTTON *btn,INT32 reason);
|
void BtnBobbyRFilterArmourCallback(GUI_BUTTON *btn,INT32 reason);
|
||||||
|
void BtnBobbyRFilterMiscCallback(GUI_BUTTON *btn,INT32 reason);
|
||||||
|
|
||||||
BOOLEAN IsAmmoMatchinWeaponType(UINT16 usItemIndex, UINT8 ubWeaponType);
|
BOOLEAN IsAmmoMatchinWeaponType(UINT16 usItemIndex, UINT8 ubWeaponType);
|
||||||
|
|
||||||
@@ -209,6 +212,18 @@ INT8 ubFilterArmourButtonValues[] = {
|
|||||||
BOBBYR_FILTER_ARMOUR_LEGGING,
|
BOBBYR_FILTER_ARMOUR_LEGGING,
|
||||||
BOBBYR_FILTER_ARMOUR_PLATE};
|
BOBBYR_FILTER_ARMOUR_PLATE};
|
||||||
|
|
||||||
|
INT8 ubFilterMiscButtonValues[] = {
|
||||||
|
BOBBYR_FILTER_MISC_BLADE,
|
||||||
|
BOBBYR_FILTER_MISC_THROWING_KNIFE,
|
||||||
|
BOBBYR_FILTER_MISC_PUNCH,
|
||||||
|
BOBBYR_FILTER_MISC_GRENADE,
|
||||||
|
BOBBYR_FILTER_MISC_BOMB,
|
||||||
|
BOBBYR_FILTER_MISC_MEDKIT,
|
||||||
|
BOBBYR_FILTER_MISC_KIT,
|
||||||
|
BOBBYR_FILTER_MISC_FACE,
|
||||||
|
BOBBYR_FILTER_MISC_MISC};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
extern BOOLEAN fExitingLaptopFlag;
|
extern BOOLEAN fExitingLaptopFlag;
|
||||||
|
|
||||||
@@ -315,11 +330,13 @@ void GameInitBobbyRGuns()
|
|||||||
guiPrevAmmoFilterMode = -1;
|
guiPrevAmmoFilterMode = -1;
|
||||||
guiPrevUsedFilterMode = -1;
|
guiPrevUsedFilterMode = -1;
|
||||||
guiPrevArmourFilterMode = -1;
|
guiPrevArmourFilterMode = -1;
|
||||||
|
guiPrevMiscFilterMode = -1;
|
||||||
|
|
||||||
guiCurrentGunFilterMode = -1;
|
guiCurrentGunFilterMode = -1;
|
||||||
guiCurrentAmmoFilterMode = -1;
|
guiCurrentAmmoFilterMode = -1;
|
||||||
guiCurrentUsedFilterMode = -1;
|
guiCurrentUsedFilterMode = -1;
|
||||||
guiCurrentArmourFilterMode = -1;
|
guiCurrentArmourFilterMode = -1;
|
||||||
|
guiCurrentMiscFilterMode = -1;
|
||||||
|
|
||||||
memset(&BobbyRayPurchases, 0, MAX_PURCHASE_AMOUNT);
|
memset(&BobbyRayPurchases, 0, MAX_PURCHASE_AMOUNT);
|
||||||
}
|
}
|
||||||
@@ -643,6 +660,48 @@ BOOLEAN InitBobbyRUsedFilterBar()
|
|||||||
return(TRUE);
|
return(TRUE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
BOOLEAN InitBobbyRMiscFilterBar()
|
||||||
|
{
|
||||||
|
UINT8 i;
|
||||||
|
UINT16 usPosX;
|
||||||
|
UINT8 bCurMode;
|
||||||
|
UINT16 usYOffset = 0;
|
||||||
|
|
||||||
|
bCurMode = 0;
|
||||||
|
usPosX = FILTER_BUTTONS_MISC_START_X;
|
||||||
|
|
||||||
|
guiBobbyRFilterImage = LoadButtonImage("LAPTOP\\CatalogueButton1.sti", -1,0,-1,1,-1 );
|
||||||
|
|
||||||
|
// Loop through the filter buttons
|
||||||
|
for(i=0; i<NUMBER_MISC_FILTER_BUTTONS; i++)
|
||||||
|
{
|
||||||
|
// Next row
|
||||||
|
if (i > 7)
|
||||||
|
{
|
||||||
|
usPosX = FILTER_BUTTONS_MISC_START_X;
|
||||||
|
usYOffset = 25;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Filter buttons
|
||||||
|
guiBobbyRFilterMisc[i] = CreateIconAndTextButton( guiBobbyRFilterImage, BobbyRFilter[BOBBYR_FILTER_MISC_BLADE+i], BOBBYR_GUNS_BUTTON_FONT,
|
||||||
|
BOBBYR_GUNS_TEXT_COLOR_ON, BOBBYR_GUNS_SHADOW_COLOR,
|
||||||
|
BOBBYR_GUNS_TEXT_COLOR_OFF, BOBBYR_GUNS_SHADOW_COLOR,
|
||||||
|
TEXT_CJUSTIFIED,
|
||||||
|
usPosX, FILTER_BUTTONS_Y + usYOffset, BUTTON_TOGGLE, MSYS_PRIORITY_HIGH,
|
||||||
|
DEFAULT_MOVE_CALLBACK, BtnBobbyRFilterMiscCallback);
|
||||||
|
|
||||||
|
SetButtonCursor(guiBobbyRFilterMisc[i], CURSOR_LAPTOP_SCREEN);
|
||||||
|
|
||||||
|
MSYS_SetBtnUserData( guiBobbyRFilterMisc[i], 0, ubFilterMiscButtonValues[bCurMode]);
|
||||||
|
|
||||||
|
usPosX += BOBBYR_MISC_FILTER_BUTTON_GAP;
|
||||||
|
bCurMode++;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
return(TRUE);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
BOOLEAN InitBobbyMenuBar( )
|
BOOLEAN InitBobbyMenuBar( )
|
||||||
{
|
{
|
||||||
@@ -781,6 +840,21 @@ BOOLEAN DeleteBobbyRArmourFilter()
|
|||||||
return (TRUE);
|
return (TRUE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// WANNE
|
||||||
|
BOOLEAN DeleteBobbyRMiscFilter()
|
||||||
|
{
|
||||||
|
UINT8 i;
|
||||||
|
|
||||||
|
UnloadButtonImage( guiBobbyRFilterImage );
|
||||||
|
|
||||||
|
for (i=0; i<NUMBER_MISC_FILTER_BUTTONS; i++)
|
||||||
|
{
|
||||||
|
RemoveButton (guiBobbyRFilterMisc[i]);
|
||||||
|
}
|
||||||
|
|
||||||
|
return (TRUE);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
BOOLEAN DeleteBobbyMenuBar()
|
BOOLEAN DeleteBobbyMenuBar()
|
||||||
{
|
{
|
||||||
@@ -858,18 +932,16 @@ void BtnBobbyRPageMenuCallback(GUI_BUTTON *btn,INT32 reason)
|
|||||||
case LAPTOP_MODE_BOBBY_R_MISC:
|
case LAPTOP_MODE_BOBBY_R_MISC:
|
||||||
guiPrevMiscFilterMode = guiCurrentMiscFilterMode;
|
guiPrevMiscFilterMode = guiCurrentMiscFilterMode;
|
||||||
guiCurrentMiscFilterMode = -1;
|
guiCurrentMiscFilterMode = -1;
|
||||||
// TODO
|
|
||||||
//UpdateAmmoFilterButtons(guiCurrentAmmoFilterMode, guiPrevAmmoFilterMode);
|
UpdateMiscFilterButtons();
|
||||||
|
|
||||||
SetFirstLastPagesForNew(IC_BOBBY_MISC, guiCurrentMiscFilterMode);
|
SetFirstLastPagesForNew(IC_BOBBY_MISC, guiCurrentMiscFilterMode);
|
||||||
break;
|
break;
|
||||||
case LAPTOP_MODE_BOBBY_R_USED:
|
case LAPTOP_MODE_BOBBY_R_USED:
|
||||||
guiPrevUsedFilterMode = guiCurrentUsedFilterMode;
|
guiPrevUsedFilterMode = guiCurrentUsedFilterMode;
|
||||||
guiCurrentUsedFilterMode = -1;
|
guiCurrentUsedFilterMode = -1;
|
||||||
|
|
||||||
EnableButton(guiBobbyRFilterAmmo[0]);
|
UpdateUsedFilterButtons();
|
||||||
EnableButton(guiBobbyRFilterAmmo[1]);
|
|
||||||
EnableButton(guiBobbyRFilterAmmo[2]);
|
|
||||||
EnableButton(guiBobbyRFilterAmmo[3]);
|
|
||||||
|
|
||||||
SetFirstLastPagesForUsed(guiCurrentUsedFilterMode);
|
SetFirstLastPagesForUsed(guiCurrentUsedFilterMode);
|
||||||
break;
|
break;
|
||||||
@@ -980,9 +1052,6 @@ void BtnBobbyRFilterAmmoCallback(GUI_BUTTON *btn,INT32 reason)
|
|||||||
|
|
||||||
switch (bNewValue)
|
switch (bNewValue)
|
||||||
{
|
{
|
||||||
//case BOBBYR_FILTER_AMMO_HEAVY:
|
|
||||||
// guiCurrentAmmoFilterMode = NOT_GUN;
|
|
||||||
// break;
|
|
||||||
case BOBBYR_FILTER_AMMO_PISTOL:
|
case BOBBYR_FILTER_AMMO_PISTOL:
|
||||||
guiCurrentAmmoFilterMode = GUN_PISTOL;
|
guiCurrentAmmoFilterMode = GUN_PISTOL;
|
||||||
break;
|
break;
|
||||||
@@ -1049,9 +1118,6 @@ void BtnBobbyRFilterUsedCallback(GUI_BUTTON *btn,INT32 reason)
|
|||||||
case BOBBYR_FILTER_USED_GUNS:
|
case BOBBYR_FILTER_USED_GUNS:
|
||||||
guiCurrentUsedFilterMode = IC_BOBBY_GUN;
|
guiCurrentUsedFilterMode = IC_BOBBY_GUN;
|
||||||
break;
|
break;
|
||||||
//case BOBBYR_FILTER_USED_AMMO:
|
|
||||||
// guiCurrentUsedFilterMode = IC_AMMO;
|
|
||||||
// break;
|
|
||||||
case BOBBYR_FILTER_USED_ARMOR:
|
case BOBBYR_FILTER_USED_ARMOR:
|
||||||
guiCurrentUsedFilterMode = IC_ARMOUR;
|
guiCurrentUsedFilterMode = IC_ARMOUR;
|
||||||
break;
|
break;
|
||||||
@@ -1126,6 +1192,76 @@ void BtnBobbyRFilterArmourCallback(GUI_BUTTON *btn,INT32 reason)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// WANNE
|
||||||
|
void BtnBobbyRFilterMiscCallback(GUI_BUTTON *btn,INT32 reason)
|
||||||
|
{
|
||||||
|
UINT32 bNewValue;
|
||||||
|
bNewValue = MSYS_GetBtnUserData( btn, 0 );
|
||||||
|
INT32 iPrevButton, iNewButton;
|
||||||
|
|
||||||
|
|
||||||
|
if (!(btn->uiFlags & BUTTON_ENABLED))
|
||||||
|
return;
|
||||||
|
|
||||||
|
if(reason & MSYS_CALLBACK_REASON_LBUTTON_DWN )
|
||||||
|
{
|
||||||
|
btn->uiFlags |= BUTTON_CLICKED_ON;
|
||||||
|
|
||||||
|
InvalidateRegion(btn->Area.RegionTopLeftX, btn->Area.RegionTopLeftY, btn->Area.RegionBottomRightX, btn->Area.RegionBottomRightY);
|
||||||
|
}
|
||||||
|
if(reason & MSYS_CALLBACK_REASON_LBUTTON_UP )
|
||||||
|
{
|
||||||
|
btn->uiFlags &= (~BUTTON_CLICKED_ON );
|
||||||
|
|
||||||
|
guiPrevMiscFilterMode = guiCurrentMiscFilterMode;
|
||||||
|
|
||||||
|
switch (bNewValue)
|
||||||
|
{
|
||||||
|
case BOBBYR_FILTER_MISC_BLADE:
|
||||||
|
guiCurrentMiscFilterMode = IC_BLADE;
|
||||||
|
break;
|
||||||
|
case BOBBYR_FILTER_MISC_THROWING_KNIFE:
|
||||||
|
guiCurrentMiscFilterMode = IC_THROWING_KNIFE;
|
||||||
|
break;
|
||||||
|
case BOBBYR_FILTER_MISC_PUNCH:
|
||||||
|
guiCurrentMiscFilterMode = IC_PUNCH;
|
||||||
|
break;
|
||||||
|
case BOBBYR_FILTER_MISC_GRENADE:
|
||||||
|
guiCurrentMiscFilterMode = IC_GRENADE;
|
||||||
|
break;
|
||||||
|
case BOBBYR_FILTER_MISC_BOMB:
|
||||||
|
guiCurrentMiscFilterMode = IC_BOMB;
|
||||||
|
break;
|
||||||
|
case BOBBYR_FILTER_MISC_MEDKIT:
|
||||||
|
guiCurrentMiscFilterMode = IC_MEDKIT;
|
||||||
|
break;
|
||||||
|
case BOBBYR_FILTER_MISC_KIT:
|
||||||
|
guiCurrentMiscFilterMode = IC_KIT;
|
||||||
|
break;
|
||||||
|
case BOBBYR_FILTER_MISC_FACE:
|
||||||
|
guiCurrentMiscFilterMode = IC_FACE;
|
||||||
|
break;
|
||||||
|
case BOBBYR_FILTER_MISC_MISC:
|
||||||
|
guiCurrentMiscFilterMode = IC_MISC;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
SetFirstLastPagesForNew(IC_BOBBY_MISC, guiCurrentMiscFilterMode);
|
||||||
|
|
||||||
|
// WANNE: TODO
|
||||||
|
UpdateMiscFilterButtons();
|
||||||
|
|
||||||
|
DeleteMouseRegionForBigImage();
|
||||||
|
fReDrawScreenFlag = TRUE;
|
||||||
|
fPausedReDrawScreenFlag = TRUE;
|
||||||
|
}
|
||||||
|
if(reason & MSYS_CALLBACK_REASON_LOST_MOUSE)
|
||||||
|
{
|
||||||
|
btn->uiFlags &= (~BUTTON_CLICKED_ON );
|
||||||
|
InvalidateRegion(btn->Area.RegionTopLeftX, btn->Area.RegionTopLeftY, btn->Area.RegionBottomRightX, btn->Area.RegionBottomRightY);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void BtnBobbyRNextPreviousPageCallback(GUI_BUTTON *btn,INT32 reason)
|
void BtnBobbyRNextPreviousPageCallback(GUI_BUTTON *btn,INT32 reason)
|
||||||
{
|
{
|
||||||
UINT32 bNewValue;
|
UINT32 bNewValue;
|
||||||
@@ -1405,7 +1541,10 @@ BOOLEAN DisplayItemInfo(UINT32 uiItemClass, INT32 iFilter)
|
|||||||
{
|
{
|
||||||
if (iFilter > -1)
|
if (iFilter > -1)
|
||||||
{
|
{
|
||||||
// TODO
|
if (Item[usItemIndex].usItemClass == iFilter)
|
||||||
|
{
|
||||||
|
bAddItem = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1453,7 +1592,10 @@ BOOLEAN DisplayItemInfo(UINT32 uiItemClass, INT32 iFilter)
|
|||||||
{
|
{
|
||||||
if (iFilter > -1)
|
if (iFilter > -1)
|
||||||
{
|
{
|
||||||
// TODO
|
if (Item[usItemIndex].usItemClass == iFilter)
|
||||||
|
{
|
||||||
|
bAddItem = TRUE;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1995,12 +2137,18 @@ void SetFirstLastPagesForNew( UINT32 uiClassMask, INT32 iFilter )
|
|||||||
break;
|
break;
|
||||||
// Armour
|
// Armour
|
||||||
case IC_ARMOUR:
|
case IC_ARMOUR:
|
||||||
// WANNE: TODO
|
|
||||||
if (Armour[ Item[usItemIndex].ubClassIndex ].ubArmourClass == iFilter)
|
if (Armour[ Item[usItemIndex].ubClassIndex ].ubArmourClass == iFilter)
|
||||||
{
|
{
|
||||||
bCntNumItems = TRUE;
|
bCntNumItems = TRUE;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
// Misc
|
||||||
|
case IC_BOBBY_MISC:
|
||||||
|
if (Item[usItemIndex].usItemClass == iFilter)
|
||||||
|
{
|
||||||
|
bCntNumItems = TRUE;
|
||||||
|
}
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2694,7 +2842,14 @@ void UpdateButtonText(UINT32 uiCurPage)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case LAPTOP_MODE_BOBBY_R_MISC:
|
case LAPTOP_MODE_BOBBY_R_MISC:
|
||||||
DisableButton( guiBobbyRPageMenu[3] );
|
if (guiCurrentMiscFilterMode != -1)
|
||||||
|
{
|
||||||
|
EnableButton( guiBobbyRPageMenu[3] );
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
DisableButton( guiBobbyRPageMenu[3] );
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case LAPTOP_MODE_BOBBY_R_USED:
|
case LAPTOP_MODE_BOBBY_R_USED:
|
||||||
@@ -2749,25 +2904,20 @@ void UpdateGunFilterButtons(INT32 iNewButton, INT32 iOldButton)
|
|||||||
|
|
||||||
void UpdateUsedFilterButtons()
|
void UpdateUsedFilterButtons()
|
||||||
{
|
{
|
||||||
|
EnableButton(guiBobbyRFilterUsed[0]);
|
||||||
|
EnableButton(guiBobbyRFilterUsed[1]);
|
||||||
|
EnableButton(guiBobbyRFilterUsed[2]);
|
||||||
|
|
||||||
switch (guiCurrentUsedFilterMode)
|
switch (guiCurrentUsedFilterMode)
|
||||||
{
|
{
|
||||||
case IC_BOBBY_GUN:
|
case IC_BOBBY_GUN:
|
||||||
DisableButton(guiBobbyRFilterUsed[0]);
|
DisableButton(guiBobbyRFilterUsed[0]);
|
||||||
|
|
||||||
EnableButton(guiBobbyRFilterUsed[1]);
|
|
||||||
EnableButton(guiBobbyRFilterUsed[2]);
|
|
||||||
break;
|
break;
|
||||||
case IC_ARMOUR:
|
case IC_ARMOUR:
|
||||||
DisableButton(guiBobbyRFilterUsed[1]);
|
DisableButton(guiBobbyRFilterUsed[1]);
|
||||||
|
|
||||||
EnableButton(guiBobbyRFilterUsed[0]);
|
|
||||||
EnableButton(guiBobbyRFilterUsed[2]);
|
|
||||||
break;
|
break;
|
||||||
case IC_BOBBY_MISC:
|
case IC_BOBBY_MISC:
|
||||||
DisableButton(guiBobbyRFilterUsed[2]);
|
DisableButton(guiBobbyRFilterUsed[2]);
|
||||||
|
|
||||||
EnableButton(guiBobbyRFilterUsed[0]);
|
|
||||||
EnableButton(guiBobbyRFilterUsed[1]);
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -2790,6 +2940,65 @@ void UpdateArmourFilterButtons(INT32 iNewButton, INT32 iOldButton)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void UpdateMiscFilterButtons()
|
||||||
|
{
|
||||||
|
EnableButton(guiBobbyRFilterMisc[0]);
|
||||||
|
EnableButton(guiBobbyRFilterMisc[1]);
|
||||||
|
EnableButton(guiBobbyRFilterMisc[2]);
|
||||||
|
EnableButton(guiBobbyRFilterMisc[3]);
|
||||||
|
EnableButton(guiBobbyRFilterMisc[4]);
|
||||||
|
EnableButton(guiBobbyRFilterMisc[5]);
|
||||||
|
EnableButton(guiBobbyRFilterMisc[6]);
|
||||||
|
EnableButton(guiBobbyRFilterMisc[7]);
|
||||||
|
EnableButton(guiBobbyRFilterMisc[8]);
|
||||||
|
|
||||||
|
switch (guiCurrentMiscFilterMode)
|
||||||
|
{
|
||||||
|
case IC_BLADE:
|
||||||
|
DisableButton(guiBobbyRFilterMisc[0]);
|
||||||
|
break;
|
||||||
|
case IC_THROWING_KNIFE:
|
||||||
|
DisableButton(guiBobbyRFilterMisc[1]);
|
||||||
|
break;
|
||||||
|
case IC_PUNCH:
|
||||||
|
DisableButton(guiBobbyRFilterMisc[2]);
|
||||||
|
break;
|
||||||
|
case IC_GRENADE:
|
||||||
|
DisableButton(guiBobbyRFilterMisc[3]);
|
||||||
|
break;
|
||||||
|
case IC_BOMB:
|
||||||
|
DisableButton(guiBobbyRFilterMisc[4]);
|
||||||
|
break;
|
||||||
|
case IC_MEDKIT:
|
||||||
|
DisableButton(guiBobbyRFilterMisc[5]);
|
||||||
|
break;
|
||||||
|
case IC_KIT:
|
||||||
|
DisableButton(guiBobbyRFilterMisc[6]);
|
||||||
|
break;
|
||||||
|
case IC_FACE:
|
||||||
|
DisableButton(guiBobbyRFilterMisc[7]);
|
||||||
|
break;
|
||||||
|
case IC_MISC:
|
||||||
|
DisableButton(guiBobbyRFilterMisc[8]);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
//if (iNewButton != iOldButton)
|
||||||
|
//{
|
||||||
|
// if (iNewButton > -1)
|
||||||
|
// {
|
||||||
|
// // Disable new Button
|
||||||
|
// DisableButton(guiBobbyRFilterMisc[iNewButton]);
|
||||||
|
// }
|
||||||
|
|
||||||
|
// if (iOldButton > -1)
|
||||||
|
// {
|
||||||
|
// // Enable old Button
|
||||||
|
// EnableButton(guiBobbyRFilterMisc[iOldButton]);
|
||||||
|
// }
|
||||||
|
//}
|
||||||
|
}
|
||||||
|
|
||||||
UINT16 CalcBobbyRayCost( UINT16 usIndex, UINT16 usBobbyIndex, BOOLEAN fUsed)
|
UINT16 CalcBobbyRayCost( UINT16 usIndex, UINT16 usBobbyIndex, BOOLEAN fUsed)
|
||||||
{
|
{
|
||||||
DOUBLE value;
|
DOUBLE value;
|
||||||
@@ -3005,7 +3214,12 @@ void CalcFirstIndexForPage( STORE_INVENTORY *pInv, UINT32 uiItemClass )
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// TODO
|
usItemIndex = LaptopSaveInfo.BobbyRayInventory[ i ].usItemIndex;
|
||||||
|
|
||||||
|
if (Item[usItemIndex].usItemClass == guiCurrentMiscFilterMode)
|
||||||
|
{
|
||||||
|
bCntItem = TRUE;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -42,10 +42,12 @@ BOOLEAN DeleteBobbyRGunsFilter();
|
|||||||
BOOLEAN DeleteBobbyRAmmoFilter();
|
BOOLEAN DeleteBobbyRAmmoFilter();
|
||||||
BOOLEAN DeleteBobbyRUsedFilter();
|
BOOLEAN DeleteBobbyRUsedFilter();
|
||||||
BOOLEAN DeleteBobbyRArmourFilter();
|
BOOLEAN DeleteBobbyRArmourFilter();
|
||||||
|
BOOLEAN DeleteBobbyRMiscFilter();
|
||||||
BOOLEAN InitBobbyRGunsFilterBar();
|
BOOLEAN InitBobbyRGunsFilterBar();
|
||||||
BOOLEAN InitBobbyRAmmoFilterBar();
|
BOOLEAN InitBobbyRAmmoFilterBar();
|
||||||
BOOLEAN InitBobbyRUsedFilterBar();
|
BOOLEAN InitBobbyRUsedFilterBar();
|
||||||
BOOLEAN InitBobbyRArmourFilterBar();
|
BOOLEAN InitBobbyRArmourFilterBar();
|
||||||
|
BOOLEAN InitBobbyRMiscFilterBar();
|
||||||
|
|
||||||
BOOLEAN DisplayBobbyRBrTitle();
|
BOOLEAN DisplayBobbyRBrTitle();
|
||||||
BOOLEAN DeleteBobbyBrTitle();
|
BOOLEAN DeleteBobbyBrTitle();
|
||||||
@@ -64,6 +66,7 @@ void UpdateAmmoFilterButtons(INT32 iNewButton, INT32 iOldButton);
|
|||||||
void UpdateGunFilterButtons(INT32 iNewButton, INT32 iOldButton);
|
void UpdateGunFilterButtons(INT32 iNewButton, INT32 iOldButton);
|
||||||
void UpdateUsedFilterButtons();
|
void UpdateUsedFilterButtons();
|
||||||
void UpdateArmourFilterButtons(INT32 iNewButton, INT32 iOldButton);
|
void UpdateArmourFilterButtons(INT32 iNewButton, INT32 iOldButton);
|
||||||
|
void UpdateMiscFilterButtons();
|
||||||
|
|
||||||
void EnterInitBobbyRGuns();
|
void EnterInitBobbyRGuns();
|
||||||
void DailyUpdateOfBobbyRaysUsedInventory();
|
void DailyUpdateOfBobbyRaysUsedInventory();
|
||||||
|
|||||||
+17
-7
@@ -42,10 +42,15 @@ BOOLEAN EnterBobbyRMisc()
|
|||||||
guiPrevMiscFilterMode = -1;
|
guiPrevMiscFilterMode = -1;
|
||||||
guiCurrentMiscFilterMode = -1;
|
guiCurrentMiscFilterMode = -1;
|
||||||
|
|
||||||
|
SetFirstLastPagesForNew( IC_BOBBY_MISC, guiCurrentMiscFilterMode );
|
||||||
|
|
||||||
//Draw menu bar
|
//Draw menu bar
|
||||||
InitBobbyMenuBar( );
|
InitBobbyMenuBar( );
|
||||||
|
// WANNE
|
||||||
|
InitBobbyRMiscFilterBar();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
SetFirstLastPagesForNew( IC_BOBBY_MISC, guiCurrentMiscFilterMode );
|
|
||||||
// CalculateFirstAndLastIndexs();
|
// CalculateFirstAndLastIndexs();
|
||||||
|
|
||||||
RenderBobbyRMisc( );
|
RenderBobbyRMisc( );
|
||||||
@@ -58,9 +63,14 @@ void ExitBobbyRMisc()
|
|||||||
DeleteVideoObjectFromIndex(guiMiscBackground);
|
DeleteVideoObjectFromIndex(guiMiscBackground);
|
||||||
DeleteVideoObjectFromIndex(guiMiscGrid);
|
DeleteVideoObjectFromIndex(guiMiscGrid);
|
||||||
DeleteBobbyBrTitle();
|
DeleteBobbyBrTitle();
|
||||||
DeleteMouseRegionForBigImage();
|
|
||||||
DeleteBobbyMenuBar();
|
DeleteBobbyMenuBar();
|
||||||
|
|
||||||
|
// WANNE
|
||||||
|
DeleteBobbyRMiscFilter();
|
||||||
|
|
||||||
|
DeleteMouseRegionForBigImage();
|
||||||
|
|
||||||
guiLastBobbyRayPage = LAPTOP_MODE_BOBBY_R_MISC;
|
guiLastBobbyRayPage = LAPTOP_MODE_BOBBY_R_MISC;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -79,16 +89,16 @@ void RenderBobbyRMisc()
|
|||||||
|
|
||||||
// GunForm
|
// GunForm
|
||||||
GetVideoObject(&hPixHandle, guiMiscGrid);
|
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);
|
DisplayItemInfo(IC_BOBBY_MISC, guiCurrentMiscFilterMode);
|
||||||
|
|
||||||
UpdateButtonText(guiCurrentLaptopMode);
|
UpdateButtonText(guiCurrentLaptopMode);
|
||||||
// TODO
|
UpdateMiscFilterButtons();
|
||||||
|
|
||||||
MarkButtonsDirty( );
|
MarkButtonsDirty( );
|
||||||
RenderWWWProgramTitleBar( );
|
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;
|
fReDrawScreenFlag = TRUE;
|
||||||
fPausedReDrawScreenFlag = TRUE;
|
fPausedReDrawScreenFlag = TRUE;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -825,6 +825,16 @@ enum
|
|||||||
BOBBYR_FILTER_ARMOUR_VEST,
|
BOBBYR_FILTER_ARMOUR_VEST,
|
||||||
BOBBYR_FILTER_ARMOUR_LEGGING,
|
BOBBYR_FILTER_ARMOUR_LEGGING,
|
||||||
BOBBYR_FILTER_ARMOUR_PLATE,
|
BOBBYR_FILTER_ARMOUR_PLATE,
|
||||||
|
// Misc
|
||||||
|
BOBBYR_FILTER_MISC_BLADE,
|
||||||
|
BOBBYR_FILTER_MISC_THROWING_KNIFE,
|
||||||
|
BOBBYR_FILTER_MISC_PUNCH,
|
||||||
|
BOBBYR_FILTER_MISC_GRENADE,
|
||||||
|
BOBBYR_FILTER_MISC_BOMB,
|
||||||
|
BOBBYR_FILTER_MISC_MEDKIT,
|
||||||
|
BOBBYR_FILTER_MISC_KIT,
|
||||||
|
BOBBYR_FILTER_MISC_FACE,
|
||||||
|
BOBBYR_FILTER_MISC_MISC,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
+15
-4
@@ -2835,10 +2835,21 @@ STR16 BobbyRFilter[] =
|
|||||||
L"Misc",
|
L"Misc",
|
||||||
|
|
||||||
// Armour
|
// Armour
|
||||||
L"Helm",
|
L"Helmets",
|
||||||
L"Vest",
|
L"Vests",
|
||||||
L"Legging",
|
L"Leggings",
|
||||||
L"Plate",
|
L"Plates",
|
||||||
|
|
||||||
|
// Misc
|
||||||
|
L"Blades",
|
||||||
|
L"Th. Knives",
|
||||||
|
L"Punch. W.",
|
||||||
|
L"Grenades",
|
||||||
|
L"Bombs",
|
||||||
|
L"Med. Kits",
|
||||||
|
L"Kits",
|
||||||
|
L"Face Items",
|
||||||
|
L"Misc.",
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
+15
-4
@@ -2835,10 +2835,21 @@ STR16 BobbyRFilter[] =
|
|||||||
L"Misc",
|
L"Misc",
|
||||||
|
|
||||||
// Armour
|
// Armour
|
||||||
L"Helm",
|
L"Helmets",
|
||||||
L"Vest",
|
L"Vests",
|
||||||
L"Legging",
|
L"Leggings",
|
||||||
L"Plate",
|
L"Plates",
|
||||||
|
|
||||||
|
// Misc
|
||||||
|
L"Blades",
|
||||||
|
L"Th. Knives",
|
||||||
|
L"Punch. W.",
|
||||||
|
L"Grenades",
|
||||||
|
L"Bombs",
|
||||||
|
L"Med. Kits",
|
||||||
|
L"Kits",
|
||||||
|
L"Face Items",
|
||||||
|
L"Misc.",
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
+15
-4
@@ -2824,10 +2824,21 @@ STR16 BobbyRFilter[] =
|
|||||||
L"Misc",
|
L"Misc",
|
||||||
|
|
||||||
// Armour
|
// Armour
|
||||||
L"Helm",
|
L"Helmets",
|
||||||
L"Vest",
|
L"Vests",
|
||||||
L"Legging",
|
L"Leggings",
|
||||||
L"Plate",
|
L"Plates",
|
||||||
|
|
||||||
|
// Misc
|
||||||
|
L"Blades",
|
||||||
|
L"Th. Knives",
|
||||||
|
L"Punch. W.",
|
||||||
|
L"Grenades",
|
||||||
|
L"Bombs",
|
||||||
|
L"Med. Kits",
|
||||||
|
L"Kits",
|
||||||
|
L"Face Items",
|
||||||
|
L"Misc.",
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
+16
-5
@@ -2692,14 +2692,25 @@ STR16 BobbyRFilter[] =
|
|||||||
|
|
||||||
// Used
|
// Used
|
||||||
L"Feuerwfn.",
|
L"Feuerwfn.",
|
||||||
L"Rüstung",
|
L"Rüstungen",
|
||||||
L"Sonstiges",
|
L"Sonstiges",
|
||||||
|
|
||||||
// Armour
|
// Armour
|
||||||
L"Helm",
|
L"Helme",
|
||||||
L"Weste",
|
L"Westen",
|
||||||
L"Hose",
|
L"Hosen",
|
||||||
L"Platte",
|
L"Platten",
|
||||||
|
|
||||||
|
// Misc
|
||||||
|
L"Klingen",
|
||||||
|
L"Wurfmesser",
|
||||||
|
L"Schlagwaf.",
|
||||||
|
L"Granaten",
|
||||||
|
L"Bomben",
|
||||||
|
L"Verbandsk.",
|
||||||
|
L"Taschen",
|
||||||
|
L"Gesicht G.",
|
||||||
|
L"Sonstiges",
|
||||||
};
|
};
|
||||||
|
|
||||||
// This text is used when on the various Bobby Ray Web site pages that sell items
|
// This text is used when on the various Bobby Ray Web site pages that sell items
|
||||||
|
|||||||
+15
-4
@@ -2819,10 +2819,21 @@ STR16 BobbyRFilter[] =
|
|||||||
L"Misc",
|
L"Misc",
|
||||||
|
|
||||||
// Armour
|
// Armour
|
||||||
L"Helm",
|
L"Helmets",
|
||||||
L"Vest",
|
L"Vests",
|
||||||
L"Legging",
|
L"Leggings",
|
||||||
L"Plate",
|
L"Plates",
|
||||||
|
|
||||||
|
// Misc
|
||||||
|
L"Blades",
|
||||||
|
L"Th. Knives",
|
||||||
|
L"Punch. W.",
|
||||||
|
L"Grenades",
|
||||||
|
L"Bombs",
|
||||||
|
L"Med. Kits",
|
||||||
|
L"Kits",
|
||||||
|
L"Face Items",
|
||||||
|
L"Misc.",
|
||||||
};
|
};
|
||||||
|
|
||||||
// This text is used when on the various Bobby Ray Web site pages that sell items
|
// This text is used when on the various Bobby Ray Web site pages that sell items
|
||||||
|
|||||||
+15
-4
@@ -2817,10 +2817,21 @@ STR16 BobbyRFilter[] =
|
|||||||
L"Misc",
|
L"Misc",
|
||||||
|
|
||||||
// Armour
|
// Armour
|
||||||
L"Helm",
|
L"Helmets",
|
||||||
L"Vest",
|
L"Vests",
|
||||||
L"Legging",
|
L"Leggings",
|
||||||
L"Plate",
|
L"Plates",
|
||||||
|
|
||||||
|
// Misc
|
||||||
|
L"Blades",
|
||||||
|
L"Th. Knives",
|
||||||
|
L"Punch. W.",
|
||||||
|
L"Grenades",
|
||||||
|
L"Bombs",
|
||||||
|
L"Med. Kits",
|
||||||
|
L"Kits",
|
||||||
|
L"Face Items",
|
||||||
|
L"Misc.",
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
+15
-4
@@ -2827,10 +2827,21 @@ STR16 BobbyRFilter[] =
|
|||||||
L"Misc",
|
L"Misc",
|
||||||
|
|
||||||
// Armour
|
// Armour
|
||||||
L"Helm",
|
L"Helmets",
|
||||||
L"Vest",
|
L"Vests",
|
||||||
L"Legging",
|
L"Leggings",
|
||||||
L"Plate",
|
L"Plates",
|
||||||
|
|
||||||
|
// Misc
|
||||||
|
L"Blades",
|
||||||
|
L"Th. Knives",
|
||||||
|
L"Punch. W.",
|
||||||
|
L"Grenades",
|
||||||
|
L"Bombs",
|
||||||
|
L"Med. Kits",
|
||||||
|
L"Kits",
|
||||||
|
L"Face Items",
|
||||||
|
L"Misc.",
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user