- New Feature: Quick attachment selection (by The_Bob)

o The popup will list attachments available for the given slot on the current weapon. Ones not in sector inventory will be greyed out.
o It should show up after clicking on an empty attachment slot, provided these criteria are met:
--> we are on the mapscreen
--> the sector inventory is open
--> the selected merc is in this sector
--> there is no combat in this sector





git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@4620 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Wanne
2011-08-23 06:42:39 +00:00
parent e55fb6e54f
commit c04c93857f
11 changed files with 2332 additions and 2 deletions
+12
View File
@@ -3,6 +3,7 @@
#include "items.h"
#include "Handle Items.h"
#include "popup_class.h"
// DEFINES FOR ITEM SLOT SIZES IN PIXELS
#define BIG_INV_SLOT_WIDTH 61
@@ -304,4 +305,15 @@ INT16 CycleItems( INT16 usOldItem );
BOOLEAN InitializeStealItemPickupMenu( SOLDIERTYPE *pSoldier, SOLDIERTYPE *pOpponent, ITEM_POOL *pItemPool, UINT8 ubCount);
// BOB : quick attachment selection popups
extern POPUP* gItemDescAttachmentPopups[MAX_ATTACHMENTS]; // popup list for attachment slots
extern INT32 giActiveAttachmentPopup; // the attachment popup to display in mapscreen
// BOB : quick equip popups
extern POPUP* gEquipPopups[NUM_INV_SLOTS]; // popup list for attachment slots
extern INT32 giActiveEquipPopup; // the attachment popup to display in mapscreen
// BOB : duh...
void DoAttachment( UINT8 subObject, INT32 iItemPos );
#endif