Repository navigation
display: expose a score reel's position and an output's rotation - #641
Merged
Merged
Conversation
InputActionSoundComponent gets a Start When option (pressed or released), reusing the StartWhen choice of switch and coil sounds. It is packed with the component. Items schema 6, case 2 (compatible both ways): older players ignore the new field and play the sound on the press, and older tables restore as before.
ScoreReelComponent.DigitPosition tells where a reel is in its turn, in digits, so the player can draw flat reels that move with the ones on the backglass. CabinetDisplayTarget carries the quarter turns the player applies to an output's content, with ContentWidth and ContentHeight for plugins that lay out their picture for the output.
[Medium impact] The PR appears safe to merge; no actionable issues were found. SummaryExposes animated reel positions and output rotation for the player’s flat score reels.
Reviews (1) · Last reviewed commit: "display: expose a score reel's position ..." · Reviewed by Greptile |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Two small additions the player needs to draw flat score reels on a display output (VisualPinball/VisualPinball.Engine.Player,
feat/score-reels):ScoreReelComponent.DigitPosition: where a reel is in its turn, in digits from 0 up to 10. It follows the animation, so a flat drawing of the reel can move with the one on the backglass. It counts up the same way for both reel directions.CabinetDisplayTarget.Rotation,ContentWidthandContentHeight: the quarter turns the player applies to an output's content. A plugin that lays out its picture for an output sizes it by the content size instead of guessing how the output is turned. The constructor parameter is optional, so existing callers are unchanged.The branch also carries
sound: input action sounds can play when the button is released, which was on the local master and is not on GitHub yet.Verification
CabinetDisplayTestspass, with a new test for the content size of a turned destination.