-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMain.h
More file actions
105 lines (85 loc) · 2.67 KB
/
Main.h
File metadata and controls
105 lines (85 loc) · 2.67 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
// Object identifier "pskt"
#define IDENTIFIER MAKEID(p,s,k,t)
// ------------------------------
// DEFINITION OF CONDITIONS CODES
// ------------------------------
#define CND_CONDITION 0
#define CND_LAST 0
// ---------------------------
// DEFINITION OF ACTIONS CODES
// ---------------------------
#define ACT_ACTION 0
#define ACT_LAST 18
// -------------------------------
// DEFINITION OF EXPRESSIONS CODES
// -------------------------------
#define EXP_EXPRESSION 0
#define EXP_LAST 6
#define HORIZONTAL 0
#define VERTICAL 1
#define PANORAMA 0
#define PERSPECTIVE 1
#define SINEWAVE 2
#define SINEOFFSET 3
#define CUSTOM 4
#define CUSTOMOFFSET 5
#define LEFTRIGHTTOPBOTTOM 0
#define RIGHTLEFTBOTTOMTOP 1
// --------------------------------
// EDITION OF OBJECT DATA STRUCTURE
// --------------------------------
// These values let you store data in your extension that will be saved in the CCA.
// You would use these with a dialog...
typedef struct tagEDATA_V1
{
extHeader eHeader;
short sx;
short sy;
short swidth;
short sheight;
char Effect;
bool Direction;
int DefaultZoom;
int DefaultOffset;
int SineWaveWaves;
bool PerspectiveDir;
bool resample;
} EDITDATA;
typedef EDITDATA _far * LPEDATA;
// Object versions
#define KCX_CURRENT_VERSION 1
// --------------------------------
// RUNNING OBJECT DATA STRUCTURE
// --------------------------------
// If you want to store anything between actions/conditions/expressions
// you should store it here. Also, some OEFLAGS require you to add
// structures to this structure.
typedef struct tagRDATA
{
headerObject rHo; // Header
rCom roc;
rSpr rs;
rMvt rm;
cSurface * TempImage;
int Effect;
bool Direction;
int ZoomValue;
int Offset;
int SineWaveWaves;
bool PerspectiveDir;
int * CustomArray;
bool resample;
} RUNDATA;
typedef RUNDATA _far * LPRDATA;
// Size when editing the object under level editor
// -----------------------------------------------
#define MAX_EDITSIZE sizeof(EDITDATA)
// Default flags
// -------------
#define OEFLAGS OEFLAG_SPRITES|OEFLAG_BACKSAVE|OEFLAG_SCROLLINGINDEPENDANT|OEFLAG_RUNBEFOREFADEIN|OEFLAG_NEVERKILL|OEFLAG_NEVERSLEEP|OEFLAG_MOVEMENTS
#define OEPREFS OEPREFS_BACKSAVE|OEPREFS_SCROLLINGINDEPENDANT|OEPREFS_LOADONCALL|OEPREFS_KILL
/* See OEFLAGS.txt for more info on these useful things! */
// If to handle message, specify the priority of the handling procedure
// 0= low, 255= very high. You should use 100 as normal.
// --------------------------------------------------------------------
#define WINDOWPROC_PRIORITY 100