mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
* Fixing upper/lower case for includes types.h, zconf.h and zlib.h were renamed so that global includes like Types.h are not used.
36 lines
840 B
C++
36 lines
840 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 = 20;
|
|
// 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_
|