Skip to content

Refactor Players 3/12: Add player layout helper#1286

Open
dgruss wants to merge 1 commit into
UltraStar-Deluxe:masterfrom
dgruss:refactorplayers-12-03-player-layout-helper
Open

Refactor Players 3/12: Add player layout helper#1286
dgruss wants to merge 1 commit into
UltraStar-Deluxe:masterfrom
dgruss:refactorplayers-12-03-player-layout-helper

Conversation

@dgruss
Copy link
Copy Markdown
Contributor

@dgruss dgruss commented May 12, 2026

Part of splitting #1186.

Files changed in this PR:

  • src/base/UPlayerLayout.pas +515 -0 (new file!)
  • src/ultrastardx-unix.lpi +5 -0
  • src/ultrastardx-win.lpi +4 -0
  • src/ultrastardx.dpr +1 -0

This introduces the shared layout helper that calculates player slots/rectangles. It prepares later screen migrations by moving layout rules into one place instead of duplicating placement logic per screen.
There is no user-facing / visual change anywhere from this PR - it is only adding a class that will be used later on.

(The complete chain fixes #634. Fixes #545. Fixes #732. Fixes #712.)

@dgruss dgruss changed the title Refactor Players: Add player layout helper Refactor Players 3/12: Add player layout helper May 12, 2026
@dgruss dgruss force-pushed the refactorplayers-12-03-player-layout-helper branch from 9627f51 to 9f259d0 Compare May 12, 2026 09:40
@dgruss
Copy link
Copy Markdown
Contributor Author

dgruss commented May 16, 2026

made this one independent of #1285

@dgruss dgruss force-pushed the refactorplayers-12-03-player-layout-helper branch from 9f259d0 to 5c60c64 Compare May 16, 2026 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant