-
Notifications
You must be signed in to change notification settings - Fork 13
/
m_GameChat.h
69 lines (48 loc) · 1.89 KB
/
m_GameChat.h
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
#ifdef FUNCTION_DECLARE
#define MODULE_GAMECHAT
void WisperPatch_ASM();
void InputLinePatch1_ASM();
void InputLinePatch2_ASM();
void CheckD2WinEditBox();
void SelectTextPatch1_ASM();
void SelectTextPatch2_ASM();
#endif
#ifdef VARIABLE_DEFINE
GVAR2(ToggleVar, tWisperNotice, 1, 0, -1, 1, "Wisper Notice")
GVAR2(ToggleVar, tInputLine, 1, 1, -1, 1, "Input line Patch")
GVAR2(ToggleVar, tUseCustomFont, 1, 0, -1, 1, "Use Custom Font")
GVAR (D2EditBox*, pD2WinEditBox, 0)
#endif
#ifdef PATH_INSTALL
{PatchCALL, DLLOFFSET(D2CLIENT, 0x6FB40FF7), (DWORD)WisperPatch_ASM, 5 , &fDefault},
{PatchCALL, DLLOFFSET(D2CLIENT, 0x6FB41D9C), (DWORD)InputLinePatch1_ASM, 5 , &fDefault},
{PatchCALL, DLLOFFSET(D2CLIENT, 0x6FB414AB), (DWORD)InputLinePatch2_ASM, 5 , &fDefault},
{PatchVALUE, DLLOFFSET(D2CLIENT, 0x6FAD4605), 0x2EB58, 3 , &fDefault},
{PatchVALUE, DLLOFFSET(D2CLIENT, 0x6FAD4585), 0x2EB58, 3 , &fDefault},
{PatchCALL, DLLOFFSET(D2WIN , 0x6F8F24A1), (DWORD)SelectTextPatch1_ASM, 8 , &fDefault}, //聊天框选中中文文字
{PatchCALL, DLLOFFSET(D2WIN , 0x6F8F2442), (DWORD)SelectTextPatch2_ASM, 8 , &fDefault}, //聊天框选中中文文字
#endif
#ifdef CONFIG_LOAD
{1, "WisperNoticeToggle", &tWisperNotice },
{1, "InputLineToggle", &tInputLine },
{1, "UseCustomFontToggle", &tUseCustomFont },
#endif
#ifdef RUN_ONCE
#endif
#ifdef RUN_LOOP
CheckD2WinEditBox();
#endif
#ifdef RUN_ENDGAME
if (pD2WinEditBox) {
*(DWORD*)p_D2LastChatMessage = 0;
wchar_t *p = wcscpy(p_D2LastChatMessage, D2GetEditBoxText(pD2WinEditBox));
*p_D2ChatTextLength = wcslen(p);
D2DestroyEditBox(pD2WinEditBox);
pD2WinEditBox = NULL;
FOCUSECONTROL = NULL;
}
#endif
#ifdef INIT_VALUE
#endif
#ifdef FIX_VALUE
#endif