Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set saveClearedText to false by default #1323

Merged
merged 1 commit into from
Dec 30, 2024

Conversation

KVonGit
Copy link
Collaborator

@KVonGit KVonGit commented Dec 30, 2024

saveClearedText (added in Quest 5.8) should have been false by default to begin with.

When false, clearScreen dumps all the data it clears from #divOutput. When true, a class is used to hide the data and preserve it to be displayed using showScrollback.

This also changes the display settings of the pop-up dialog displayed by showScrollback to fullscreen, so things will work properly regardless of screen dimensions.

NOTE: The change to clearScreen accidentally fixed an issue with getCurrentDiv. This will 're-introduce' that issue, but I will create an Issue to log that.


ALSO NOTE: This PR will, in fact, resolve an issue if merged, but we are also considering removing this functionality, in which case this PR merely illustrates the issue with clearScreen.

`saveClearedText` should have been `false` by default to begin with.

When false, `clearScreen` dumps all the data it clears from `#divOutput`. When true, a class is used to hide the data and preserve it to be displayed using `showScrollback`.

This also changes the display settings of the pop-up dialog displayed by `showScrollback` to fullscreen, so things will work properly regardless of screen dimensions.

NOTE: The change to `clearScreen` accidentally fixed an issue with `getCurrentDiv` in the WebPlayer. This will 're-introduce' that issue, but I will create an Issue to log that.
@alexwarren alexwarren merged commit 8625f9b into textadventures:master Dec 30, 2024
@KVonGit KVonGit deleted the clearScreen-Repair branch December 30, 2024 17:54
KVonGit added a commit to KVonGit/quest that referenced this pull request Dec 31, 2024
- Remove HTML elements created for the pop-up dialog, as they each have an ID and will likely be created more than once
- Change width and height of pop-up dialog for "scrollback" to be slightly smaller than the inner width and height of the window
- Formatting

Follow up to textadventures#1323
@KVonGit KVonGit mentioned this pull request Dec 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants