Eugene Sandulenko
97b7cb60fd
DIRECTOR: Added API for referring to the cast members by name and type
2022-12-03 00:24:18 +01:00
Roland van Laar
76e56f5b1f
DIRECTOR: Remove and document broken cast copies
...
Stubbed b_duplicate again.
The implementation was broken, it copied the reference to the cast not the
cast itself.
Adds warning to createOrReplaceCastMember.
The function only handles replacing not creating.
2022-10-15 23:09:23 +02:00
Roland van Laar
0091a20fe9
DIRECTOR: limit files closed by closeResFile
...
Lingo function `closeResFile` is only responsible for closing resource
file opened by `openResFile`. Register in `openResFile` which files
where opened and close only those files in `closeResFile`.
- Rename `_openResFiles` to `_allOpenResFiles` and
- Add new `_openResFiles` hashmap to track which files were opened in
`openResFile`.
2022-09-23 22:55:50 +02:00
Roland van Laar
28731c24f7
DIRECTOR: revert 1b6e233 Let Cast class manage ...
...
registering the archive
Resource forks were closed when switching to a different movie.
Those resource forks need to stay available.
In this case for cursors for Star Trek: The Next Generation Interactive Technical Manual
This reverts commit 1b6e2335b3 .
2022-09-16 20:35:13 +02:00
D G Turner
50d70afe72
DIRECTOR: Fix GCC Compiler Warnings
2022-08-10 01:52:58 +01:00
Pragyansh Chaturvedi
dbe1ae48d5
DIRECTOR: Use KEY* mappings instead of taking the first resource to load chunks
2022-08-09 16:18:15 -05:00
Pragyansh Chaturvedi
1a5603c488
DIRECTOR: LINGO: Remove all occurences of _loadedCast outside of the Cast namespace
2022-07-13 18:10:49 +02:00
Pragyansh Chaturvedi
4d9b05e2c1
DIRECTOR: Initialize multiple casts, insert loadedCast and sharedCast
2022-07-13 18:10:49 +02:00
Misty De Meo
987065e090
DIRECTOR: allow customizing desktop mode size
2022-07-07 15:59:41 +02:00
Misty De Meo
d99da56120
DIRECTOR: check _wmMode for desktop
2022-07-06 01:47:16 +02:00
Pragyansh Chaturvedi
686e720275
DIRECTOR: Implement Movie::createOrReplaceCastMember() and Cast::setCastMember() functions, add blend2.pic to tests
2022-07-03 19:24:04 +02:00
Henrik "Henke37" Andersson
1b6e2335b3
DIRECTOR: Let Cast class manage registering the archive
...
This fixes a null pointer crash and potential issues when switching between movies.
2022-06-23 20:26:37 +02:00
Eugene Sandulenko
b8d416822b
DIRECTOR: Fix crash when movie has no shared cast
2022-06-22 01:04:52 +02:00
Eugene Sandulenko
04b5976046
DIRECTOR: Added clarifying comment to 'BeepOn'
2022-06-21 01:05:28 +02:00
Pragyansh Chaturvedi (r41k0u)
50ba58c7c9
DIRECTOR: LINGO: Implement the beepOn property and remove their respective STUBs
2022-06-21 01:04:30 +02:00
Eugene Sandulenko
1ac3cb27ac
DIRECTOR: Register Shared Cast in _openResFiles. That fixes cursors stored in there
2022-06-19 00:19:14 +02:00
Eugene Sandulenko
abea37c9bb
ALL: Update ScummVM project license to GPLv3+
2021-12-26 18:48:43 +01:00
Scott Percival
bc017c564a
DIRECTOR: LINGO: Implement kTheDoubleClick
2021-09-25 01:13:50 +08:00
djsrv
d27574acae
DIRECTOR: Fix mouseUp events
...
Before, the code for setting a button's hilite flag made it so that
mouseUp only ever went to the last sprite that had a mouseDown
event. That is not correct. Whatever sprite the mouse goes up on
gets the event, even if it didn't get the last mouseDown event.
2021-08-23 16:10:44 -04:00
djsrv
48c4b08d0a
DIRECTOR: LINGO: Allow scripts to call event handlers
2021-08-13 17:10:25 -04:00
ysj1173886760
e24d00a81b
DIRECTOR: implement handling timeOut related values.
2021-08-06 16:44:07 +08:00
ysj1173886760
63f72c5963
DIRECTOR: implement set the timeOutLength
2021-08-06 16:44:07 +08:00
ysj1173886760
a1b9d60dde
DIRECTOR: introduce lastTimeOut and implement get the timeOutLapsed
2021-08-06 16:44:07 +08:00
ysj1173886760
6315f744d8
DIRECTOR: implement checkBoxAccess property
2021-07-29 10:52:45 +08:00
djsrv
30df98e61b
DIRECTOR: Create Cast::decodeString
2021-07-15 16:31:47 -04:00
djsrv
88ea6e1645
DIRECTOR: Re-encode loaded text to UTF-8
2021-07-15 16:31:47 -04:00
djsrv
ed64ec6699
DIRECTOR: Default movie/cast platform to Mac
2021-07-15 16:31:47 -04:00
djsrv
bb60a9ea29
DIRECTOR: Move InfoEntry::readString definition out of header
2021-07-15 16:31:47 -04:00
ysj1173886760
6593d125b0
DIRECTOR: read rect dims as signed number instead of unsigned
2021-07-08 02:25:11 +02:00
djsrv
258318c0b1
DIRECTOR: Read movie creation platform from config
2021-07-06 21:30:30 -04:00
djsrv
957abce35b
DIRECTOR: Initialize cast and movie version in constructors
...
Just set it to 0 to inicate no archive is loaded instead of garbage.
2021-07-04 00:25:38 -04:00
djsrv
7bfa8aa6dc
DIRECTOR: Add castLibID to Cast
2021-06-30 22:32:19 -04:00
djsrv
8dfa5f4e73
DIRECTOR: LINGO: Use member ID as script ID in D2-3
...
Movie scripts have a corresponding text cast member, so it makes sense
to have the IDs match.
2021-06-30 22:32:19 -04:00
djsrv
615995fdc1
DIRECTOR: Change member refs to use CastMemberID
2021-06-30 22:32:19 -04:00
djsrv
2d5ca7a1d6
DIRECTOR: Remove getCastMemberByScriptId from Movie
...
This can be called on the correct cast directly.
2021-06-30 22:32:19 -04:00
ysj1173886760
cd40e09ed5
DIRECTOR: drawing macwidgets on _screen instead of drawing directly on screen. This may fix the zoombox issue
2021-06-20 14:33:53 +02:00
ysj1173886760
31098bbb16
DIRECTOR: modify event handling, introduce _currentHiliteChannelId and _currentHandlingChannelId to movie.
...
those two are aimed for the situation that when we hold the button and move out of the bounds, then we should de-activated the sprite
_currentHilite are for Bitmap castmember inverting. _currentHandling is for other castmembers, such as macbutton which has it's own check. And also for those sprites which don't need to hilited
2021-06-20 14:33:53 +02:00
ysj1173886760
efe872b8c0
DIRECTOR: implement the CheckBoxType to Lingo
2021-06-20 14:33:53 +02:00
ysj1173886760
3332517243
DIRECTOR: move selStart and selEnd from Lingo to Movie
2021-06-10 13:58:41 +02:00
djsrv
ff7943d576
DIRECTOR: Make loadArchive return false if no VWCF
2021-06-07 15:06:00 -04:00
djsrv
ed8ca876e3
DIRECTOR: Use version from VWCF for loading
2021-06-07 14:48:48 -04:00
Eugene Sandulenko
5ec3815106
DIRECTOR: Update digital video independently from the frame tempo
2020-08-18 13:08:52 +02:00
Eugene Sandulenko
3f160561d6
DIRECTOR: Fixed for 32bpp mode, things work
2020-08-16 23:08:33 +02:00
Eugene Sandulenko
e5e82d4cf6
DIRECTOR: Copy over PixelFormat from the WM for simpler access
2020-08-14 10:47:33 +02:00
Eugene Sandulenko
571ce913e1
DIRECTOR: Do not use hardcoded pixel format
2020-08-14 10:47:33 +02:00
Nathanael Gentry
d12cb32f5d
DIRECTOR: Only recenter window on new dims
...
DIRECTOR: Fix whitespace
2020-08-13 21:24:47 -04:00
Eugene Sandulenko
88c46aefe3
DIRECTOR: Initial code for 32bpp rendering
2020-08-14 01:10:56 +02:00
djsrv
baacf3c1ab
DIRECTOR: Replace SeekableSubReadStreamEndian
...
Use the superclass SeekableReadStreamEndian.
2020-08-12 17:26:55 -04:00
Nathanael Gentry
f28808007b
DIRECTOR: Eliminate intermediate surface
2020-08-12 02:35:26 -04:00
djsrv
0ff7274993
DIRECTOR: Multiply version numbers by 100
...
To accomodate minor version.
2020-08-10 15:00:55 -04:00