-
Notifications
You must be signed in to change notification settings - Fork 13
/
PartyInfo.cpp
79 lines (56 loc) · 1.18 KB
/
PartyInfo.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#include "stdafx.h"
#ifdef MODULE_PARTYINFO
void __fastcall DrawPetHeadPath(int xpos , UnitAny *pUnit){
if ( tShowPartyLevel.isOn ){
wchar_t wszTemp[512];
wsprintfW( wszTemp, L"%d" , D2GetUnitStat(pUnit, STAT_LEVEL, 0) );
DrawD2Text(1, wszTemp , xpos+5 , 57 , 0 );
}
}
void __declspec(naked) DrawPetHeadPath_ASM()
{
//ecx xpos
//eax ypos
//ebx pPet
__asm {
push esi
mov edx , ebx
call DrawPetHeadPath
pop esi
//org
mov [esp+0x56], 0
ret
}
}
void __fastcall DrawPartyHeadPath(int xpos , RosterUnit *pRosterUnit){
wchar_t wszTemp[512];
if ( tShowPartyLevel.isOn ){
wsprintfW( wszTemp, L"%d" , pRosterUnit->wLevel );
DrawD2Text(1, wszTemp , xpos+5 , 57 , 0 );
}
if ( tShowPartyPosition.isOn ){
wsprintfW( wszTemp, L"%d" , pRosterUnit->dwLevelNo );
DrawCenterText(1, wszTemp , xpos+20 , 15 , 4 ,1,1);
}
}
void __declspec(naked) DrawPartyHeadPath_ASM()
{
//[ebx] xpos
//eax ypos
//[esp+0C] pRosterUnit
__asm {
mov ecx, dword ptr [ebx]
mov edx, dword ptr [esp+0xC]
push ebx
push edi
push eax
call DrawPartyHeadPath
pop eax
pop edi
pop ebx
mov ecx, dword ptr [ebx]
mov edx, dword ptr [esp+0xC]
ret
}
}
#endif