add support for games on DWIN_MARLINUI
#27620
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
this PR adds support for the "Frivolous Game Options" when using a DWIN (Ender 3V2) screen with
DWIN_MARLINUI_PORTRAIT
orDWIN_MARLINUI_LANDSCAPE
selected.to achieve this, the rendering infrastructure of the games was moved into the
MarlinGame
class, with screen-specific implementation of the rendering functions.this also potentially allows adding support for more screens down the line.
rendering happens using a custom rendering api mirroring the U8GLib api.
the existing games have been updated to use this new api, and are fully playable with this PR.
since the DWIN screens support color, games have been updated with color support.
on black-and-white screens, colors are mapped accordingly and will render like before.
Requirements
DWIN (Ender 3V2) screen with
DWIN_MARLINUI_PORTRAIT
orDWIN_MARLINUI_LANDSCAPE
.Benefits
Allows playing games on more printers, giving users a break between stressfull prints ;)
Configurations
N/A
Related Issues
N/A
Screenshots
Portrait Mode
Landscape Mode