22 #ifndef DIRECTOR_TYPES_H 23 #define DIRECTOR_TYPES_H 27 #define CONTINUATION (0xAC) 30 kFewFamesMaxCounter = 19,
34 kShotColorDiffThreshold = 2,
35 kShotPercentPixelThreshold = 1
38 #define kQuirksCacheArchive "quirks" 41 kMovieFlagRemapPalettesWhenNeeded = (1 << 6),
42 kMovieFlagAllowOutdatedLingo = (1 << 8)
57 kCastDigitalVideo = 10,
58 kCastLingoScript = 11,
74 enum EventHandlerSourceType {
84 kScriptFlagUnused = (1 << 0x0),
85 kScriptFlagFuncsGlobal = (1 << 0x1),
86 kScriptFlagVarsGlobal = (1 << 0x2),
87 kScriptFlagUnk3 = (1 << 0x3),
88 kScriptFlagFactoryDef = (1 << 0x4),
89 kScriptFlagUnk5 = (1 << 0x5),
90 kScriptFlagUnk6 = (1 << 0x6),
91 kScriptFlagUnk7 = (1 << 0x7),
92 kScriptFlagHasFactory = (1 << 0x8),
93 kScriptFlagEventScript = (1 << 0x9),
94 kScriptFlagEventScript2 = (1 << 0xa),
95 kScriptFlagUnkB = (1 << 0xb),
96 kScriptFlagUnkC = (1 << 0xc),
97 kScriptFlagUnkD = (1 << 0xd),
98 kScriptFlagUnkE = (1 << 0xe),
99 kScriptFlagUnkF = (1 << 0xf)
104 kFactoryObj = 1 << 0,
108 kAllObj = kFactoryObj | kXObj | kScriptObj | kXtraObj,
110 kCastMemberObj = 1 << 5
121 kTextTypeAdjustToFit,
133 kTextFlagEditable = (1 << 0),
134 kTextFlagAutoTab = (1 << 1),
135 kTextFlagDoNotWrap = (1 << 2)
154 kFrameRateDefault = -1,
155 kFrameRateNormal = 0,
156 kFrameRateFastest = 1,
163 kRectangleSprite = 2,
164 kRoundedRectangleSprite = 3,
166 kLineTopBottomSprite = 5,
167 kLineBottomTopSprite = 6,
171 kRadioButtonSprite = 10,
173 kOutlinedRectangleSprite = 12,
174 kOutlinedRoundedRectangleSprite = 13,
175 kOutlinedOvalSprite = 14,
176 kThickLineSprite = 15,
177 kCastMemberSprite = 16,
178 kFilmLoopSprite = 17,
198 kInkTypeBackgndTrans,
223 kEventActivateWindow,
224 kEventDeactivateWindow,
235 kEventRightMouseDown,
238 kEventMouseUpOutSide,
246 enum TransitionType {
252 kTransCenterOutHorizontal,
253 kTransEdgesInHorizontal,
254 kTransCenterOutVertical,
255 kTransEdgesInVertical,
256 kTransCenterOutSquare,
265 kTransRevealDownRight,
267 kTransRevealDownLeft,
270 kTransDissolvePixelsFast,
271 kTransDissolveBoxyRects,
272 kTransDissolveBoxySquares,
273 kTransDissolvePatterns,
278 kTransCoverDownRight,
286 kTransStripsBottomBuildLeft,
287 kTransStripsBottomBuildRight,
288 kTransStripsLeftBuildDown,
289 kTransStripsLeftBuildUp,
290 kTransStripsRightBuildDown,
291 kTransStripsRightBuildUp,
292 kTransStripsTopBuildLeft,
293 kTransStripsTopBuildRight,
297 kTransDissolveBitsFast,
298 kTransDissolvePixels,
316 kClutSystemWin = -101,
317 kClutSystemWinD5 = -102
324 enum DirectorCursor {
335 kPlayPausedAfterLoading,
367 kFileVer1000 = 0x73B,
368 kFileVer1100 = 0x781,
369 kFileVer1150 = 0x782,
410 kLPPForceD2 = 1 << 1,
411 kLPPTrimGarbage = 1 << 2,
420 : member(memberID), castLib(castLibID) {}
423 return member == c.member && castLib == c.castLib;
426 return member != c.member || castLib != c.castLib;
429 bool isNull()
const {
return member == 0 && castLib == 0; }
433 uint hash()
const {
return ((castLib & 0xffff) << 16) + (member & 0xffff); }
437 kCompareLess = 1 << 0,
438 kCompareEqual = 1 << 1,
439 kCompareGreater = 1 << 2,
440 kCompareError = 1 << 3,
443 enum DebugDrawModes {
444 kDebugDrawCast = 1 << 0,
445 kDebugDrawFrame = 1 << 1,
453 const char *scriptType2str(ScriptType scr);
454 const char *castType2str(CastType type);
455 const char *spriteType2str(SpriteType type);
456 const char *inkType2str(InkType type);
Center the text.
Definition: font.h:52
Align the text to the left.
Definition: font.h:51
RenderMode
Definition: rendermode.h:48
Align the text to the right.
Definition: font.h:54
Definition: algorithm.h:29