-
Notifications
You must be signed in to change notification settings - Fork 83
SMODS.DeckSkin
WilsontheWolf edited this page Feb 4, 2025
·
2 revisions
This API extends the game's Friends of Jimbo collabs screen to create new deck skins for all suits, including modded ones.
Note: Atlases in this class are not automatically prefixed.
-
Required parameters:
key
-
suit
: The suit this skin applies to. -
loc_txt
or localization entry (reference) -
palettes
: A list of tables with the following values:-
ranks
: A list of ranks the skin provides sprites for. -
display_ranks
: A list of ranks to show in the preview. -
atlas
: Atlas for the cards. -
pos_style = 'deck'
: Determines how to access sprite positions.- As a string:
-
'deck'
: Use thepos
table of the playing card. -
'suit'
:y
position is always zero,x
position is taken from the card'spos
. -
'collab'
: Use the base game'sG.COLLABS.pos
. -
'ranks'
: Use the palette's rank list for thex
position.
-
- As a table:
-
fallback_style
: Any of the above strings. Is used when a rank that isn't specified is loaded. -
[rank]
: Using a rank as a key, it takes a table with an atlas and pos.
-
- As a string:
-
colour
: Replaces the suit's colour in theG.C
table with this one when skin is applied. -
suit_icon
: A table defining the icon for the suit-
atlas
: An atlas with the icons -
pos = 0
: The position for the icon. If set to a number, it will use y = pos, x = suit's vanilla icon pos. If it's a table see reference.
-
-
loc_txt
or localization entry (reference)
-
Game Objects
- API Documentation
- SMODS.Achievement
- SMODS.Atlas
- SMODS.Blind
- SMODS.Center
- SMODS.Challenge
- SMODS.DeckSkin
- SMODS.Keybind
- SMODS.Language
- SMODS.ObjectType
- SMODS.PokerHand
- SMODS.Rarity
- SMODS.Seal
- SMODS.Sound
- SMODS.Stake
- SMODS.Sticker
- SMODS.Suit and SMODS.Rank
- SMODS.Tag
Guides
- Your First Mod
- Mod Metadata
- Calculate Functions
- Logging
- Event Manager
- Localization
- Mod functions
- UI Structure
- Utility Functions
Found an issue, or want to add something? Submit a PR to the Wiki repo.