Skip to content

display: expose a score reel's position and an output's rotation - #641

Merged
freezy merged 2 commits into
masterfrom
feat/score-reels
Nov 23, 2026
Merged

freezy merged 2 commits into
masterfrom
feat/score-reels

Conversation

@freezy

@freezy freezy commented Nov 23, 2026

Copy link
Copy Markdown
Owner

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, ContentWidth and ContentHeight: 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

  • CabinetDisplayTests pass, with a new test for the content size of a turned destination.
  • Used by the player's score reel tests and a play session with a table that has score reels.

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.
@greptile-apps

greptile-apps Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no actionable issues were found.

Summary

Exposes animated reel positions and output rotation for the player’s flat score reels.

  • Score reels expose their position as they move between digits.
  • Cabinet display targets describe how their content is turned and sized.
  • Input action sounds can start when a button is pressed or released.

Reviews (1) · Last reviewed commit: "display: expose a score reel's position ..." · Reviewed by Greptile

@freezy
freezy merged commit 7f38c52 into master Nov 23, 2026
21 checks passed
@freezy
freezy deleted the feat/score-reels branch November 23, 2026 12:16
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.

1 participant