SMODS.DeckSkin - Breezebuilder/Steamodded-Wiki GitHub Wiki
API Documentation: SMODS.DeckSkin
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:
keysuit: The suit this skin applies to.loc_txtor localization entry (reference)palettes: A list of tables with the following values:key(Use'hc'or'lc'to consider this palette a default high-/low-contrast palette)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 thepostable of the playing card.'suit':yposition is always zero,xposition is taken from the card'spos.'collab': Use the base game'sG.COLLABS.pos.'ranks': Use the palette's rank list for thexposition.
- 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.Ctable with this one when skin is applied.suit_icon: A table defining the icon for the suitatlas: An atlas with the iconspos = 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_txtor localization entry (reference)hc_default(optional): If this is true, use high-contrast textures for unchanged sprites.