Commit Graph
540 Commits
Author SHA1 Message Date
Torbjörn Andersson ba37c52047 JANITORIAL: Remove some unnecessary semicolons 2020-11-17 07:22:49 +01:00
Eugene Sandulenko 92bd514902 DIRECTOR: LINGO: Make sure video is rendered on 'updateStage' 2020-08-25 10:43:47 +02:00
Eugene Sandulenko 233e0e21a8 DIRECTOR: Draw video only when it is truly changed 2020-08-24 20:53:37 +02:00
Eugene Sandulenko e8d9dfe62b DIRECTOR: Proper implementation of 'directToStage' 2020-08-23 20:31:48 +02:00
Eugene Sandulenko 806c946fd6 DIRECTOR: Attempt to implement 'directToStage'
Not working, as it is not clear how to change priority of a channel
2020-08-23 19:46:58 +02:00
Eugene Sandulenko f3f0816bd3 DIRECTOR: Fixed showing initial frame on stopped videos 2020-08-22 18:02:10 +02:00
djsrv 3bf6f79a3e DIRECTOR: Fix crash on mouse move in lingotests 2020-08-21 21:52:54 -04:00
Nathanael Gentry 73c970421f DIRECTOR: Re-render changed cursors on new frame 2020-08-19 16:31:36 -04:00
Nathanael Gentry d7ec21cbeb DIRECTOR: Properly discover sprite cursors
We canot just use getSpriteIDFromPos, as Director gets the cursor from the
topmost sprite that has a non-empty cursor.
2020-08-19 10:41:55 -04:00
Nathanael Gentry 7d68cd7771 Revert "DIRECTOR: Do not attempt to render cursor from empty sprite"
This reverts commit 12a35cda57.
2020-08-19 10:41:55 -04:00
Nathanael Gentry bd2c3f2bba DIRECTOR: Show ink type as decimal 2020-08-19 10:41:54 -04:00
Eugene Sandulenko 5ec3815106 DIRECTOR: Update digital video independently from the frame tempo 2020-08-18 13:08:52 +02:00
Eugene Sandulenko 5dac6330dd DIRECTOR: Fix check against empty unused script 2020-08-17 12:08:24 +02:00
djsrv bc619e59ee DIRECTOR: LINGO: Don't trigger exitFrame on b_go 2020-08-14 14:59:17 -04:00
Eugene Sandulenko 8a54a23121 DIRECTOR: Treat \r as a whitespace in empty script check 2020-08-14 00:17:52 +02:00
Eugene Sandulenko f8def75cdc DIRECTOR: Do not warn on empty unused scripts 2020-08-13 13:35:12 +02:00
djsrv baacf3c1ab DIRECTOR: Replace SeekableSubReadStreamEndian
Use the superclass SeekableReadStreamEndian.
2020-08-12 17:26:55 -04:00
djsrv 0ff7274993 DIRECTOR: Multiply version numbers by 100
To accomodate minor version.
2020-08-10 15:00:55 -04:00
djsrv 9c537a8744 DIRECTOR: Rename Stage to more general Window
The stage and windows are the same type of thing, but the stage only
refers to one particular window.
2020-08-04 23:54:09 -04:00
Eugene Sandulenko 519ef9d172 DIRECTOR: LINGO: Implement 'the frameLabel' 2020-08-04 23:36:41 +02:00
djsrv a7ca8a0b2c DIRECTOR: Get rid of busy wait for click loop 2020-08-04 15:14:05 -04:00
djsrv 5e96518ba7 DIRECTOR: Don't add delay to "wait for" tempos 2020-08-04 14:59:43 -04:00
Eugene Sandulenko 12a35cda57 DIRECTOR: Do not attempt to render cursor from empty sprite 2020-08-03 17:56:03 +02:00
Nathanael Gentry abfe896a62 DIRECTOR: Add renderSprites debug line 2020-07-30 13:54:07 -04:00
Nathanael Gentry 0da17f9ae1 DIRECTOR: Don't delay score update on goto
Don't wait until the nextFrameTime. With this change, we are closer to original
behaviour.
2020-07-29 12:53:53 -04:00
djsrv b278579353 DIRECTOR: Clean up action loading 2020-07-29 11:25:07 -04:00
djsrv 8f0f6825bb DIRECTOR: LINGO: Don't load unreferenced scripts 2020-07-28 19:36:47 -04:00
Nathanael Gentry ea75044ae1 DIRECTOR: Load palette castmembers
The loadPalette is also turned into a value-returning function.
2020-07-27 18:04:12 -04:00
djsrv 054b8ddeb0 DIRECTOR: Improve mouse event handling 2020-07-27 16:42:42 -04:00
djsrv 33d07334eb DIRECTOR: Replace isFocusable with respondsToEvent 2020-07-27 12:51:51 -04:00
Nathanael Gentry 74454b0434 DIRECTOR: Properly initialize current palette id 2020-07-27 09:07:02 -04:00
Nathanael Gentry a31e3217e8 DIRECTOR: Fix typos 2020-07-27 09:07:02 -04:00
Nathanael Gentry 3cb5b5acb4 DIRECTOR: LINGO: Implement kTheFramePalette 2020-07-26 23:46:06 -04:00
Nathanael Gentry 013c7276e7 DIRECTOR: Implement basic puppetPalette
Right now, only changing the palette itself is supported. Fades and other fancy
features will come later, as needed.
2020-07-26 23:46:06 -04:00
Scott Percival 4bfffc43a7 DIRECTOR: Move widgets from cast members to channels (#2372)
This change is required to support copies of the same cast member running in different channels.

* DIRECTOR: Move widget ownership from cast member to channel

* DIRECTOR: Cache cast dimensions from createWidget

* DIRECTOR: Add null checks for createWidget

* GRAPHICS: MACGUI: Clear active/hover WM references if the widget is destroyed

* DIRECTOR: LINGO: Re-add null check for kTheEditableText

* DIRECTOR: Avoid destroying widgets if the channel isn't dirty

* DIRECTOR: Fix dirty test

* DIRECTOR: Fix text field writeback

* DIRECTOR: Fix null cast check

* DIRECTOR: Add bbox as argument to createWidget

* DIRECTOR: Add setCast method to Channel

* DIRECTOR: Fix use-after-free in Channel::getMask

* DIRECTOR: Fix bounding box for Button sprites

* DIRECTOR: Cache widget dimensions in cast member

* DIRECTOR: Remove widget from channel if nextSprite is empty

* GRAPHICS: MACGUI: Fix MacText::splitString for empty string case

* DIRECTOR: Add null checks for movie and score in processEvents
2020-07-26 04:32:29 +00:00
Eugene Sandulenko 74e2899156 DIRECTOR: Move debug output on a higher level 2020-07-24 17:04:45 +02:00
djsrv fbf42314bb DIRECTOR: Add pointers to frame, sprite parents 2020-07-24 11:03:35 -04:00
Nathanael Gentry b547674341 DIRECTOR: Initialize variable 2020-07-24 08:53:32 -04:00
djsrv 3aa5b2e883 DIRECTOR: Don't step stopped movie 2020-07-23 20:47:34 -04:00
djsrv 3a17dcb024 DIRECTOR: Fix blank frame on loop 2020-07-23 20:05:49 -04:00
djsrv f23ef93766 DIRECTOR: Move event handling to movie 2020-07-23 20:05:49 -04:00
Nathanael Gentry 0044225060 DIRECTOR: Make sound fade non-blocking 2020-07-22 14:13:38 -04:00
Nathanael Gentry 2fb137bc6b DIRECTOR: Remove unnecessary pointer cast 2020-07-22 10:20:56 -04:00
Nathanael Gentry ae1af9c06a DIRECTOR: Fix matte intersection check
Actually, it's not applied indiscriminately. It only take effect when there is
already a matte ink on the given sprite.
2020-07-21 23:12:54 -04:00
Eugene Sandulenko 28cc32ac0f DIRECTOR: Fix typo 2020-07-21 23:55:47 +02:00
Eugene Sandulenko 2a484dda5b DIRECTOR: Pass strings by references 2020-07-21 23:55:10 +02:00
Eugene Sandulenko 896ff77946 DIRECTOR: Implement 'the labelList' 2020-07-21 23:35:45 +02:00
Eugene Sandulenko d70c3475c5 DIRECTOR: Implement getting labels by name 2020-07-21 23:35:45 +02:00
djsrv 17be87ffb3 DIRECTOR: Rename Movie::getCurrentStage getStage 2020-07-21 17:34:22 -04:00
djsrv 1d0f8db46a DIRECTOR: Get rid of blocking loops 2020-07-21 17:34:22 -04:00