Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define MAX_LEVEL 13
- #define MAX_CHARS 30
- #define MAX_LINES 100
- #define MAX_ITEMS 512
- #define mGetItem(x,y) ((x*MAX_ITEMS)+y)
- // 1.03.08 CHS
- #define oItemToolTip_Call01 0x005A0B34
- #define oItemToolTip_Call02 0x007222D6
- #define oItemToolTip_Call03 0x00722323
- #define oItemToolTip_Call04 0x0072234E
- #define oItemToolTip_Call05 0x00722379
- #define oItemToolTip_Call06 0x0074755A
- #define oItemToolTip_Call07 0x00771C0C
- #define pItemToolTip ((void(__cdecl*)(int CoordX,int CoordY,LPITEM lpItem,int a4,int a5))0x0058B520)
- enum eColorID
- {
- WHITE=0,
- BLUE,
- RED,
- YELLOW,
- GREEN,
- WHITERED,
- PURPLE,
- WHITEBLUE,
- WHITEYELLOW,
- GREENBLUE,
- GRAY,
- LIGHTPURPLE,
- VIOLET,
- };
- class cToolTip
- {
- public:
- cToolTip();
- void STTC RenderInfo(int CoordX,int CoordY,LPITEM lpItem,int a4,int a5);
- private:
- int NumberLine;
- int SpacedLine;
- int TextBold[MAX_CHARS];
- int TextListColor[MAX_CHARS];
- char TextList[MAX_CHARS][MAX_LINES];
- };
- extern cToolTip gToolTip;
- cToolTip::cToolTip()
- {
- this->NumberLine=0;
- this->SpacedLine=0;
- ZeroMemory(this->TextListColor,((MAX_CHARS-10)*sizeof(int)));
- }
- void cToolTip::RenderInfo(int CoordX,int CoordY,LPITEM lpItem,int a4,int a5)
- {
- if(lpItem->Type==-1) return;
- LPITEMATTR lpItemAttr = &ItemAttribute[lpItem->Type];
- for(int y=0;y<MAX_CHARS;y++)
- {
- this->TextList[y][0]=0;
- }
- sprintf(this->TextList[this->NumberLine],"\n");
- this->NumberLine++;
- this->SpacedLine++;
- int ItemLevel=(lpItem->Level>>3)&MAX_LEVEL;
- switch(lpItem->Type)
- {
- case mGetItem(0,30):
- {
- sprintf(this->TextList[this->NumberLine],"new added text");
- this->TextListColor[this->NumberLine]=BLUE;
- this->TextBold[this->NumberLine]=0;
- this->NumberLine++;
- }
- break;
- }
- pItemToolTip(CoordX,CoordY,lpItem,a4,a5);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement