61 lines
1.6 KiB
C++
61 lines
1.6 KiB
C++
#pragma once
|
|
|
|
#include <windows.h>
|
|
//#include <string>
|
|
#include <map>
|
|
|
|
#include "ItemBase.h"
|
|
#include "SkillBaseFile.h"
|
|
#include "SStringDB.h"
|
|
|
|
using std::string;
|
|
using std::map;
|
|
|
|
namespace rp
|
|
{
|
|
extern bool s_bApplyAutoToolTip;
|
|
|
|
class CAutoToolTip
|
|
{
|
|
public:
|
|
|
|
CAutoToolTip( void );
|
|
|
|
private:
|
|
|
|
typedef map < int, const char* > mapClassString;
|
|
typedef mapClassString::iterator imapClassString;
|
|
typedef mapClassString::const_iterator cimapClassString;
|
|
|
|
typedef map < int, const char* > mapOptionString;
|
|
typedef mapOptionString::iterator imapOptionString;
|
|
typedef mapOptionString::const_iterator cimapOptionString;
|
|
|
|
typedef map < DWORD, const char* > mapAwakeningOptionString;
|
|
|
|
|
|
public:
|
|
|
|
string CreateItemTooltipString( const ItemBaseEx_info* pItemBase,
|
|
int nRace,
|
|
int nJobID,
|
|
string appearanceName = "", // 2012. 7. 30 - marine 형상변환 아이템 이름 출력 추가.
|
|
bool bAwakening = false,
|
|
bool bIsRandomOptionItem = false,
|
|
bool bIsIdentifiedRandomOption = false,
|
|
int nAdditionalItemEffect = 0 ) const; // Fraun Sky Accessories 7/12/2025
|
|
|
|
std::string GetItemClassString( int nClass ) const;
|
|
std::string GetItemOptionString( const ItemBaseEx_info * pItemBase ) const;
|
|
std::string GetItemAwakeningOptionString( DWORD dwType ) const;
|
|
std::string GetItemStateString( const ItemBaseEx_info * pItemBase ) const;
|
|
|
|
|
|
private:
|
|
|
|
|
|
mapClassString m_mapClassString;
|
|
mapOptionString m_mapOptionString;
|
|
mapAwakeningOptionString m_mapAwakeningOptionString;
|
|
};
|
|
} |