Commit Graph

918 Commits

Author SHA1 Message Date
Eugene Sandulenko
4325605111 DIRECTOR: Lingo: Add missing break statement 2017-08-11 20:44:42 +02:00
D G Turner
b3c1ed66e4 DIRECTOR: Fix GCC Compiler Warnings. 2017-08-02 13:26:29 +01:00
Eugene Sandulenko
73c5c85210 DIRECTOR: Clarified STXT field names 2017-08-01 10:42:22 +02:00
Tobia Tesan
348edec176 DIRECTOR: Make 3-ary processEvent private 2017-07-05 08:35:33 +02:00
Tobia Tesan
2ae7d9f86b DIRECTOR: Handle kEventPrepareMovie with 1-ary processEvent 2017-07-05 08:35:33 +02:00
Tobia Tesan
9ddb97b4ed DIRECTOR: Handle kEventExitFrame with 1-ary processEvent 2017-07-05 08:35:33 +02:00
Tobia Tesan
7b675fc1de DIRECTOR: Handle kEventNone with 1-ary processEvent 2017-07-05 08:35:33 +02:00
Tobia Tesan
8a6dce9fd3 DIRECTOR: Handle kEventIdle with 1-ary processEvent 2017-07-05 08:35:33 +02:00
Tobia Tesan
1d5c92783e DIRECTOR: Add processSpriteEvent 2017-07-05 08:35:33 +02:00
Tobia Tesan
fd310f1fd3 DIRECTOR: Move executeImmediateScripts to lingo.cpp 2017-07-05 08:35:33 +02:00
Tobia Tesan
f1d2149db6 DIRECTOR: Include director/frame.h and sprite.h in lingo.cpp 2017-07-05 08:35:33 +02:00
Tobia Tesan
9735fb06ca DIRECTOR: Move #define CHANNEL_COUNT to director.h 2017-07-05 08:35:33 +02:00
Tobia Tesan
265b0882f6 DIRECTOR: Use 1-ary processEvent call to start movie
Perahsp a specialized Lingo::start() would be better for clarity for
this single one?
2017-07-05 08:35:33 +02:00
Tobia Tesan
8a6ef727cf DIRECTOR: Add kEventStart case for processGenericEvent 2017-07-05 08:35:33 +02:00
Tobia Tesan
5a4942b6c5 DIRECTOR: Remove "primary event handler" comment
According to D4 manual only mouse/key/timeout event can have primary
handler
2017-07-05 08:35:33 +02:00
Tobia Tesan
3059c95abd DIRECTOR: Handle keyDown in 1-ary processEvent
Might change semantics by calling the standard chain for input events.

That is what the D4 docs suggest anyway.
2017-07-05 08:35:33 +02:00
Tobia Tesan
137e10eef2 DIRECTOR: Add kFrameScript call
This follows from D4 docs.

Changes semantics, *might* break stuff.
2017-07-05 08:35:33 +02:00
Tobia Tesan
0584f936dc DIRECTOR: Reorder processInputEvent 2017-07-05 08:35:33 +02:00
Tobia Tesan
bfe3a316c4 DIRECTOR: Swap order of processEvent calls
This appears to be the correct order from docs and makes code easier to
reorder.

*Might* break stuff though.
2017-07-05 08:35:33 +02:00
Tobia Tesan
57dbfbf988 DIRECTOR: Call primaryEventHandler in processInputEvent 2017-07-05 08:35:33 +02:00
Tobia Tesan
c267bc208f DIRECTOR: Handle kEventPrepareFrame in processFrameEvent 2017-07-05 08:35:33 +02:00
Tobia Tesan
963bc4a351 DIRECTOR: Move kEventMouseUp/Down handling to processInputEvent 2017-07-05 08:35:33 +02:00
Tobia Tesan
5a9a1571fa DIRECTOR: Include sprite.h in lingo-events.cpp 2017-07-05 08:35:33 +02:00
Tobia Tesan
f9302e2c94 DIRECTOR: Handle frame enter/exit with 1-ary processEvent call 2017-07-05 08:35:33 +02:00
Tobia Tesan
ce3aaa08d0 DIRECTOR: Implement processFrameEvent 2017-07-05 08:35:33 +02:00
Tobia Tesan
38db7dfafe DIRECTOR: Add runMovieScript 2017-07-05 08:35:33 +02:00
Tobia Tesan
252c890bf5 DIRECTOR: Add Lingo::PrimaryEventHandler 2017-07-05 08:35:33 +02:00
Tobia Tesan
ed66169adf DIRECTOR: Include frame.h in lingo-events.cpp 2017-07-05 08:35:33 +02:00
Tobia Tesan
4f749fc007 DIRECTOR: Add Lingo::_dontPassEvent
I'm not sure whether this should go here or in Director.
I'm leaving it here because _dontPassEvent changes the semantics of event handling.
2017-07-05 08:35:33 +02:00
Eugene Sandulenko
bfd2b487eb DIRECTOR: Fix code formatting 2017-05-02 22:06:59 +02:00
Eugene Sandulenko
98f0006ad9 DIRECTOR: Reduce header dependency 2017-05-02 22:06:39 +02:00
Eugene Sandulenko
c750d17b0c DIRECTOR: Fix #include paths 2017-05-02 22:04:21 +02:00
Tobia Tesan
ca89722d57 DIRECTOR: Use CachedMacText for rendering 2017-05-02 21:01:23 +01:00
Tobia Tesan
bd7ded3f56 DIRECTOR: Add CachedMacText to TextCast 2017-05-02 21:01:23 +01:00
Tobia Tesan
415d9d660e DIRECTOR: Add CachedMacText 2017-05-02 21:01:23 +01:00
Tobia Tesan
d6f651064b DIRECTOR: Add TextCast::importStxt 2017-05-02 21:01:23 +01:00
Tobia Tesan
8b9e029c1e DIRECTOR: Remove now-useless textId parameter from renderButton 2017-05-02 21:01:23 +01:00
Tobia Tesan
61cd407405 DIRECTOR: Use text from textCasts 2017-05-02 21:01:23 +01:00
Tobia Tesan
84a65f9df0 DIRECTOR: Init textCasts with Stxts in Score 2017-05-02 21:01:23 +01:00
Tobia Tesan
bad6cc32ef DIRECTOR: Equip textCast with _ftext 2017-05-02 21:01:23 +01:00
Tobia Tesan
6a741a88c9 GRAPHICS: Pass interlinear as constructor argument to MacText 2017-05-02 21:01:23 +01:00
Tobia Tesan
4ae5453af8 DIRECTOR: Add stxt.cpp 2017-05-02 21:01:23 +01:00
Tobia Tesan
fca74091c3 DIRECTOR: Delete Stxts in ~Score 2017-05-02 21:01:23 +01:00
Tobia Tesan
e69855acef DIRECTOR: Use preloaded Stxt for rendering 2017-05-02 21:01:23 +01:00
Tobia Tesan
2bb427d6e1 DIRECTOR: Preload Stxts in Score 2017-05-02 21:01:23 +01:00
Tobia Tesan
61e4181f5f DIRECTOR: Add _loadedStxts member to Score 2017-05-02 21:01:23 +01:00
Tobia Tesan
1de51c10dd DIRECTOR: Add Stxt.h 2017-05-02 21:01:23 +01:00
Tobia Tesan
23b6dbbede DIRECTOR: clean up renderText: separate reading & actual rendering 2017-04-30 09:48:08 +02:00
Tobia Tesan
03831698ac DIRECTOR: remove redundant/ineffective assignments to width 2017-04-30 09:48:08 +02:00
Tobia Tesan
132785ccb0 DIRECTOR: clean up renderText: move warning block down
This changes slightly the semantics of the method; however, I assume we
want to print (or not) the warning based on the width/height values that
will in fact be used *in* the method.
2017-04-30 09:48:08 +02:00