New Misc filter buttons for Bobby Rays, by attachmentClass:

(attachment tag must also be 1)
BR_MISC_FILTER_OPTICS (AC_SCOPE | AC_SIGHT)
BR_MISC_FILTER_SIDE_BOTTOM (AC_LASER | AC_FOREGRIP | AC_BIPOD)
BR_MISC_FILTER_MUZZLE (AC_SUPPRESSOR | AC_EXTENDER)
BR_MISC_FILTER_STOCK AC_STOCK
BR_MISC_FILTER_INTERNAL (AC_MAGWELL | AC_INTERNAL | AC_EXTERNAL)
BR_MISC_FILTER_OTHER_ATTACHMENTS for all other attachment classes
BR_MISC_FILTER_NO_ATTACHMENTS for the original button; it no longer displays any attachments

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@5285 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
MaddMugsy
2012-05-18 04:36:52 +00:00
parent f6ed981a21
commit 78ad9111e4
15 changed files with 185 additions and 26 deletions
+4 -2
View File
@@ -41,8 +41,10 @@ BOOLEAN EnterBobbyRMisc()
guiPrevMiscFilterMode = -1;
guiCurrentMiscFilterMode = -1;
guiCurrentMiscSubFilterMode = -1;
guiPrevMiscSubFilterMode = -1;
SetFirstLastPagesForNew( IC_BOBBY_MISC, guiCurrentMiscFilterMode );
SetFirstLastPagesForNew( IC_BOBBY_MISC, guiCurrentMiscFilterMode, guiCurrentMiscSubFilterMode );
//Draw menu bar
InitBobbyMenuBar( );
@@ -89,7 +91,7 @@ void RenderBobbyRMisc()
GetVideoObject(&hPixHandle, guiMiscGrid);
BltVideoObject(FRAME_BUFFER, hPixHandle, 0, BOBBYR_GRIDLOC_X, BOBBYR_GRIDLOC_Y, VO_BLT_SRCTRANSPARENCY,NULL);
DisplayItemInfo(IC_BOBBY_MISC, guiCurrentMiscFilterMode);
DisplayItemInfo(IC_BOBBY_MISC, guiCurrentMiscFilterMode, guiCurrentMiscSubFilterMode);
UpdateButtonText(guiCurrentLaptopMode);
UpdateMiscFilterButtons();