Skip to content

Partial no_overflow & scrollable mod name, authors and badge#1247

Open
SleepyG11 wants to merge 11 commits intoSteamodded:mainfrom
SleepyG11:forbidden-badge-n-authors
Open

Partial no_overflow & scrollable mod name, authors and badge#1247
SleepyG11 wants to merge 11 commits intoSteamodded:mainfrom
SleepyG11:forbidden-badge-n-authors

Conversation

@SleepyG11
Copy link
Collaborator

This PR introduces partial no_overflow for elements (ability to apply it only vertically or only horizontally), and rework mod list items and mod badge to use SMODS.UIScrollBox.

Partial no_overflow

no_overflow now can be applied to specified sides of container. This determined by values:

  • v - vertical, truncate content which overflows top/bottom boundaries, not affect left/right, roundness is ignored;
  • h - horizontal, truncate content which overflows left/right boundaries, not affect top/bottom, roundness is ignored;
  • vh or hv - same as no_overflow = true, truncate content which overflows any boundaries, includes roundness.

Unique sizes behaviour for overflow container is applied only in specified directions, same for text scaling.

Rework mod list item

Mod name and authors in mods list now uses SMODS.UIScrollBox to display long names (previously was multiline) or long authors list (previously DynaText with marquee).
Balatro_IAOcmD5ZYO

Rework mod badge

Mod badge now uses SMODS.UIScrollBox to display long mod names (previously DynaText with marquee). Respects no_marquee.
Balatro_zMuYUOJJ4q

Additional Info:

  • I didn't modify api's or I've made a PR to the wiki repo.
  • I didn't modify api's or I've updated lsp definitions.
  • I didn't make new lovely files or all new lovely files have appropriate priority.

@SleepyG11 SleepyG11 marked this pull request as ready for review March 7, 2026 01:59
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