Bobby Rays Filter Buttons: Removed "Heavy Weapons" filter from ammo, renamed "LMG" to "MG", removed "Ammo" filter from Used items.

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@457 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Wanne
2006-08-20 19:46:17 +00:00
parent 2d6d54769b
commit 0eadcefc0d
10 changed files with 44 additions and 44 deletions
BIN
View File
Binary file not shown.
+14 -14
View File
@@ -138,16 +138,16 @@ BobbyRayPurchaseStruct BobbyRayPurchases[ MAX_PURCHASE_AMOUNT ];
// WANNE // WANNE
#define FILTER_BUTTONS_GUN_START_X BOBBYR_PREVIOUS_BUTTON_X #define FILTER_BUTTONS_GUN_START_X BOBBYR_PREVIOUS_BUTTON_X
#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 + 122 #define FILTER_BUTTONS_USED_START_X FILTER_BUTTONS_GUN_START_X //FILTER_BUTTONS_GUN_START_X + 122
#define FILTER_BUTTONS_Y BOBBYR_PREVIOUS_BUTTON_Y + 25 #define FILTER_BUTTONS_Y BOBBYR_PREVIOUS_BUTTON_Y + 25
// WANNE // WANNE
// The number of filter buttons which category uses // The number of filter buttons which category uses
#define NUMBER_GUNS_FILTER_BUTTONS 9 #define NUMBER_GUNS_FILTER_BUTTONS 9
#define NUMBER_AMMO_FILTER_BUTTONS 9 #define NUMBER_AMMO_FILTER_BUTTONS 8
#define NUMBER_ARMOUR_FILTER_BUTTONS 1 #define NUMBER_ARMOUR_FILTER_BUTTONS 1
#define NUMBER_MISC_FILTER_BUTTONS 1 #define NUMBER_MISC_FILTER_BUTTONS 1
#define NUMBER_USED_FILTER_BUTTONS 4 #define NUMBER_USED_FILTER_BUTTONS 3
// WANNE // WANNE
#define BOBBYR_GUNS_FILTER_BUTTON_GAP BOBBYR_CATALOGUE_BUTTON_GAP - 1 #define BOBBYR_GUNS_FILTER_BUTTON_GAP BOBBYR_CATALOGUE_BUTTON_GAP - 1
@@ -186,7 +186,7 @@ INT8 ubFilterGunsButtonValues[] = {
// WANNE // WANNE
INT8 ubFilterAmmoButtonValues[] = { INT8 ubFilterAmmoButtonValues[] = {
BOBBYR_FILTER_AMMO_HEAVY, //BOBBYR_FILTER_AMMO_HEAVY,
BOBBYR_FILTER_AMMO_PISTOL, BOBBYR_FILTER_AMMO_PISTOL,
BOBBYR_FILTER_AMMO_M_PISTOL, BOBBYR_FILTER_AMMO_M_PISTOL,
BOBBYR_FILTER_AMMO_SMG, BOBBYR_FILTER_AMMO_SMG,
@@ -198,7 +198,7 @@ INT8 ubFilterAmmoButtonValues[] = {
INT8 ubFilterUsedButtonValues[] = { INT8 ubFilterUsedButtonValues[] = {
BOBBYR_FILTER_USED_GUNS, BOBBYR_FILTER_USED_GUNS,
BOBBYR_FILTER_USED_AMMO, //BOBBYR_FILTER_USED_AMMO,
BOBBYR_FILTER_USED_ARMOR, BOBBYR_FILTER_USED_ARMOR,
BOBBYR_FILTER_USED_MISC}; BOBBYR_FILTER_USED_MISC};
@@ -538,7 +538,7 @@ BOOLEAN InitBobbyRAmmoFilterBar()
} }
// Filter buttons // Filter buttons
guiBobbyRFilterAmmo[i] = CreateIconAndTextButton( guiBobbyRFilterImage, BobbyRFilter[BOBBYR_FILTER_AMMO_HEAVY+i], BOBBYR_GUNS_BUTTON_FONT, guiBobbyRFilterAmmo[i] = CreateIconAndTextButton( guiBobbyRFilterImage, BobbyRFilter[BOBBYR_FILTER_AMMO_PISTOL+i], BOBBYR_GUNS_BUTTON_FONT,
BOBBYR_GUNS_TEXT_COLOR_ON, BOBBYR_GUNS_SHADOW_COLOR, BOBBYR_GUNS_TEXT_COLOR_ON, BOBBYR_GUNS_SHADOW_COLOR,
BOBBYR_GUNS_TEXT_COLOR_OFF, BOBBYR_GUNS_SHADOW_COLOR, BOBBYR_GUNS_TEXT_COLOR_OFF, BOBBYR_GUNS_SHADOW_COLOR,
TEXT_CJUSTIFIED, TEXT_CJUSTIFIED,
@@ -919,9 +919,9 @@ void BtnBobbyRFilterAmmoCallback(GUI_BUTTON *btn,INT32 reason)
switch (bNewValue) switch (bNewValue)
{ {
case BOBBYR_FILTER_AMMO_HEAVY: //case BOBBYR_FILTER_AMMO_HEAVY:
guiCurrentAmmoFilterMode = NOT_GUN; // guiCurrentAmmoFilterMode = NOT_GUN;
break; // break;
case BOBBYR_FILTER_AMMO_PISTOL: case BOBBYR_FILTER_AMMO_PISTOL:
guiCurrentAmmoFilterMode = GUN_PISTOL; guiCurrentAmmoFilterMode = GUN_PISTOL;
break; break;
@@ -990,9 +990,9 @@ 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: //case BOBBYR_FILTER_USED_AMMO:
guiCurrentUsedFilterMode = IC_AMMO; // guiCurrentUsedFilterMode = IC_AMMO;
break; // break;
case BOBBYR_FILTER_USED_ARMOR: case BOBBYR_FILTER_USED_ARMOR:
guiCurrentUsedFilterMode = IC_ARMOUR; guiCurrentUsedFilterMode = IC_ARMOUR;
break; break;
@@ -2595,13 +2595,13 @@ void UpdateAmmoFilterButtons(INT32 iNewButton, INT32 iOldButton)
if (iNewButton > -1) if (iNewButton > -1)
{ {
// Disable new Button // Disable new Button
DisableButton(guiBobbyRFilterAmmo[iNewButton]); DisableButton(guiBobbyRFilterAmmo[iNewButton - 1]);
} }
if (iOldButton > -1) if (iOldButton > -1)
{ {
// Enable old Button // Enable old Button
EnableButton(guiBobbyRFilterAmmo[iOldButton]); EnableButton(guiBobbyRFilterAmmo[iOldButton - 1]);
} }
} }
} }
+2 -2
View File
@@ -760,7 +760,7 @@ enum
BOBBYR_FILTER_GUNS_LMG, BOBBYR_FILTER_GUNS_LMG,
BOBBYR_FILTER_GUNS_SHOTGUN, BOBBYR_FILTER_GUNS_SHOTGUN,
// Ammo // Ammo
BOBBYR_FILTER_AMMO_HEAVY, //BOBBYR_FILTER_AMMO_HEAVY,
BOBBYR_FILTER_AMMO_PISTOL, BOBBYR_FILTER_AMMO_PISTOL,
BOBBYR_FILTER_AMMO_M_PISTOL, BOBBYR_FILTER_AMMO_M_PISTOL,
BOBBYR_FILTER_AMMO_SMG, BOBBYR_FILTER_AMMO_SMG,
@@ -771,7 +771,7 @@ enum
BOBBYR_FILTER_AMMO_SHOTGUN, BOBBYR_FILTER_AMMO_SHOTGUN,
// Used // Used
BOBBYR_FILTER_USED_GUNS, BOBBYR_FILTER_USED_GUNS,
BOBBYR_FILTER_USED_AMMO, //BOBBYR_FILTER_USED_AMMO,
BOBBYR_FILTER_USED_ARMOR, BOBBYR_FILTER_USED_ARMOR,
BOBBYR_FILTER_USED_MISC, BOBBYR_FILTER_USED_MISC,
}; };
+4 -4
View File
@@ -2809,23 +2809,23 @@ STR16 BobbyRFilter[] =
L"Rifle", L"Rifle",
L"SN Rifle", L"SN Rifle",
L"AS Rifle", L"AS Rifle",
L"LMG", L"MG",
L"Shotgun", L"Shotgun",
// Ammo // Ammo
L"Heavy W.", //L"Heavy W.",
L"Pistol", L"Pistol",
L"M. Pistol", L"M. Pistol",
L"SMG", L"SMG",
L"Rifle", L"Rifle",
L"SN Rifle", L"SN Rifle",
L"AS Rifle", L"AS Rifle",
L"LMG", L"MG",
L"Shotgun", L"Shotgun",
// Used // Used
L"Guns", L"Guns",
L"Ammo", //L"Ammo",
L"Armor", L"Armor",
L"Misc", L"Misc",
}; };
+4 -4
View File
@@ -2809,23 +2809,23 @@ STR16 BobbyRFilter[] =
L"Rifle", L"Rifle",
L"SN Rifle", L"SN Rifle",
L"AS Rifle", L"AS Rifle",
L"LMG", L"MG",
L"Shotgun", L"Shotgun",
// Ammo // Ammo
L"Heavy W.", //L"Heavy W.",
L"Pistol", L"Pistol",
L"M. Pistol", L"M. Pistol",
L"SMG", L"SMG",
L"Rifle", L"Rifle",
L"SN Rifle", L"SN Rifle",
L"AS Rifle", L"AS Rifle",
L"LMG", L"MG",
L"Shotgun", L"Shotgun",
// Used // Used
L"Guns", L"Guns",
L"Ammo", //L"Ammo",
L"Armor", L"Armor",
L"Misc", L"Misc",
}; };
+4 -4
View File
@@ -2798,23 +2798,23 @@ STR16 BobbyRFilter[] =
L"Rifle", L"Rifle",
L"SN Rifle", L"SN Rifle",
L"AS Rifle", L"AS Rifle",
L"LMG", L"MG",
L"Shotgun", L"Shotgun",
// Ammo // Ammo
L"Heavy W.", //L"Heavy W.",
L"Pistol", L"Pistol",
L"M. Pistol", L"M. Pistol",
L"SMG", L"SMG",
L"Rifle", L"Rifle",
L"SN Rifle", L"SN Rifle",
L"AS Rifle", L"AS Rifle",
L"LMG", L"MG",
L"Shotgun", L"Shotgun",
// Used // Used
L"Guns", L"Guns",
L"Ammo", //L"Ammo",
L"Armor", L"Armor",
L"Misc", L"Misc",
}; };
+4 -4
View File
@@ -2670,23 +2670,23 @@ STR16 BobbyRFilter[] =
L"Gewehr", L"Gewehr",
L"SS Gewehr", L"SS Gewehr",
L"Sturmgew.", L"Sturmgew.",
L"LMG", L"MG",
L"Schrotfl.", L"Schrotfl.",
// Ammo // Ammo
L"Schwere W.", //L"Schwere W.",
L"Pistole", L"Pistole",
L"M. Pistole", L"M. Pistole",
L"SMG", L"SMG",
L"Gewehr", L"Gewehr",
L"SS Gewehr", L"SS Gewehr",
L"Sturmgew.", L"Sturmgew.",
L"LMG", L"MG",
L"Schrotfl.", L"Schrotfl.",
// Used // Used
L"Feuerwfn.", L"Feuerwfn.",
L"Munition", //L"Munition",
L"Rüstung", L"Rüstung",
L"Sonstiges", L"Sonstiges",
}; };
+4 -4
View File
@@ -2793,23 +2793,23 @@ STR16 BobbyRFilter[] =
L"Rifle", L"Rifle",
L"SN Rifle", L"SN Rifle",
L"AS Rifle", L"AS Rifle",
L"LMG", L"MG",
L"Shotgun", L"Shotgun",
// Ammo // Ammo
L"Heavy W.", //L"Heavy W.",
L"Pistol", L"Pistol",
L"M. Pistol", L"M. Pistol",
L"SMG", L"SMG",
L"Rifle", L"Rifle",
L"SN Rifle", L"SN Rifle",
L"AS Rifle", L"AS Rifle",
L"LMG", L"MG",
L"Shotgun", L"Shotgun",
// Used // Used
L"Guns", L"Guns",
L"Ammo", //L"Ammo",
L"Armor", L"Armor",
L"Misc", L"Misc",
}; };
+4 -4
View File
@@ -2791,23 +2791,23 @@ STR16 BobbyRFilter[] =
L"Rifle", L"Rifle",
L"SN Rifle", L"SN Rifle",
L"AS Rifle", L"AS Rifle",
L"LMG", L"MG",
L"Shotgun", L"Shotgun",
// Ammo // Ammo
L"Heavy W.", //L"Heavy W.",
L"Pistol", L"Pistol",
L"M. Pistol", L"M. Pistol",
L"SMG", L"SMG",
L"Rifle", L"Rifle",
L"SN Rifle", L"SN Rifle",
L"AS Rifle", L"AS Rifle",
L"LMG", L"MG",
L"Shotgun", L"Shotgun",
// Used // Used
L"Guns", L"Guns",
L"Ammo", //L"Ammo",
L"Armor", L"Armor",
L"Misc", L"Misc",
}; };
+4 -4
View File
@@ -2800,23 +2800,23 @@ STR16 BobbyRFilter[] =
L"Rifle", L"Rifle",
L"SN Rifle", L"SN Rifle",
L"AS Rifle", L"AS Rifle",
L"LMG", L"MG",
L"Shotgun", L"Shotgun",
// Ammo // Ammo
L"Heavy W.", //L"Heavy W.",
L"Pistol", L"Pistol",
L"M. Pistol", L"M. Pistol",
L"SMG", L"SMG",
L"Rifle", L"Rifle",
L"SN Rifle", L"SN Rifle",
L"AS Rifle", L"AS Rifle",
L"LMG", L"MG",
L"Shotgun", L"Shotgun",
// Used // Used
L"Guns", L"Guns",
L"Ammo", //L"Ammo",
L"Armor", L"Armor",
L"Misc", L"Misc",
}; };