-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathUOGump.h
More file actions
88 lines (77 loc) · 1.9 KB
/
UOGump.h
File metadata and controls
88 lines (77 loc) · 1.9 KB
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
80
81
82
83
84
85
86
87
88
#ifndef UOGUMP_INCLUDED
#define UOGUMP_INCLUDED
/*
UOAI - gump related stuff
-- Wim Decelle
*/
#include "Features.h"
typedef void (__stdcall * gumpdummy)(void);
typedef struct GumpVtblStruct
{
void (__stdcall * Destructor)(int bDestroy);
gumpdummy Unknowns[6];
void (__stdcall * Focus)();
void (__stdcall * Click)();
//...
} GumpVtbl;
typedef struct GumpElementVtblStruct
{
gumpdummy Unknowns[5];
void (__stdcall * Click)();
//...
} GumpElementVtbl;
typedef struct GumpStruct
{
GumpVtbl * lpVtbl;
} Gump;
typedef struct GumpElementStruct
{
GumpElementVtbl * lpVtbl;
} GumpElement;
typedef struct _GumpOffsetsStruct
{
unsigned int oGumpName;
unsigned int oGump;
unsigned int oGumpWidth;
unsigned int oGumpHeight;
unsigned int oGumpX;
unsigned int oGumpY;
unsigned int oGumpItem;
unsigned int oGumpNext;
unsigned int oGumpPrevious;
unsigned int oGumpFirstSubGump;
unsigned int oGumpLastSubGump;
unsigned int oGumpType;
unsigned int oGumpClickCallback;
unsigned int oGumpUnicodeText;
unsigned int oGumpText;
unsigned int oGenericGumpID;
unsigned int oGenericGumpType;
unsigned int oGenericGumpElements;
unsigned int oGenericGumpSubElements;
unsigned int oGenericGumpNoClose;
unsigned int oGenericGumpNoMove;
unsigned int oGenericGumpNoDispose;
unsigned int oGumpElementType;
unsigned int oGumpElementNext;
unsigned int oGumpElementID;
unsigned int oGumpElementSelected;
unsigned int oGumpElementText;
unsigned int oGumpElementTooltip;
unsigned int oGumpElementX;
unsigned int oGumpElementY;
unsigned int oGumpElementWidth;
unsigned int oGumpElementHeight;
unsigned int oGumpElementReleasedType;
unsigned int oGumpElementPressedType;
} _GumpOffsets;
typedef enum GumpTypeEnum
{
Configuration=0x1388,
Status=0x8,
Journal=0x7,
CombatBook=0x2B02,
Unknown1=0x2B29,
Overview=0x1392
} GumpTypes;
#endif