mirror of
https://github.com/1dot13/source.git
synced 2026-07-29 13:52:17 +02:00
Cleaned up PxItems code to not be so messy, and be more flexible later once we can figure out a way to enable P4-P9items again git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@5253 3b4a5df2-a311-0410-b5c6-a8a6f20db521
36 lines
839 B
C++
36 lines
839 B
C++
#ifndef _ITERFACEITEMIMAGES_H_
|
|
#define _ITERFACEITEMIMAGES_H_
|
|
|
|
#include "Types.h"
|
|
#include <vfs/Core/vfs_types.h>
|
|
#include <vfs/Core/vfs_path.h>
|
|
#include <map>
|
|
|
|
class MDItemVideoObjects
|
|
{
|
|
public:
|
|
MDItemVideoObjects();
|
|
|
|
UINT32 getVObjectForItem(UINT32 key);
|
|
void registerItem(UINT32 key, vfs::Path const& sFileName);
|
|
bool registerItemsFromFilePattern(vfs::Path const& sFilePattern);
|
|
void unRegisterAllItems();
|
|
private:
|
|
std::map<UINT32,UINT32> m_mapVObjects;
|
|
};
|
|
|
|
|
|
extern bool g_bUsePngItemImages;
|
|
const UINT8 MAX_PITEMS = 3;
|
|
// old item image handles
|
|
extern UINT32 guiGUNSM;
|
|
extern UINT32 guiPITEMS[MAX_PITEMS];
|
|
|
|
// new item image handles
|
|
extern MDItemVideoObjects g_oGUNSM;
|
|
extern MDItemVideoObjects g_oPITEMS[MAX_PITEMS];
|
|
|
|
bool RegisterItemImages();
|
|
|
|
#endif // _ITERFACEITEMIMAGES_H_
|