Comments (4)
Yes, I think the idea is that it saves the bits under the window so it can restore them, especially when #dispose is invoked to allow for the action to continue while the dialog is shown.
In the INN demo, there is an actual DoDisplay object, and it does indeed save the bits underneath the text. Although it uses the DIsplay kernel function rather than Print, it appears to work in much of the same way.
saveBits is the best name I could think of, given that DoDisplay uses that name as a property.
And yeah, KQ4 was very weirdly written, being that it was the first SCI game.
from sci-decompilation-archive.
If that's the idea, then... where are these locals used afterwards?
from sci-decompilation-archive.
It turns out, #dispose is used to clear any modeless dialog, but keep the current dialog object, which is assigned to the variable in question.
So it looks like a more accurate name would be printObj, since it's the object that's being allowed to remain until cls is invoked.
I've made the correction for LSL2 and KQ4. Other games will follow.
from sci-decompilation-archive.
So if you have #dispose
, it returns the dialog, and it returns true, false, or a control value otherwise? That makes sense, I guess. Just leaves the question what KQ4 is saving that reference for 99% of the time it appears
from sci-decompilation-archive.
Related Issues (8)
- Please add Leisure Suit Larry 6 CD HOT 7
- PQ2 Avoider
- Adding quick instructions how to use the files HOT 10
- KQ4 rm83 bug Lolotte's Cell HOT 2
- KQ4 dwarf_mine HOT 1
- KQ4 Lamp/Note HOT 7
- KQ4 whale tongue HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sci-decompilation-archive.