Commit Graph

3264 Commits

Author SHA1 Message Date
djsrv
eb6670366e DIRECTOR: LINGO: Allow 'the' to fall back to generic object instructions 2021-06-28 13:29:40 -04:00
ysj1173886760
aff4592ba3 DIRECTOR: update editableTextChannel after we rendering the sprites. 2021-06-26 16:08:20 +02:00
ysj1173886760
aa5128e7ac DIRECTOR: re-organize the logic for handling the editableText. 2021-06-26 16:08:20 +02:00
ysj1173886760
9100998bea DIRECTOR: keep the sprite size when we are handling text castmember.
because we are using initialRect for creating text castmember, thus sprite size is meaning less to us.
2021-06-26 16:08:20 +02:00
ysj1173886760
d437f7a7e1 DIRECTOR: fix drawing the LineBottomTopSprite 2021-06-26 16:08:20 +02:00
ysj1173886760
9d876b4935 DIRECTOR: Don't release the handle to widget when we can keep widget. 2021-06-26 16:08:20 +02:00
ysj1173886760
f1c27a84db DIRECTOR: amend the condition for keeping the widget. 2021-06-26 16:08:20 +02:00
ysj1173886760
d61585d9c0 DIRECTOR: allowing skip deleting widgets for some situations 2021-06-26 16:08:20 +02:00
ysj1173886760
f097abea02 DIRECTOR: use initialRect to represent sprite dimensions 2021-06-26 16:08:20 +02:00
ysj1173886760
2ea18a03fb DIRECTOR: add getOriginalSpriteById to score, which allowing us modify the original sprite data instead the one we store in channel 2021-06-26 16:08:20 +02:00
ysj1173886760
a5bdc4d335 DIRECTOR: eliminate calculating pure text dimensions. 2021-06-26 16:08:20 +02:00
ysj1173886760
8b9d72d181 DIRECTOR: add _originalSprite pointing to the original sprite.
We still need it to change the size of button sprites.
2021-06-26 16:08:20 +02:00
ysj1173886760
2255b11139 DIRECTOR: amend b_moveableSprite for the new sprite behaviour we have in channel 2021-06-26 16:08:20 +02:00
ysj1173886760
048f18ca3b DIRECTOR: release the link from castmember to widget when we are changing the sprites.
Because we may get new widget here.
2021-06-26 16:08:20 +02:00
ysj1173886760
44b2f54a4d DIRECTOR: fix use-after-free issue for the sprites stored in channel 2021-06-26 16:08:20 +02:00
ysj1173886760
685eea48da DIRECTOR: copy the value when we are using sprites in channel instead of using the original pointer. 2021-06-26 16:08:20 +02:00
ysj1173886760
cff54ea5db DIRECTOR: fix the logic within. 2021-06-26 16:08:20 +02:00
djsrv
d378b8f2e0 DIRECTOR: LINGO: Fix v4 'the' mapping 2021-06-25 23:01:33 -04:00
Eugene Sandulenko
bda0cc1c1e
DIRECTOR: Fix regression in lzone-win 2021-06-26 00:27:30 +02:00
D G Turner
056b83526c DIRECTOR: Fix GCC Compiler Warning 2021-06-25 19:43:01 +01:00
djsrv
5f95faf116 DIRECTOR: LINGO: Implement cb_v4assign2 2021-06-25 01:52:40 -04:00
djsrv
b4a7d4bdff DIRECTOR: LINGO: Support nested chunks in readChunkRef 2021-06-25 01:52:40 -04:00
djsrv
a3537bd5df DIRECTOR: LINGO: Add nested chunks tests 2021-06-25 01:52:40 -04:00
djsrv
2fd96002d7 DIRECTOR: LINGO: Support nested chunks in delete and hilite 2021-06-25 01:52:40 -04:00
djsrv
fae07331ae DIRECTOR: LINGO: Add put tests for non-existent chunks 2021-06-25 01:52:40 -04:00
djsrv
effc76b14e DIRECTOR: LINGO: Implement put for non-existent chunks 2021-06-25 01:52:40 -04:00
djsrv
f43026398f DIRECTOR: LINGO: Fix assert line numbers 2021-06-25 01:52:40 -04:00
djsrv
f4d57ed911 DIRECTOR: LINGO: Fix constant compilation
Constants should never be coded as references.
2021-06-25 01:52:40 -04:00
djsrv
895c36129e DIRECTOR: LINGO: Add put tests 2021-06-25 01:52:40 -04:00
djsrv
25c59ba25d DIRECTOR: LINGO: Change varFetch index check for consistency 2021-06-25 01:52:40 -04:00
djsrv
2cfa27b02d DIRECTOR: LINGO: Add CHUNKREF to varAssign 2021-06-25 01:52:40 -04:00
djsrv
c6e6da2d2c DIRECTOR: LINGO: Remove localvars arg from varAssign
I eliminated uses of this.
2021-06-25 01:52:40 -04:00
djsrv
5b436c48aa DIRECTOR: LINGO: Clean up c_hilite
For consistency with c_delete
2021-06-25 01:52:40 -04:00
djsrv
9198d7364a DIRECTOR: LINGO: Move field funcs from LB to LC
field, delete, and hilite were implemented as their own instructions in
the original. This also avoids having refs evaluated by LC::call.
2021-06-24 00:26:15 -04:00
djsrv
d9dfad62d2 DIRECTOR: LINGO: Evaluate var refs in LC::call 2021-06-24 00:21:25 -04:00
djsrv
3ae6829347 DIRECTOR: LINGO: Add missing func descriptions 2021-06-24 00:21:24 -04:00
djsrv
a049a0107f DIRECTOR: LINGO: Remove evaluate on pop
Grammar changes have made this hack unnecessary.
2021-06-24 00:21:24 -04:00
djsrv
0a2688268b DIRECTOR: LINGO: Fix negative bytecode chunk refs 2021-06-23 16:29:10 -04:00
djsrv
c13088a829 DIRECTOR: LINGO: Load intpush's arg as signed 2021-06-23 16:29:10 -04:00
djsrv
7a32cb300f DIRECTOR: LINGO: Add "delete the last" tests 2021-06-23 16:29:10 -04:00
djsrv
2fabaedac8 DIRECTOR: LINGO: Improve tests for "the last" 2021-06-23 16:29:10 -04:00
djsrv
b423f6e563 DIRECTOR: LINGO: Add chunk ref instructions 2021-06-23 16:29:10 -04:00
djsrv
a433004914 DIRECTOR: LINGO: Fix chunkRef bounds check 2021-06-23 16:29:10 -04:00
djsrv
cce64b815b DIRECTOR: LINGO: Make chunk -30000 return last chunk
This is what the original does.
2021-06-23 16:29:10 -04:00
djsrv
7de0283b76 DIRECTOR: LINGO: Remove default destructors
This is a C++11 feature, not supported by the GP2X compiler.
2021-06-23 01:49:01 -04:00
D G Turner
68865d2041 DIRECTOR: LINGO: Fix GCC Warning 2021-06-23 01:24:56 +01:00
djsrv
33617ef76d DIRECTOR: LINGO: Remove accidental paste 2021-06-22 19:48:32 -04:00
djsrv
c4cd014c41 DIRECTOR: LINGO: Add nounput option to lexer 2021-06-22 19:38:21 -04:00
djsrv
ce86da4020 DIRECTOR: LINGO: Fix comparison of different enum types 2021-06-22 19:38:01 -04:00
djsrv
784f8fe9d3 DIRECTOR: LINGO: Allow expression after sprite 2021-06-22 18:16:53 -04:00