Skip to content

Add Easy Joker Resizing#398

Merged
Aurelius7309 merged 2 commits into
Steamodded:mainfrom
DigitalDetective47:joker-size
Jan 12, 2025
Merged

Add Easy Joker Resizing#398
Aurelius7309 merged 2 commits into
Steamodded:mainfrom
DigitalDetective47:joker-size

Conversation

@DigitalDetective47
Copy link
Copy Markdown
Contributor

Adds the ability to set the size of jokers through parameters
pixel_size controls how large the joker's sprite is considered. Ex: half joker would set pixel_size.h to indicate that it has a smaller sprite. defaults to { w = 71, h = 90 }
display_size controls how the joker's sprite is scaled. Ex: wee joker would set both display_size.h and display_size.w to indicate that it should be shrunk. defaults to pixel_size
partial tables can also be used, with the default being used for missing values
pixel_size and display_size can be combined and both work as normal
in other words, display_size controls the bounding box of the joker, and pixel_size controls the portion of the sprite that it fit to the bounding box
WARNING! stake stickers look broken on narrow & tall jokers. this is a result of how stickers are scaled and cannot reasonably be avoided
also works for consumables, vouchers, and booster packs!

@Aurelius7309 Aurelius7309 merged commit 29b46f2 into Steamodded:main Jan 12, 2025
@DigitalDetective47 DigitalDetective47 deleted the joker-size branch January 13, 2025 01:37
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.

2 participants